mac80211: expose txq queue depth and size to drivers
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 27 Jan 2016 14:26:12 +0000 (15:26 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 24 Feb 2016 08:04:30 +0000 (09:04 +0100)
commitf2ac7e301ae6397669ff3f79e691942a9b5d2f39
treec4bc882bf5deb92283c0de07cca357bde008b402
parentdfdfc2beb0dd7e3a067d2eeacb4623cb48e77658
mac80211: expose txq queue depth and size to drivers

This will allow drivers to make more educated
decisions whether to defer transmission or not.

Relying on wake_tx_queue() call count implicitly
was not possible because it could be called
without queued frame count actually changing on
software tx aggregation start/stop code paths.

It was also not possible to know how long
byte-wise queue was without dequeueing.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/ieee80211_i.h
net/mac80211/iface.c
net/mac80211/sta_info.c
net/mac80211/tx.c
net/mac80211/util.c