IPoIB/cm: Drain cq in ipoib_cm_dev_stop()
authorMichael S. Tsirkin <mst@dev.mellanox.co.il>
Thu, 24 May 2007 15:32:46 +0000 (18:32 +0300)
committerRoland Dreier <rolandd@cisco.com>
Thu, 24 May 2007 21:02:40 +0000 (14:02 -0700)
commit2dfbfc37121d307e1f1d24c2979382cb17b19347
treeb301f2f55738bb6ec9621fbe81161d93701c6bcf
parent8fd357a6e3375083f7d321413eb8f6739491f342
IPoIB/cm: Drain cq in ipoib_cm_dev_stop()

Since NAPI polling is disabled while ipoib_cm_dev_stop() is running,
ipoib_cm_dev_stop() must poll the CQ itself in order to see the
packets draining.

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