mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
RDMA/irdma: Fix Local Invalidate fencing
[ Upstream commit5842d1d9c1] If the local invalidate fence is indicated in the WR, only the read fence is currently being set in WQE. Fix this to set both the read and local fence in the WQE. Fixes:b48c24c2d7("RDMA/irdma: Implement device supported verb APIs") Link: https://lore.kernel.org/r/20230522155654.1309-4-shiraz.saleem@intel.com Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0b3c392b82
commit
60bd1403ba
@@ -3196,6 +3196,7 @@ static int irdma_post_send(struct ib_qp *ibqp,
|
||||
break;
|
||||
case IB_WR_LOCAL_INV:
|
||||
info.op_type = IRDMA_OP_TYPE_INV_STAG;
|
||||
info.local_fence = info.read_fence;
|
||||
info.op.inv_local_stag.target_stag = ib_wr->ex.invalidate_rkey;
|
||||
ret = irdma_uk_stag_local_invalidate(ukqp, &info, true);
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user