OSDN Git Service

iw_cxgb4: only reconnect with MPAv1 if the peer aborts
authorSteve Wise <swise@opengridcomputing.com>
Sat, 10 Nov 2018 13:27:39 +0000 (05:27 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 21 Nov 2018 23:15:19 +0000 (16:15 -0700)
commit9828ca654b52848e7eb7dcc9b0994ff130dd4546
treed2eda0b8bc6385ed5d9ac0653b72775a3cd75eea
parent3eeeb7a59acddaa326b03efdf6dce61c120449a3
iw_cxgb4: only reconnect with MPAv1 if the peer aborts

Only retry connection setup with MPAv1 if the peer actually aborted the
connection upon receiving the MPAv2 start message.  This avoids retrying
with MPAv1 in the case where the connection was aborted due to retransmit
timeouts.

Fixes: d2fe99e86bb2 ("RDMA/cxgb4: Add support for MPAv2 Enhanced RDMA Negotiation")
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb4/cm.c