linux_old1/drivers/infiniband/ulp/ipoib
Roland Dreier 943c246e9b IPoIB: Use netif_tx_lock() and get rid of private tx_lock, LLTX
Currently, IPoIB is an LLTX driver that uses its own IRQ-disabling
tx_lock.  Not only do we want to get rid of LLTX, this actually causes
problems because of the skb_orphan() done with this tx_lock held: some
skb destructors expect to be run with interrupts enabled.

The simplest fix for this is to get rid of the driver-private tx_lock
and stop using LLTX.  We kill off priv->tx_lock and use
netif_tx_lock[_bh]() instead; the patch to do this is a tiny bit
tricky because we need to update places that take priv->lock inside
the tx_lock to disable IRQs, rather than relying on tx_lock having
already disabled IRQs.

Also, there are a couple of places where we need to disable BHs to
make sure we have a consistent context to call netif_tx_lock() (since
we no longer can use _irqsave() variants), and we also have to change
ipoib_send_comp_handler() to call drain_tx_cq() through a timer rather
than directly, because ipoib_send_comp_handler() runs in interrupt
context and drain_tx_cq() must run in BH context so it can call
netif_tx_lock().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-09-30 10:36:21 -07:00
..
Kconfig IPoIB: Correct help text for INFINIBAND_IPOIB_DEBUG 2008-07-24 20:37:25 -07:00
Makefile IPoIB: Add basic ethtool support 2008-04-16 21:09:32 -07:00
ipoib.h IPoIB: Use netif_tx_lock() and get rid of private tx_lock, LLTX 2008-09-30 10:36:21 -07:00
ipoib_cm.c IPoIB: Use netif_tx_lock() and get rid of private tx_lock, LLTX 2008-09-30 10:36:21 -07:00
ipoib_ethtool.c IPoIB: add LRO support 2008-07-14 23:48:48 -07:00
ipoib_fs.c RDMA: Remove subversion $Id tags 2008-07-14 23:48:44 -07:00
ipoib_ib.c IPoIB: Use netif_tx_lock() and get rid of private tx_lock, LLTX 2008-09-30 10:36:21 -07:00
ipoib_main.c IPoIB: Use netif_tx_lock() and get rid of private tx_lock, LLTX 2008-09-30 10:36:21 -07:00
ipoib_multicast.c IPoIB: Use netif_tx_lock() and get rid of private tx_lock, LLTX 2008-09-30 10:36:21 -07:00
ipoib_verbs.c IPoIB: Get rid of ipoib_mcast_detach() wrapper 2008-07-14 23:48:50 -07:00
ipoib_vlan.c RDMA: Remove subversion $Id tags 2008-07-14 23:48:44 -07:00