]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sfc: lock TX queues when calling netif_device_detach()
authorDaniel Pieczko <dpieczko@solarflare.com>
Wed, 17 Oct 2012 12:21:23 +0000 (13:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 19:11:55 +0000 (12:11 -0700)
commit54ad9a8b55456fc16e326f79f9038a213a2df4c4
tree409d00b4ace296d5b1a759304b4031a1b8216681
parente0992b773dfaea1798272b1c4f6d4c4e90e9da84
sfc: lock TX queues when calling netif_device_detach()

[ Upstream commit c2f3b8e3a44b6fe9e36704e30157ebe1a88c08b1 ]

The assertion of netif_device_present() at the top of
efx_hard_start_xmit() may fail if we don't do this.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
[bwh: Backported to 3.4: adjust context]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/efx.h
drivers/net/ethernet/sfc/selftest.c