Providers/rxe: Replace AV by AH for UD sends
PATCH v2 1/1 Providers/rxe: Replace AV by AH for UD sends
Currently the rxe provider computes an AV for each AH created. These are then passed to the kernel in each UD send WQE. This rxe provider patch matches a set of kernel patches that creates an index for the pool of AHs which are passed back to the rxe provider which in turn returns them in the UD send WQEs instead of AVs. This falls back to the older AV based WQE if either the rxe provider or the kernel does not have these patches applied.
This patch applies cleanly to
commit 3cc40881ef17 ("Merge pull request #1103 from nmorey/dev/master/suse")
Signed-off-by Bob Pearson <[email protected]>
---
v2
Rebased to current rdma-core
--- providers/rxe/rxe-abi.h | 2 + providers/rxe/rxe.c | 117 ++++++++++++++++++++++++++-------------- providers/rxe/rxe.h | 8 ++- 3 files changed, 85 insertions(+), 42 deletions(-)
providers/rxe/rxe-abi.h +2 -0
@@ -39,6 +39,8 @@#include <rdma/rdma_user_rxe.h> #include <kernel-abi/rdma_user_rxe.h> +DECLARE_DRV_CMD (urxe_create_ah,IB_USER_VERBS_CMD_CREATE_AH , + empty, rxe_create_ah_resp);DECLARE_DRV_CMD (urxe_create_cq,IB_USER_VERBS_CMD_CREATE_CQ , empty, rxe_create_cq_resp); DECLARE_DRV_CMD(urxe_create_cq_ex, IB_USER_VERBS_EX_CMD_CREATE_CQ,
providers/rxe/rxe.c +77 -40
178 lines not on this page · raw message
providers/rxe/rxe.h +6 -2
@@ -67,6 +67,7 @@ struct rxe_cq {struct rxe_ah {struct ibv_ah ibv_ah;struct rxe_av av; +int ah_num; };struct rxe_wq {
@@ -89,8 +90,6 @@ struct rxe_qp {int err; }; -#define qp_type (qp) ((qp)->vqp.qp.qp_type) -struct rxe_srq {struct ibv_srq ibv_srq;struct mminfo mmap_info;
@@ -130,4 +129,9 @@ static inline struct rxe_ah *to_rah(struct ibv_ah *ibah) return to_rxxx(ah, ah); } +static inline enum ibv_qp_type qp_type (struct rxe_qp *qp) +{ +return qp->vqp.qp.qp_type; +} +#endif /* RXE_H */
Signature · 1 line
2.32.0