mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
RDMA/irdma: Do not modify to SQD on error
[ Upstream commit ba12ab66aa83a2340a51ad6e74b284269745138c ]
Remove the modify to SQD before going to ERROR state. It is not needed.
Fixes: b48c24c2d7 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9d005ea01e
commit
0b0afd4e14
@@ -1363,13 +1363,6 @@ int irdma_modify_qp_roce(struct ib_qp *ibqp, struct ib_qp_attr *attr,
|
|||||||
case IB_QPS_SQE:
|
case IB_QPS_SQE:
|
||||||
case IB_QPS_ERR:
|
case IB_QPS_ERR:
|
||||||
case IB_QPS_RESET:
|
case IB_QPS_RESET:
|
||||||
if (iwqp->iwarp_state == IRDMA_QP_STATE_RTS) {
|
|
||||||
spin_unlock_irqrestore(&iwqp->lock, flags);
|
|
||||||
info.next_iwarp_state = IRDMA_QP_STATE_SQD;
|
|
||||||
irdma_hw_modify_qp(iwdev, iwqp, &info, true);
|
|
||||||
spin_lock_irqsave(&iwqp->lock, flags);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (iwqp->iwarp_state == IRDMA_QP_STATE_ERROR) {
|
if (iwqp->iwarp_state == IRDMA_QP_STATE_ERROR) {
|
||||||
spin_unlock_irqrestore(&iwqp->lock, flags);
|
spin_unlock_irqrestore(&iwqp->lock, flags);
|
||||||
if (udata && udata->inlen) {
|
if (udata && udata->inlen) {
|
||||||
|
|||||||
Reference in New Issue
Block a user