Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/rdma
File: efa-abi.h
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) */
[0] Fix | Delete
/*
[1] Fix | Delete
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All rights reserved.
[2] Fix | Delete
*/
[3] Fix | Delete
[4] Fix | Delete
#ifndef EFA_ABI_USER_H
[5] Fix | Delete
#define EFA_ABI_USER_H
[6] Fix | Delete
[7] Fix | Delete
#include <linux/types.h>
[8] Fix | Delete
[9] Fix | Delete
/*
[10] Fix | Delete
* Increment this value if any changes that break userspace ABI
[11] Fix | Delete
* compatibility are made.
[12] Fix | Delete
*/
[13] Fix | Delete
#define EFA_UVERBS_ABI_VERSION 1
[14] Fix | Delete
[15] Fix | Delete
/*
[16] Fix | Delete
* Keep structs aligned to 8 bytes.
[17] Fix | Delete
* Keep reserved fields as arrays of __u8 named reserved_XXX where XXX is the
[18] Fix | Delete
* hex bit offset of the field.
[19] Fix | Delete
*/
[20] Fix | Delete
[21] Fix | Delete
enum {
[22] Fix | Delete
EFA_ALLOC_UCONTEXT_CMD_COMP_TX_BATCH = 1 << 0,
[23] Fix | Delete
EFA_ALLOC_UCONTEXT_CMD_COMP_MIN_SQ_WR = 1 << 1,
[24] Fix | Delete
};
[25] Fix | Delete
[26] Fix | Delete
struct efa_ibv_alloc_ucontext_cmd {
[27] Fix | Delete
__u32 comp_mask;
[28] Fix | Delete
__u8 reserved_20[4];
[29] Fix | Delete
};
[30] Fix | Delete
[31] Fix | Delete
enum efa_ibv_user_cmds_supp_udata {
[32] Fix | Delete
EFA_USER_CMDS_SUPP_UDATA_QUERY_DEVICE = 1 << 0,
[33] Fix | Delete
EFA_USER_CMDS_SUPP_UDATA_CREATE_AH = 1 << 1,
[34] Fix | Delete
};
[35] Fix | Delete
[36] Fix | Delete
struct efa_ibv_alloc_ucontext_resp {
[37] Fix | Delete
__u32 comp_mask;
[38] Fix | Delete
__u32 cmds_supp_udata_mask;
[39] Fix | Delete
__u16 sub_cqs_per_cq;
[40] Fix | Delete
__u16 inline_buf_size;
[41] Fix | Delete
__u32 max_llq_size; /* bytes */
[42] Fix | Delete
__u16 max_tx_batch; /* units of 64 bytes */
[43] Fix | Delete
__u16 min_sq_wr;
[44] Fix | Delete
__u8 reserved_a0[4];
[45] Fix | Delete
};
[46] Fix | Delete
[47] Fix | Delete
struct efa_ibv_alloc_pd_resp {
[48] Fix | Delete
__u32 comp_mask;
[49] Fix | Delete
__u16 pdn;
[50] Fix | Delete
__u8 reserved_30[2];
[51] Fix | Delete
};
[52] Fix | Delete
[53] Fix | Delete
enum {
[54] Fix | Delete
EFA_CREATE_CQ_WITH_COMPLETION_CHANNEL = 1 << 0,
[55] Fix | Delete
EFA_CREATE_CQ_WITH_SGID = 1 << 1,
[56] Fix | Delete
};
[57] Fix | Delete
[58] Fix | Delete
struct efa_ibv_create_cq {
[59] Fix | Delete
__u32 comp_mask;
[60] Fix | Delete
__u32 cq_entry_size;
[61] Fix | Delete
__u16 num_sub_cqs;
[62] Fix | Delete
__u8 flags;
[63] Fix | Delete
__u8 reserved_58[5];
[64] Fix | Delete
};
[65] Fix | Delete
[66] Fix | Delete
enum {
[67] Fix | Delete
EFA_CREATE_CQ_RESP_DB_OFF = 1 << 0,
[68] Fix | Delete
};
[69] Fix | Delete
[70] Fix | Delete
struct efa_ibv_create_cq_resp {
[71] Fix | Delete
__u32 comp_mask;
[72] Fix | Delete
__u8 reserved_20[4];
[73] Fix | Delete
__aligned_u64 q_mmap_key;
[74] Fix | Delete
__aligned_u64 q_mmap_size;
[75] Fix | Delete
__u16 cq_idx;
[76] Fix | Delete
__u8 reserved_d0[2];
[77] Fix | Delete
__u32 db_off;
[78] Fix | Delete
__aligned_u64 db_mmap_key;
[79] Fix | Delete
};
[80] Fix | Delete
[81] Fix | Delete
enum {
[82] Fix | Delete
EFA_QP_DRIVER_TYPE_SRD = 0,
[83] Fix | Delete
};
[84] Fix | Delete
[85] Fix | Delete
struct efa_ibv_create_qp {
[86] Fix | Delete
__u32 comp_mask;
[87] Fix | Delete
__u32 rq_ring_size; /* bytes */
[88] Fix | Delete
__u32 sq_ring_size; /* bytes */
[89] Fix | Delete
__u32 driver_qp_type;
[90] Fix | Delete
};
[91] Fix | Delete
[92] Fix | Delete
struct efa_ibv_create_qp_resp {
[93] Fix | Delete
__u32 comp_mask;
[94] Fix | Delete
/* the offset inside the page of the rq db */
[95] Fix | Delete
__u32 rq_db_offset;
[96] Fix | Delete
/* the offset inside the page of the sq db */
[97] Fix | Delete
__u32 sq_db_offset;
[98] Fix | Delete
/* the offset inside the page of descriptors buffer */
[99] Fix | Delete
__u32 llq_desc_offset;
[100] Fix | Delete
__aligned_u64 rq_mmap_key;
[101] Fix | Delete
__aligned_u64 rq_mmap_size;
[102] Fix | Delete
__aligned_u64 rq_db_mmap_key;
[103] Fix | Delete
__aligned_u64 sq_db_mmap_key;
[104] Fix | Delete
__aligned_u64 llq_desc_mmap_key;
[105] Fix | Delete
__u16 send_sub_cq_idx;
[106] Fix | Delete
__u16 recv_sub_cq_idx;
[107] Fix | Delete
__u8 reserved_1e0[4];
[108] Fix | Delete
};
[109] Fix | Delete
[110] Fix | Delete
struct efa_ibv_create_ah_resp {
[111] Fix | Delete
__u32 comp_mask;
[112] Fix | Delete
__u16 efa_address_handle;
[113] Fix | Delete
__u8 reserved_30[2];
[114] Fix | Delete
};
[115] Fix | Delete
[116] Fix | Delete
enum {
[117] Fix | Delete
EFA_QUERY_DEVICE_CAPS_RDMA_READ = 1 << 0,
[118] Fix | Delete
EFA_QUERY_DEVICE_CAPS_RNR_RETRY = 1 << 1,
[119] Fix | Delete
EFA_QUERY_DEVICE_CAPS_CQ_NOTIFICATIONS = 1 << 2,
[120] Fix | Delete
EFA_QUERY_DEVICE_CAPS_CQ_WITH_SGID = 1 << 3,
[121] Fix | Delete
EFA_QUERY_DEVICE_CAPS_DATA_POLLING_128 = 1 << 4,
[122] Fix | Delete
EFA_QUERY_DEVICE_CAPS_RDMA_WRITE = 1 << 5,
[123] Fix | Delete
};
[124] Fix | Delete
[125] Fix | Delete
struct efa_ibv_ex_query_device_resp {
[126] Fix | Delete
__u32 comp_mask;
[127] Fix | Delete
__u32 max_sq_wr;
[128] Fix | Delete
__u32 max_rq_wr;
[129] Fix | Delete
__u16 max_sq_sge;
[130] Fix | Delete
__u16 max_rq_sge;
[131] Fix | Delete
__u32 max_rdma_size;
[132] Fix | Delete
__u32 device_caps;
[133] Fix | Delete
};
[134] Fix | Delete
[135] Fix | Delete
#endif /* EFA_ABI_USER_H */
[136] Fix | Delete
[137] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function