]> git.baikalelectronics.ru Git - kernel.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)
commita48637280277f264e573bfd52b41853f186541b1
tree7539406ef0c36eb1ba6969fe8aeccd56fab97ea7
parentdcac32cb4a83db07d480b06b4ea9a0af733fe45a
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