Skip to content

Commit 866e0f4

Browse files
mustafakismaildledford
authored andcommitted
i40iw: Update hw_iwarp_state
Update iwqp->hw_iwarp_state to reflect the new state of the CQP modify QP operation. This avoids reissuing a CQP operation to modify a QP to a state that it is already in. Fixes: 4e9042e ("i40iw: add hw and utils files") Reported-by: Stefan Assmann <sassmann@redhat.com> Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
1 parent 049b1e7 commit 866e0f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/infiniband/hw/i40iw/i40iw_hw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ void i40iw_next_iw_state(struct i40iw_qp *iwqp,
265265
info.dont_send_fin = false;
266266
if (iwqp->sc_qp.term_flags && (state == I40IW_QP_STATE_ERROR))
267267
info.reset_tcp_conn = true;
268+
iwqp->hw_iwarp_state = state;
268269
i40iw_hw_modify_qp(iwqp->iwdev, iwqp, &info, 0);
269270
}
270271

0 commit comments

Comments
 (0)