RDMA/i40iw: ACK MPA Reject frame
authorTatyana Nikolova <tatyana.e.nikolova@intel.com>
Fri, 5 May 2017 17:05:17 +0000 (12:05 -0500)
committerDoug Ledford <dledford@redhat.com>
Thu, 1 Jun 2017 20:59:40 +0000 (16:59 -0400)
Explicitly ACK the MPA Reject frame so the peer does
not retransmit the frame.

Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Henry Orosco <henry.orosco@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_cm.c

index e8e864fc188375238f23a41d8b9244a4dc305815..6ae98aa7f74ebb14f4ce2e9e3cee7c629270253f 100644 (file)
@@ -2445,8 +2445,8 @@ static void i40iw_handle_rcv_mpa(struct i40iw_cm_node *cm_node,
                } else {
                        type = I40IW_CM_EVENT_CONNECTED;
                        cm_node->state = I40IW_CM_STATE_OFFLOADED;
-                       i40iw_send_ack(cm_node);
                }
+               i40iw_send_ack(cm_node);
                break;
        default:
                pr_err("%s wrong cm_node state =%d\n", __func__, cm_node->state);