Skip to content

Commit ba12ab6

Browse files
mustafakismailrleon
authored andcommitted
RDMA/irdma: Do not modify to SQD on error
Remove the modify to SQD before going to ERROR state. It is not needed. Fixes: b48c24c ("RDMA/irdma: Implement device supported verb APIs") Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com> Link: https://lore.kernel.org/r/20231114170246.238-2-shiraz.saleem@intel.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent efb9cbf commit ba12ab6

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/infiniband/hw/irdma/verbs.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,13 +1424,6 @@ int irdma_modify_qp_roce(struct ib_qp *ibqp, struct ib_qp_attr *attr,
14241424
case IB_QPS_SQE:
14251425
case IB_QPS_ERR:
14261426
case IB_QPS_RESET:
1427-
if (iwqp->iwarp_state == IRDMA_QP_STATE_RTS) {
1428-
spin_unlock_irqrestore(&iwqp->lock, flags);
1429-
info.next_iwarp_state = IRDMA_QP_STATE_SQD;
1430-
irdma_hw_modify_qp(iwdev, iwqp, &info, true);
1431-
spin_lock_irqsave(&iwqp->lock, flags);
1432-
}
1433-
14341427
if (iwqp->iwarp_state == IRDMA_QP_STATE_ERROR) {
14351428
spin_unlock_irqrestore(&iwqp->lock, flags);
14361429
if (udata && udata->inlen) {

0 commit comments

Comments
 (0)