Skip to content

Commit ae46356

Browse files
Sindhu-Devalerleon
authored andcommitted
RDMA/irdma: Report correct WC error
Report the correct WC error if a MW bind is performed on an already valid/bound window. Fixes: 44d9e52 ("RDMA/irdma: Implement device initialization definitions") Signed-off-by: Sindhu Devale <[email protected]> Signed-off-by: Shiraz Saleem <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 3bfb25f commit ae46356

File tree

1 file changed

+1
-0
lines changed
  • drivers/infiniband/hw/irdma

1 file changed

+1
-0
lines changed

drivers/infiniband/hw/irdma/hw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ static void irdma_set_flush_fields(struct irdma_sc_qp *qp,
191191
case IRDMA_AE_AMP_MWBIND_INVALID_RIGHTS:
192192
case IRDMA_AE_AMP_MWBIND_BIND_DISABLED:
193193
case IRDMA_AE_AMP_MWBIND_INVALID_BOUNDS:
194+
case IRDMA_AE_AMP_MWBIND_VALID_STAG:
194195
qp->flush_code = FLUSH_MW_BIND_ERR;
195196
qp->event_type = IRDMA_QP_EVENT_ACCESS_ERR;
196197
break;

0 commit comments

Comments
 (0)