Skip to content

Commit 5842d1d

Browse files
mustafakismailjgunthorpe
authored andcommitted
RDMA/irdma: Fix Local Invalidate fencing
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: b48c24c ("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>
1 parent c8f304d commit 5842d1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/infiniband/hw/irdma/verbs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3292,6 +3292,7 @@ static int irdma_post_send(struct ib_qp *ibqp,
32923292
break;
32933293
case IB_WR_LOCAL_INV:
32943294
info.op_type = IRDMA_OP_TYPE_INV_STAG;
3295+
info.local_fence = info.read_fence;
32953296
info.op.inv_local_stag.target_stag = ib_wr->ex.invalidate_rkey;
32963297
err = irdma_uk_stag_local_invalidate(ukqp, &info, true);
32973298
break;

0 commit comments

Comments
 (0)