RDMA/iw_cxgb4: clean up c4iw_reject_cr()
authorHariprasad S <hariprasad@chelsio.com>
Thu, 9 Jun 2016 19:35:13 +0000 (01:05 +0530)
committerDoug Ledford <dledford@redhat.com>
Thu, 23 Jun 2016 14:44:16 +0000 (10:44 -0400)
commitbce2841f5a0dd9caf327fb1bc0051ea09a9e7dfb
tree6f13db44a09508ebb64cef719f0daea0619fddde
parent68cebcab59fbfbab5827fcc44e04cd31da02041b
RDMA/iw_cxgb4: clean up c4iw_reject_cr()

Get rid of unneeded code, and refactor things a bit.

For MPA version 0 we abort the connection.  For > 0, we attempt to send
an MPA_START/REJECT Reply, and then disconnect gracefully.  If the send
of the MPA message fails, then we abort the connection.  We can ignore
c4iw_ep_disconnect() errors here because it will clean up the endpoint
if there are failures.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cm.c