]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IPoIB: Fix AH leak at interface down
authorEli Cohen <eli@mellanox.co.il>
Mon, 5 Jun 2006 16:51:36 +0000 (09:51 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 5 Jun 2006 16:51:36 +0000 (09:51 -0700)
commit959eb39297e8c82f61fbfc283ad4ff11c883bf1e
tree7539406ef0c36eb1ba6969fe8aeccd56fab97ea7
parent672c6108a51bf559d19595d9f8193dfd81f0f752
IPoIB: Fix AH leak at interface down

When ipoib_stop() is called it first calls netif_stop_queue() to stop
the kernel from passing more packets to the network driver. However,
the completion handler may call netif_wake_queue() re-enabling packet
transfer.

This might result in leaks (we see AH leaks which we think can be
attributed to this bug) as new packets get posted while the interface
is going down.

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