diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2016-01-27 15:26:12 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-02-24 09:04:30 +0100 |
commit | f2ac7e301ae6397669ff3f79e691942a9b5d2f39 (patch) | |
tree | c4bc882bf5deb92283c0de07cca357bde008b402 /net/mac80211/ieee80211_i.h | |
parent | dfdfc2beb0dd7e3a067d2eeacb4623cb48e77658 (diff) | |
download | op-kernel-dev-f2ac7e301ae6397669ff3f79e691942a9b5d2f39.zip op-kernel-dev-f2ac7e301ae6397669ff3f79e691942a9b5d2f39.tar.gz |
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>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index a29f61d..a96f8c0 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h @@ -804,6 +804,7 @@ enum txq_info_flags { struct txq_info { struct sk_buff_head queue; unsigned long flags; + unsigned long byte_cnt; /* keep last! */ struct ieee80211_txq txq; |