Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/rdma
File: rvt-abi.h
/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* This file contains defines, structures, etc. that are used
[3] Fix | Delete
* to communicate between kernel and user code.
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
#ifndef RVT_ABI_USER_H
[7] Fix | Delete
#define RVT_ABI_USER_H
[8] Fix | Delete
[9] Fix | Delete
#include <linux/types.h>
[10] Fix | Delete
#include <rdma/ib_user_verbs.h>
[11] Fix | Delete
#ifndef RDMA_ATOMIC_UAPI
[12] Fix | Delete
#define RDMA_ATOMIC_UAPI(_type, _name) struct{ _type val; } _name
[13] Fix | Delete
#endif
[14] Fix | Delete
[15] Fix | Delete
struct rvt_wqe_sge {
[16] Fix | Delete
__aligned_u64 addr;
[17] Fix | Delete
__u32 length;
[18] Fix | Delete
__u32 lkey;
[19] Fix | Delete
};
[20] Fix | Delete
[21] Fix | Delete
/*
[22] Fix | Delete
* This structure is used to contain the head pointer, tail pointer,
[23] Fix | Delete
* and completion queue entries as a single memory allocation so
[24] Fix | Delete
* it can be mmap'ed into user space.
[25] Fix | Delete
*/
[26] Fix | Delete
struct rvt_cq_wc {
[27] Fix | Delete
/* index of next entry to fill */
[28] Fix | Delete
RDMA_ATOMIC_UAPI(__u32, head);
[29] Fix | Delete
/* index of next ib_poll_cq() entry */
[30] Fix | Delete
RDMA_ATOMIC_UAPI(__u32, tail);
[31] Fix | Delete
[32] Fix | Delete
/* these are actually size ibcq.cqe + 1 */
[33] Fix | Delete
struct ib_uverbs_wc uqueue[];
[34] Fix | Delete
};
[35] Fix | Delete
[36] Fix | Delete
/*
[37] Fix | Delete
* Receive work request queue entry.
[38] Fix | Delete
* The size of the sg_list is determined when the QP (or SRQ) is created
[39] Fix | Delete
* and stored in qp->r_rq.max_sge (or srq->rq.max_sge).
[40] Fix | Delete
*/
[41] Fix | Delete
struct rvt_rwqe {
[42] Fix | Delete
__u64 wr_id;
[43] Fix | Delete
__u8 num_sge;
[44] Fix | Delete
__u8 padding[7];
[45] Fix | Delete
struct rvt_wqe_sge sg_list[];
[46] Fix | Delete
};
[47] Fix | Delete
[48] Fix | Delete
/*
[49] Fix | Delete
* This structure is used to contain the head pointer, tail pointer,
[50] Fix | Delete
* and receive work queue entries as a single memory allocation so
[51] Fix | Delete
* it can be mmap'ed into user space.
[52] Fix | Delete
* Note that the wq array elements are variable size so you can't
[53] Fix | Delete
* just index into the array to get the N'th element;
[54] Fix | Delete
* use get_rwqe_ptr() for user space and rvt_get_rwqe_ptr()
[55] Fix | Delete
* for kernel space.
[56] Fix | Delete
*/
[57] Fix | Delete
struct rvt_rwq {
[58] Fix | Delete
/* new work requests posted to the head */
[59] Fix | Delete
RDMA_ATOMIC_UAPI(__u32, head);
[60] Fix | Delete
/* receives pull requests from here. */
[61] Fix | Delete
RDMA_ATOMIC_UAPI(__u32, tail);
[62] Fix | Delete
struct rvt_rwqe wq[];
[63] Fix | Delete
};
[64] Fix | Delete
#endif /* RVT_ABI_USER_H */
[65] Fix | Delete
[66] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function