diff options
author | Eli Cohen <eli@mellanox.co.il> | 2006-03-02 11:05:19 -0800 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-03-20 10:08:19 -0800 |
commit | 54d07e2a1ead2f093ce054cda2e0f5ec163c650c (patch) | |
tree | 0d5d495d25506839bd8bec0c8da092ca8b007202 /drivers/infiniband/ulp | |
parent | 8d3ef29d6be1e750512e0a9dbea6225290b81d0a (diff) | |
download | op-kernel-dev-54d07e2a1ead2f093ce054cda2e0f5ec163c650c.zip op-kernel-dev-54d07e2a1ead2f093ce054cda2e0f5ec163c650c.tar.gz |
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 86bcdd7..5a5367d 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) ret = ipoib_ib_post_receives(dev); if (ret) { ipoib_warn(priv, "ipoib_ib_post_receives returned %d\n", ret); + ipoib_ib_dev_stop(dev); return -1; } |