i40iw: Do not retransmit MPA request after it is ACKed
authorTatyana Nikolova <tatyana.e.nikolova@intel.com>
Tue, 3 Oct 2017 16:11:46 +0000 (11:11 -0500)
committerDoug Ledford <dledford@redhat.com>
Wed, 4 Oct 2017 19:29:39 +0000 (15:29 -0400)
commit1660a26adbb3aab6af0bb067e15a831f926c163a
tree7e295c0d83673c312bb7b4ec41799f7976b74564
parent63ea641f496ffe08b7d81589a1e1e1c43a6af9bd
i40iw: Do not retransmit MPA request after it is ACKed

The ACK packets for an MPA request are ignored and
the MPA request is retransmitted if the MPA reply
is late or missing. Fix this by checking ack_rcvd
variable before retransmitting a packet.

Fixes: f27b4746f378 ("i40iw: add connection management code")
Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_cm.c
drivers/infiniband/hw/i40iw/i40iw_cm.h