diff options
author | Arik Nemtsov | 2012-07-29 12:18:32 +0300 |
---|---|---|
committer | Luciano Coelho | 2012-09-27 12:13:51 +0300 |
commit | f83e54134a6d38437ddee0fda96692a6b0c33b0e (patch) | |
tree | 6e3469f9ee859bb3d7ad7459aff235af69f0e31e /net/x25 | |
parent | 958e303abba61bad165a96e22e138c4763047df2 (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 'net/x25')
0 files changed, 0 insertions, 0 deletions