]> git.kernelconcepts.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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 27 Mar 2013 02:41:08 +0000 (02:41 +0000)
commit5a4b28844e7eb7e8029a0f6d4449ac0dcc6e930b
tree29047d38453bbef205a8f88c116e258e4ee74085
parent354a9f6db9d1999aea4666e259b7849c6643a3d3
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.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/efx.h
drivers/net/ethernet/sfc/selftest.c