aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
authorArik Nemtsov2012-07-29 12:18:32 +0300
committerLuciano Coelho2012-09-27 12:13:51 +0300
commitf83e54134a6d38437ddee0fda96692a6b0c33b0e (patch)
tree6e3469f9ee859bb3d7ad7459aff235af69f0e31e /drivers/net/macvlan.c
parent958e303abba61bad165a96e22e138c4763047df2 (diff)
wlcore: tx_flush - optimize flow and force Tx during the flush
Force Tx during the flush if there are packets pending in the driver. This actually solves a bug where we would get called from the mac80211 wq context, which would prevent tx_work from getting queued, even when the mutex is unlocked. Don't stop the queues needlessly if there's nothing to flush. Use a larger delay when sleeping to give the driver a chance to flush and avoid cpu busy looping. Re-arrange the loop so the last iteration is not wasted. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <luca@coelho.fi>
Diffstat (limited to 'drivers/net/macvlan.c')
0 files changed, 0 insertions, 0 deletions