summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/irdma/hw.c
diff options
context:
space:
mode:
authorSindhu Devale <sindhu.devale@intel.com>2023-07-25 17:54:38 +0200
committerLeon Romanovsky <leon@kernel.org>2023-07-26 13:58:42 +0200
commitae463563b7a1b7d4a3d0b065b09d37a76b693937 (patch)
treeefc58c1348b22c19f02380ab8e977944ec4eface /drivers/infiniband/hw/irdma/hw.c
parentRDMA/irdma: Fix op_type reporting in CQEs (diff)
downloadlinux-ae463563b7a1b7d4a3d0b065b09d37a76b693937.tar.xz
linux-ae463563b7a1b7d4a3d0b065b09d37a76b693937.zip
RDMA/irdma: Report correct WC error
Report the correct WC error if a MW bind is performed on an already valid/bound window. Fixes: 44d9e52977a1 ("RDMA/irdma: Implement device initialization definitions") Signed-off-by: Sindhu Devale <sindhu.devale@intel.com> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com> Link: https://lore.kernel.org/r/20230725155439.1057-2-shiraz.saleem@intel.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/irdma/hw.c')
-rw-r--r--drivers/infiniband/hw/irdma/hw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/irdma/hw.c b/drivers/infiniband/hw/irdma/hw.c
index 1cfc03da89e7..457368e324e1 100644
--- a/drivers/infiniband/hw/irdma/hw.c
+++ b/drivers/infiniband/hw/irdma/hw.c
@@ -191,6 +191,7 @@ static void irdma_set_flush_fields(struct irdma_sc_qp *qp,
case IRDMA_AE_AMP_MWBIND_INVALID_RIGHTS:
case IRDMA_AE_AMP_MWBIND_BIND_DISABLED:
case IRDMA_AE_AMP_MWBIND_INVALID_BOUNDS:
+ case IRDMA_AE_AMP_MWBIND_VALID_STAG:
qp->flush_code = FLUSH_MW_BIND_ERR;
qp->event_type = IRDMA_QP_EVENT_ACCESS_ERR;
break;