summaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma
diff options
context:
space:
mode:
authorBob Pearson <rpearsonhpe@gmail.com>2021-10-07 22:40:49 +0200
committerJason Gunthorpe <jgg@nvidia.com>2021-10-12 18:25:26 +0200
commit73a54932100375ba94b31710f1e3f1234f23be0b (patch)
treecd0be4cfd74d32397a36452aa0070a56e4949996 /include/uapi/rdma
parentRDMA/rxe: Change AH objects to indexed (diff)
downloadlinux-73a54932100375ba94b31710f1e3f1234f23be0b.tar.xz
linux-73a54932100375ba94b31710f1e3f1234f23be0b.zip
RDMA/rxe: Create AH index and return to user space
Make changes to rdma_user_rxe.h to allow indexing AH objects, passing the index in UD send WRs to the driver and returning the index to the rxe provider. Modify rxe_create_ah() to add an index to AH when created and if called from a new user provider return it to user space. If called from an old provider mark the AH as not having a useful index. Modify rxe_destroy_ah to drop the index before deleting the object. Link: https://lore.kernel.org/r/20211007204051.10086-4-rpearsonhpe@gmail.com Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include/uapi/rdma')
-rw-r--r--include/uapi/rdma/rdma_user_rxe.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/uapi/rdma/rdma_user_rxe.h b/include/uapi/rdma/rdma_user_rxe.h
index 2f1ebbe96434..dc9f7a5e203a 100644
--- a/include/uapi/rdma/rdma_user_rxe.h
+++ b/include/uapi/rdma/rdma_user_rxe.h
@@ -99,7 +99,8 @@ struct rxe_send_wr {
__u32 remote_qkey;
__u16 pkey_index;
__u16 reserved;
- __u32 pad[5];
+ __u32 ah_num;
+ __u32 pad[4];
struct rxe_av av;
} ud;
struct {
@@ -170,6 +171,11 @@ struct rxe_recv_wqe {
struct rxe_dma_info dma;
};
+struct rxe_create_ah_resp {
+ __u32 ah_num;
+ __u32 reserved;
+};
+
struct rxe_create_cq_resp {
struct mminfo mi;
};