diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2019-07-08 12:17:48 -0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-07-08 13:00:29 -0300 |
commit | f10ff380fd7dfba4a36d40f8dd00fe17da8a1a10 (patch) | |
tree | 30ac7f553df87fe22c47a7f7a2f82617ae57de02 /include/uapi/rdma | |
parent | 4c7d6dcd364843e408a60952ba914bb72bafc6cc (diff) | |
download | linux-f10ff380fd7dfba4a36d40f8dd00fe17da8a1a10.tar.bz2 |
RDMA/rvt: Do not use a kernel header in the ABI
rvt was using ib_sge as part of it's ABI, which is not allowed. Introduce
a new struct with the same layout and use it instead.
Fixes: dabac6e460ce ("IB/hfi1: Move receive work queue struct into uapi directory")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/uapi/rdma')
-rw-r--r-- | include/uapi/rdma/rvt-abi.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/uapi/rdma/rvt-abi.h b/include/uapi/rdma/rvt-abi.h index d2e35d24f1a9..7328293c715c 100644 --- a/include/uapi/rdma/rvt-abi.h +++ b/include/uapi/rdma/rvt-abi.h @@ -10,11 +10,16 @@ #include <linux/types.h> #include <rdma/ib_user_verbs.h> -#include <rdma/ib_verbs.h> #ifndef RDMA_ATOMIC_UAPI #define RDMA_ATOMIC_UAPI(_type, _name) struct{ _type val; } _name #endif +struct rvt_wqe_sge { + __aligned_u64 addr; + __u32 length; + __u32 lkey; +}; + /* * This structure is used to contain the head pointer, tail pointer, * and completion queue entries as a single memory allocation so @@ -39,7 +44,7 @@ struct rvt_rwqe { __u64 wr_id; __u8 num_sge; __u8 padding[7]; - struct ib_sge sg_list[]; + struct rvt_wqe_sge sg_list[]; }; /* |