Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/rdma
File: mlx4-abi.h
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */
[0] Fix | Delete
/*
[1] Fix | Delete
* Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
[2] Fix | Delete
* Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved.
[3] Fix | Delete
*
[4] Fix | Delete
* This software is available to you under a choice of one of two
[5] Fix | Delete
* licenses. You may choose to be licensed under the terms of the GNU
[6] Fix | Delete
* General Public License (GPL) Version 2, available from the file
[7] Fix | Delete
* COPYING in the main directory of this source tree, or the
[8] Fix | Delete
* OpenIB.org BSD license below:
[9] Fix | Delete
*
[10] Fix | Delete
* Redistribution and use in source and binary forms, with or
[11] Fix | Delete
* without modification, are permitted provided that the following
[12] Fix | Delete
* conditions are met:
[13] Fix | Delete
*
[14] Fix | Delete
* - Redistributions of source code must retain the above
[15] Fix | Delete
* copyright notice, this list of conditions and the following
[16] Fix | Delete
* disclaimer.
[17] Fix | Delete
*
[18] Fix | Delete
* - Redistributions in binary form must reproduce the above
[19] Fix | Delete
* copyright notice, this list of conditions and the following
[20] Fix | Delete
* disclaimer in the documentation and/or other materials
[21] Fix | Delete
* provided with the distribution.
[22] Fix | Delete
*
[23] Fix | Delete
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
[24] Fix | Delete
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
[25] Fix | Delete
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
[26] Fix | Delete
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
[27] Fix | Delete
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
[28] Fix | Delete
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
[29] Fix | Delete
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
[30] Fix | Delete
* SOFTWARE.
[31] Fix | Delete
*/
[32] Fix | Delete
[33] Fix | Delete
#ifndef MLX4_ABI_USER_H
[34] Fix | Delete
#define MLX4_ABI_USER_H
[35] Fix | Delete
[36] Fix | Delete
#include <linux/types.h>
[37] Fix | Delete
[38] Fix | Delete
/*
[39] Fix | Delete
* Increment this value if any changes that break userspace ABI
[40] Fix | Delete
* compatibility are made.
[41] Fix | Delete
*/
[42] Fix | Delete
[43] Fix | Delete
#define MLX4_IB_UVERBS_NO_DEV_CAPS_ABI_VERSION 3
[44] Fix | Delete
#define MLX4_IB_UVERBS_ABI_VERSION 4
[45] Fix | Delete
[46] Fix | Delete
/*
[47] Fix | Delete
* Make sure that all structs defined in this file remain laid out so
[48] Fix | Delete
* that they pack the same way on 32-bit and 64-bit architectures (to
[49] Fix | Delete
* avoid incompatibility between 32-bit userspace and 64-bit kernels).
[50] Fix | Delete
* In particular do not use pointer types -- pass pointers in __u64
[51] Fix | Delete
* instead.
[52] Fix | Delete
*/
[53] Fix | Delete
[54] Fix | Delete
struct mlx4_ib_alloc_ucontext_resp_v3 {
[55] Fix | Delete
__u32 qp_tab_size;
[56] Fix | Delete
__u16 bf_reg_size;
[57] Fix | Delete
__u16 bf_regs_per_page;
[58] Fix | Delete
};
[59] Fix | Delete
[60] Fix | Delete
enum {
[61] Fix | Delete
MLX4_USER_DEV_CAP_LARGE_CQE = 1L << 0,
[62] Fix | Delete
};
[63] Fix | Delete
[64] Fix | Delete
struct mlx4_ib_alloc_ucontext_resp {
[65] Fix | Delete
__u32 dev_caps;
[66] Fix | Delete
__u32 qp_tab_size;
[67] Fix | Delete
__u16 bf_reg_size;
[68] Fix | Delete
__u16 bf_regs_per_page;
[69] Fix | Delete
__u32 cqe_size;
[70] Fix | Delete
};
[71] Fix | Delete
[72] Fix | Delete
struct mlx4_ib_alloc_pd_resp {
[73] Fix | Delete
__u32 pdn;
[74] Fix | Delete
__u32 reserved;
[75] Fix | Delete
};
[76] Fix | Delete
[77] Fix | Delete
struct mlx4_ib_create_cq {
[78] Fix | Delete
__aligned_u64 buf_addr;
[79] Fix | Delete
__aligned_u64 db_addr;
[80] Fix | Delete
};
[81] Fix | Delete
[82] Fix | Delete
struct mlx4_ib_create_cq_resp {
[83] Fix | Delete
__u32 cqn;
[84] Fix | Delete
__u32 reserved;
[85] Fix | Delete
};
[86] Fix | Delete
[87] Fix | Delete
struct mlx4_ib_resize_cq {
[88] Fix | Delete
__aligned_u64 buf_addr;
[89] Fix | Delete
};
[90] Fix | Delete
[91] Fix | Delete
struct mlx4_ib_create_srq {
[92] Fix | Delete
__aligned_u64 buf_addr;
[93] Fix | Delete
__aligned_u64 db_addr;
[94] Fix | Delete
};
[95] Fix | Delete
[96] Fix | Delete
struct mlx4_ib_create_srq_resp {
[97] Fix | Delete
__u32 srqn;
[98] Fix | Delete
__u32 reserved;
[99] Fix | Delete
};
[100] Fix | Delete
[101] Fix | Delete
struct mlx4_ib_create_qp_rss {
[102] Fix | Delete
__aligned_u64 rx_hash_fields_mask; /* Use enum mlx4_ib_rx_hash_fields */
[103] Fix | Delete
__u8 rx_hash_function; /* Use enum mlx4_ib_rx_hash_function_flags */
[104] Fix | Delete
__u8 reserved[7];
[105] Fix | Delete
__u8 rx_hash_key[40];
[106] Fix | Delete
__u32 comp_mask;
[107] Fix | Delete
__u32 reserved1;
[108] Fix | Delete
};
[109] Fix | Delete
[110] Fix | Delete
struct mlx4_ib_create_qp {
[111] Fix | Delete
__aligned_u64 buf_addr;
[112] Fix | Delete
__aligned_u64 db_addr;
[113] Fix | Delete
__u8 log_sq_bb_count;
[114] Fix | Delete
__u8 log_sq_stride;
[115] Fix | Delete
__u8 sq_no_prefetch;
[116] Fix | Delete
__u8 reserved;
[117] Fix | Delete
__u32 inl_recv_sz;
[118] Fix | Delete
};
[119] Fix | Delete
[120] Fix | Delete
struct mlx4_ib_create_wq {
[121] Fix | Delete
__aligned_u64 buf_addr;
[122] Fix | Delete
__aligned_u64 db_addr;
[123] Fix | Delete
__u8 log_range_size;
[124] Fix | Delete
__u8 reserved[3];
[125] Fix | Delete
__u32 comp_mask;
[126] Fix | Delete
};
[127] Fix | Delete
[128] Fix | Delete
struct mlx4_ib_modify_wq {
[129] Fix | Delete
__u32 comp_mask;
[130] Fix | Delete
__u32 reserved;
[131] Fix | Delete
};
[132] Fix | Delete
[133] Fix | Delete
struct mlx4_ib_create_rwq_ind_tbl_resp {
[134] Fix | Delete
__u32 response_length;
[135] Fix | Delete
__u32 reserved;
[136] Fix | Delete
};
[137] Fix | Delete
[138] Fix | Delete
/* RX Hash function flags */
[139] Fix | Delete
enum mlx4_ib_rx_hash_function_flags {
[140] Fix | Delete
MLX4_IB_RX_HASH_FUNC_TOEPLITZ = 1 << 0,
[141] Fix | Delete
};
[142] Fix | Delete
[143] Fix | Delete
/*
[144] Fix | Delete
* RX Hash flags, these flags allows to set which incoming packet's field should
[145] Fix | Delete
* participates in RX Hash. Each flag represent certain packet's field,
[146] Fix | Delete
* when the flag is set the field that is represented by the flag will
[147] Fix | Delete
* participate in RX Hash calculation.
[148] Fix | Delete
*/
[149] Fix | Delete
enum mlx4_ib_rx_hash_fields {
[150] Fix | Delete
MLX4_IB_RX_HASH_SRC_IPV4 = 1 << 0,
[151] Fix | Delete
MLX4_IB_RX_HASH_DST_IPV4 = 1 << 1,
[152] Fix | Delete
MLX4_IB_RX_HASH_SRC_IPV6 = 1 << 2,
[153] Fix | Delete
MLX4_IB_RX_HASH_DST_IPV6 = 1 << 3,
[154] Fix | Delete
MLX4_IB_RX_HASH_SRC_PORT_TCP = 1 << 4,
[155] Fix | Delete
MLX4_IB_RX_HASH_DST_PORT_TCP = 1 << 5,
[156] Fix | Delete
MLX4_IB_RX_HASH_SRC_PORT_UDP = 1 << 6,
[157] Fix | Delete
MLX4_IB_RX_HASH_DST_PORT_UDP = 1 << 7,
[158] Fix | Delete
MLX4_IB_RX_HASH_INNER = 1ULL << 31,
[159] Fix | Delete
};
[160] Fix | Delete
[161] Fix | Delete
struct mlx4_ib_rss_caps {
[162] Fix | Delete
__aligned_u64 rx_hash_fields_mask; /* enum mlx4_ib_rx_hash_fields */
[163] Fix | Delete
__u8 rx_hash_function; /* enum mlx4_ib_rx_hash_function_flags */
[164] Fix | Delete
__u8 reserved[7];
[165] Fix | Delete
};
[166] Fix | Delete
[167] Fix | Delete
enum query_device_resp_mask {
[168] Fix | Delete
MLX4_IB_QUERY_DEV_RESP_MASK_CORE_CLOCK_OFFSET = 1UL << 0,
[169] Fix | Delete
};
[170] Fix | Delete
[171] Fix | Delete
struct mlx4_ib_tso_caps {
[172] Fix | Delete
__u32 max_tso; /* Maximum tso payload size in bytes */
[173] Fix | Delete
/* Corresponding bit will be set if qp type from
[174] Fix | Delete
* 'enum ib_qp_type' is supported.
[175] Fix | Delete
*/
[176] Fix | Delete
__u32 supported_qpts;
[177] Fix | Delete
};
[178] Fix | Delete
[179] Fix | Delete
struct mlx4_uverbs_ex_query_device_resp {
[180] Fix | Delete
__u32 comp_mask;
[181] Fix | Delete
__u32 response_length;
[182] Fix | Delete
__aligned_u64 hca_core_clock_offset;
[183] Fix | Delete
__u32 max_inl_recv_sz;
[184] Fix | Delete
__u32 reserved;
[185] Fix | Delete
struct mlx4_ib_rss_caps rss_caps;
[186] Fix | Delete
struct mlx4_ib_tso_caps tso_caps;
[187] Fix | Delete
};
[188] Fix | Delete
[189] Fix | Delete
#endif /* MLX4_ABI_USER_H */
[190] Fix | Delete
[191] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function