Commit 3cafad43 authored by Don Hiatt's avatar Don Hiatt Committed by Jason Gunthorpe

IB/hfi1: Mask the path bits with the LMC for 16B RC Acks

16B packets require that the path bits are masked with the LMC.
This mask is done correctly in all 16B header creation but was
left out for the RC Acknowledge.
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarDon Hiatt <don.hiatt@intel.com>
Signed-off-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent ae64f9bd
...@@ -843,11 +843,11 @@ static inline void hfi1_make_rc_ack_16B(struct rvt_qp *qp, ...@@ -843,11 +843,11 @@ static inline void hfi1_make_rc_ack_16B(struct rvt_qp *qp,
/* Convert dwords to flits */ /* Convert dwords to flits */
len = (*hwords + *nwords) >> 1; len = (*hwords + *nwords) >> 1;
hfi1_make_16b_hdr(hdr, hfi1_make_16b_hdr(hdr, ppd->lid |
ppd->lid | rdma_ah_get_path_bits(&qp->remote_ah_attr), (rdma_ah_get_path_bits(&qp->remote_ah_attr) &
((1 << ppd->lmc) - 1)),
opa_get_lid(rdma_ah_get_dlid(&qp->remote_ah_attr), opa_get_lid(rdma_ah_get_dlid(&qp->remote_ah_attr),
16B), 16B), len, pkey, becn, 0, l4, sc5);
len, pkey, becn, 0, l4, sc5);
bth0 = pkey | (OP(ACKNOWLEDGE) << 24); bth0 = pkey | (OP(ACKNOWLEDGE) << 24);
bth0 |= extra_bytes << 20; bth0 |= extra_bytes << 20;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment