diff options
author | Eli Cohen <eli@mellanox.co.il> | 2006-03-02 14:05:19 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-03-20 13:08:19 -0500 |
commit | 54d07e2a1ead2f093ce054cda2e0f5ec163c650c (patch) | |
tree | 0d5d495d25506839bd8bec0c8da092ca8b007202 /drivers/infiniband/ulp | |
parent | 8d3ef29d6be1e750512e0a9dbea6225290b81d0a (diff) |
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>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_ib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_ib.c b/drivers/infiniband/ulp/ipoib/ipoib_ib.c index 86bcdd72a107..5a5367d10875 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_ib.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_ib.c | |||
@@ -416,6 +416,7 @@ int ipoib_ib_dev_open(struct net_device *dev) | |||
416 | ret = ipoib_ib_post_receives(dev); | 416 | ret = ipoib_ib_post_receives(dev); |
417 | if (ret) { | 417 | if (ret) { |
418 | ipoib_warn(priv, "ipoib_ib_post_receives returned %d\n", ret); | 418 | ipoib_warn(priv, "ipoib_ib_post_receives returned %d\n", ret); |
419 | ipoib_ib_dev_stop(dev); | ||
419 | return -1; | 420 | return -1; |
420 | } | 421 | } |
421 | 422 | ||