summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMustafa Ismail <mustafa.ismail@intel.com>2016-08-25 11:52:47 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-07 15:21:20 +0200
commit0402876c03169c9ed360cc3419cb02dc4c4e0f1c (patch)
tree26c44245cba7309a7c59020cf22fcfe71940e11a /drivers
parentd62293515889a392409773877bce795a6b215501 (diff)
downloadlinux-stable-0402876c03169c9ed360cc3419cb02dc4c4e0f1c.tar.gz
linux-stable-0402876c03169c9ed360cc3419cb02dc4c4e0f1c.tar.bz2
linux-stable-0402876c03169c9ed360cc3419cb02dc4c4e0f1c.zip
i40iw: Update hw_iwarp_state
commit 866e0f4d73390ee6f5cd68aa92cf74eef3a2b0f2 upstream. 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: 4e9042e647ff ("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw_hw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_hw.c b/drivers/infiniband/hw/i40iw/i40iw_hw.c
index 3ee0cad96bc6..0c92a40b3e86 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_hw.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_hw.c
@@ -265,6 +265,7 @@ void i40iw_next_iw_state(struct i40iw_qp *iwqp,
info.dont_send_fin = false;
if (iwqp->sc_qp.term_flags && (state == I40IW_QP_STATE_ERROR))
info.reset_tcp_conn = true;
+ iwqp->hw_iwarp_state = state;
i40iw_hw_modify_qp(iwqp->iwdev, iwqp, &info, 0);
}