Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/rdma
File: siw-abi.h
/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
[0] Fix | Delete
[1] Fix | Delete
/* Authors: Bernard Metzler <bmt@zurich.ibm.com> */
[2] Fix | Delete
/* Copyright (c) 2008-2019, IBM Corporation */
[3] Fix | Delete
[4] Fix | Delete
#ifndef _SIW_USER_H
[5] Fix | Delete
#define _SIW_USER_H
[6] Fix | Delete
[7] Fix | Delete
#include <linux/types.h>
[8] Fix | Delete
[9] Fix | Delete
#define SIW_NODE_DESC_COMMON "Software iWARP stack"
[10] Fix | Delete
#define SIW_ABI_VERSION 1
[11] Fix | Delete
#define SIW_MAX_SGE 6
[12] Fix | Delete
#define SIW_UOBJ_MAX_KEY 0x08FFFF
[13] Fix | Delete
#define SIW_INVAL_UOBJ_KEY (SIW_UOBJ_MAX_KEY + 1)
[14] Fix | Delete
[15] Fix | Delete
struct siw_uresp_create_cq {
[16] Fix | Delete
__u32 cq_id;
[17] Fix | Delete
__u32 num_cqe;
[18] Fix | Delete
__aligned_u64 cq_key;
[19] Fix | Delete
};
[20] Fix | Delete
[21] Fix | Delete
struct siw_uresp_create_qp {
[22] Fix | Delete
__u32 qp_id;
[23] Fix | Delete
__u32 num_sqe;
[24] Fix | Delete
__u32 num_rqe;
[25] Fix | Delete
__u32 pad;
[26] Fix | Delete
__aligned_u64 sq_key;
[27] Fix | Delete
__aligned_u64 rq_key;
[28] Fix | Delete
};
[29] Fix | Delete
[30] Fix | Delete
struct siw_ureq_reg_mr {
[31] Fix | Delete
__u8 stag_key;
[32] Fix | Delete
__u8 reserved[3];
[33] Fix | Delete
__u32 pad;
[34] Fix | Delete
};
[35] Fix | Delete
[36] Fix | Delete
struct siw_uresp_reg_mr {
[37] Fix | Delete
__u32 stag;
[38] Fix | Delete
__u32 pad;
[39] Fix | Delete
};
[40] Fix | Delete
[41] Fix | Delete
struct siw_uresp_create_srq {
[42] Fix | Delete
__u32 num_rqe;
[43] Fix | Delete
__u32 pad;
[44] Fix | Delete
__aligned_u64 srq_key;
[45] Fix | Delete
};
[46] Fix | Delete
[47] Fix | Delete
struct siw_uresp_alloc_ctx {
[48] Fix | Delete
__u32 dev_id;
[49] Fix | Delete
__u32 pad;
[50] Fix | Delete
};
[51] Fix | Delete
[52] Fix | Delete
enum siw_opcode {
[53] Fix | Delete
SIW_OP_WRITE,
[54] Fix | Delete
SIW_OP_READ,
[55] Fix | Delete
SIW_OP_READ_LOCAL_INV,
[56] Fix | Delete
SIW_OP_SEND,
[57] Fix | Delete
SIW_OP_SEND_WITH_IMM,
[58] Fix | Delete
SIW_OP_SEND_REMOTE_INV,
[59] Fix | Delete
[60] Fix | Delete
/* Unsupported */
[61] Fix | Delete
SIW_OP_FETCH_AND_ADD,
[62] Fix | Delete
SIW_OP_COMP_AND_SWAP,
[63] Fix | Delete
[64] Fix | Delete
SIW_OP_RECEIVE,
[65] Fix | Delete
/* provider internal SQE */
[66] Fix | Delete
SIW_OP_READ_RESPONSE,
[67] Fix | Delete
/*
[68] Fix | Delete
* below opcodes valid for
[69] Fix | Delete
* in-kernel clients only
[70] Fix | Delete
*/
[71] Fix | Delete
SIW_OP_INVAL_STAG,
[72] Fix | Delete
SIW_OP_REG_MR,
[73] Fix | Delete
SIW_NUM_OPCODES
[74] Fix | Delete
};
[75] Fix | Delete
[76] Fix | Delete
/* Keep it same as ibv_sge to allow for memcpy */
[77] Fix | Delete
struct siw_sge {
[78] Fix | Delete
__aligned_u64 laddr;
[79] Fix | Delete
__u32 length;
[80] Fix | Delete
__u32 lkey;
[81] Fix | Delete
};
[82] Fix | Delete
[83] Fix | Delete
/*
[84] Fix | Delete
* Inline data are kept within the work request itself occupying
[85] Fix | Delete
* the space of sge[1] .. sge[n]. Therefore, __inline__ data cannot be
[86] Fix | Delete
* supported if SIW_MAX_SGE is below 2 elements.
[87] Fix | Delete
*/
[88] Fix | Delete
#define SIW_MAX_INLINE (sizeof(struct siw_sge) * (SIW_MAX_SGE - 1))
[89] Fix | Delete
[90] Fix | Delete
#if SIW_MAX_SGE < 2
[91] Fix | Delete
#error "SIW_MAX_SGE must be at least 2"
[92] Fix | Delete
#endif
[93] Fix | Delete
[94] Fix | Delete
enum siw_wqe_flags {
[95] Fix | Delete
SIW_WQE_VALID = 1,
[96] Fix | Delete
SIW_WQE_INLINE = (1 << 1),
[97] Fix | Delete
SIW_WQE_SIGNALLED = (1 << 2),
[98] Fix | Delete
SIW_WQE_SOLICITED = (1 << 3),
[99] Fix | Delete
SIW_WQE_READ_FENCE = (1 << 4),
[100] Fix | Delete
SIW_WQE_REM_INVAL = (1 << 5),
[101] Fix | Delete
SIW_WQE_COMPLETED = (1 << 6)
[102] Fix | Delete
};
[103] Fix | Delete
[104] Fix | Delete
/* Send Queue Element */
[105] Fix | Delete
struct siw_sqe {
[106] Fix | Delete
__aligned_u64 id;
[107] Fix | Delete
__u16 flags;
[108] Fix | Delete
__u8 num_sge;
[109] Fix | Delete
/* Contains enum siw_opcode values */
[110] Fix | Delete
__u8 opcode;
[111] Fix | Delete
__u32 rkey;
[112] Fix | Delete
union {
[113] Fix | Delete
__aligned_u64 raddr;
[114] Fix | Delete
__aligned_u64 base_mr;
[115] Fix | Delete
};
[116] Fix | Delete
union {
[117] Fix | Delete
struct siw_sge sge[SIW_MAX_SGE];
[118] Fix | Delete
__aligned_u64 access;
[119] Fix | Delete
};
[120] Fix | Delete
};
[121] Fix | Delete
[122] Fix | Delete
/* Receive Queue Element */
[123] Fix | Delete
struct siw_rqe {
[124] Fix | Delete
__aligned_u64 id;
[125] Fix | Delete
__u16 flags;
[126] Fix | Delete
__u8 num_sge;
[127] Fix | Delete
/*
[128] Fix | Delete
* only used by kernel driver,
[129] Fix | Delete
* ignored if set by user
[130] Fix | Delete
*/
[131] Fix | Delete
__u8 opcode;
[132] Fix | Delete
__u32 unused;
[133] Fix | Delete
struct siw_sge sge[SIW_MAX_SGE];
[134] Fix | Delete
};
[135] Fix | Delete
[136] Fix | Delete
enum siw_notify_flags {
[137] Fix | Delete
SIW_NOTIFY_NOT = (0),
[138] Fix | Delete
SIW_NOTIFY_SOLICITED = (1 << 0),
[139] Fix | Delete
SIW_NOTIFY_NEXT_COMPLETION = (1 << 1),
[140] Fix | Delete
SIW_NOTIFY_MISSED_EVENTS = (1 << 2),
[141] Fix | Delete
SIW_NOTIFY_ALL = SIW_NOTIFY_SOLICITED | SIW_NOTIFY_NEXT_COMPLETION |
[142] Fix | Delete
SIW_NOTIFY_MISSED_EVENTS
[143] Fix | Delete
};
[144] Fix | Delete
[145] Fix | Delete
enum siw_wc_status {
[146] Fix | Delete
SIW_WC_SUCCESS,
[147] Fix | Delete
SIW_WC_LOC_LEN_ERR,
[148] Fix | Delete
SIW_WC_LOC_PROT_ERR,
[149] Fix | Delete
SIW_WC_LOC_QP_OP_ERR,
[150] Fix | Delete
SIW_WC_WR_FLUSH_ERR,
[151] Fix | Delete
SIW_WC_BAD_RESP_ERR,
[152] Fix | Delete
SIW_WC_LOC_ACCESS_ERR,
[153] Fix | Delete
SIW_WC_REM_ACCESS_ERR,
[154] Fix | Delete
SIW_WC_REM_INV_REQ_ERR,
[155] Fix | Delete
SIW_WC_GENERAL_ERR,
[156] Fix | Delete
SIW_NUM_WC_STATUS
[157] Fix | Delete
};
[158] Fix | Delete
[159] Fix | Delete
struct siw_cqe {
[160] Fix | Delete
__aligned_u64 id;
[161] Fix | Delete
__u8 flags;
[162] Fix | Delete
__u8 opcode;
[163] Fix | Delete
__u16 status;
[164] Fix | Delete
__u32 bytes;
[165] Fix | Delete
union {
[166] Fix | Delete
__aligned_u64 imm_data;
[167] Fix | Delete
__u32 inval_stag;
[168] Fix | Delete
};
[169] Fix | Delete
/* QP number or QP pointer */
[170] Fix | Delete
union {
[171] Fix | Delete
struct ib_qp *base_qp;
[172] Fix | Delete
__aligned_u64 qp_id;
[173] Fix | Delete
};
[174] Fix | Delete
};
[175] Fix | Delete
[176] Fix | Delete
/*
[177] Fix | Delete
* Shared structure between user and kernel
[178] Fix | Delete
* to control CQ arming.
[179] Fix | Delete
*/
[180] Fix | Delete
struct siw_cq_ctrl {
[181] Fix | Delete
__u32 flags;
[182] Fix | Delete
__u32 pad;
[183] Fix | Delete
};
[184] Fix | Delete
#endif
[185] Fix | Delete
[186] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function