IB/srp: destroy and recreate QP and CQs when reconnecting
authorIshai Rabinovitz <ishai@mellanox.co.il>
Mon, 26 Nov 2012 10:44:53 +0000 (11:44 +0100)
committerRoland Dreier <roland@purestorage.com>
Sat, 1 Dec 2012 01:40:32 +0000 (17:40 -0800)
commit73aa89ed9e2bebf0c3fff4504e6dff1421b5c819
treef42868513f2d3532a1ca3e37445cf6eab7b410c4
parentef6c49d87c3418c442a22e55e3ce2f91b163d69e
IB/srp: destroy and recreate QP and CQs when reconnecting

HW QP FATAL errors persist over a reset operation, but we can recover
from that by recreating the QP and associated CQs for each connection.
Creating a new QP/CQ also completely forecloses any possibility of
getting stale completions or packets on the new connection.

Signed-off-by: Ishai Rabinovitz <ishai@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
[ updated to current code from OFED, cleaned up commit message ]

Signed-off-by: David Dillow <dillowda@ornl.gov>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/srp/ib_srp.c