diff options
author | Mustafa Ismail <mustafa.ismail@intel.com> | 2023-05-22 10:56:54 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-09 10:32:17 +0200 |
commit | 60bd1403bab7f38a8dfae8fc34d9d5fb9cc47c6c (patch) | |
tree | 5a1e098c1ecb0657be8f73eb8900ba12ac4c33e4 | |
parent | 0b3c392b82cdf867808a8ea7c6760d3c7e6b6627 (diff) | |
download | linux-stable-60bd1403bab7f38a8dfae8fc34d9d5fb9cc47c6c.tar.gz linux-stable-60bd1403bab7f38a8dfae8fc34d9d5fb9cc47c6c.tar.bz2 linux-stable-60bd1403bab7f38a8dfae8fc34d9d5fb9cc47c6c.zip |
RDMA/irdma: Fix Local Invalidate fencing
[ Upstream commit 5842d1d9c1b0d17e0c29eae65ae1f245f83682dd ]
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: b48c24c2d710 ("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>
-rw-r--r-- | drivers/infiniband/hw/irdma/verbs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/irdma/verbs.c b/drivers/infiniband/hw/irdma/verbs.c index 7745740e737a..60cf83c4119e 100644 --- a/drivers/infiniband/hw/irdma/verbs.c +++ b/drivers/infiniband/hw/irdma/verbs.c @@ -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) |