forked from Minki/linux
RDMA/rxe: Convert kernel UD post send to use ah_num
Modify ib_post_send for kernel UD sends to put the AH index into the WQE instead of the address vector. Link: https://lore.kernel.org/r/20211007204051.10086-7-rpearsonhpe@gmail.com Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
e2fe06c908
commit
3b87e08242
@ -534,8 +534,11 @@ static void init_send_wr(struct rxe_qp *qp, struct rxe_send_wr *wr,
|
||||
if (qp_type(qp) == IB_QPT_UD ||
|
||||
qp_type(qp) == IB_QPT_SMI ||
|
||||
qp_type(qp) == IB_QPT_GSI) {
|
||||
struct ib_ah *ibah = ud_wr(ibwr)->ah;
|
||||
|
||||
wr->wr.ud.remote_qpn = ud_wr(ibwr)->remote_qpn;
|
||||
wr->wr.ud.remote_qkey = ud_wr(ibwr)->remote_qkey;
|
||||
wr->wr.ud.ah_num = to_rah(ibah)->ah_num;
|
||||
if (qp_type(qp) == IB_QPT_GSI)
|
||||
wr->wr.ud.pkey_index = ud_wr(ibwr)->pkey_index;
|
||||
if (wr->opcode == IB_WR_SEND_WITH_IMM)
|
||||
@ -607,12 +610,6 @@ static void init_send_wqe(struct rxe_qp *qp, const struct ib_send_wr *ibwr,
|
||||
return;
|
||||
}
|
||||
|
||||
if (qp_type(qp) == IB_QPT_UD ||
|
||||
qp_type(qp) == IB_QPT_SMI ||
|
||||
qp_type(qp) == IB_QPT_GSI)
|
||||
memcpy(&wqe->wr.wr.ud.av, &to_rah(ud_wr(ibwr)->ah)->av,
|
||||
sizeof(struct rxe_av));
|
||||
|
||||
if (unlikely(ibwr->send_flags & IB_SEND_INLINE))
|
||||
copy_inline_data_to_wqe(wqe, ibwr);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user