IPoIB: Clean up if posting receives fails
authorEli Cohen <eli@mellanox.co.il>
Thu, 2 Mar 2006 19:05:19 +0000 (11:05 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:19 +0000 (10:08 -0800)
commit54d07e2a1ead2f093ce054cda2e0f5ec163c650c
tree0d5d495d25506839bd8bec0c8da092ca8b007202
parent8d3ef29d6be1e750512e0a9dbea6225290b81d0a
IPoIB: Clean up if posting receives fails

If posting receives in ipoib_ib_dev_open() fails, call
ipoib_ib_dev_stop() to move the device's QP back to the RESET state so
that we can try again later.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_ib.c