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>
This commit is contained in:
committed by
Jason Gunthorpe
parent
99c13a3e29
commit
73a5493210
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user