diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-01-17 17:18:13 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-01-17 17:18:13 -0800 |
| commit | 1fceae39e31ef60771128f0ff8eb2ba4e861b389 (patch) | |
| tree | c040b760e5e9a2ce866631950109538ee0b5dac5 /include | |
| parent | 4c115342fe31e881bd3c69784c08131901f10c95 (diff) | |
| parent | b9a785c74b8cd67761ff898f2de7d93384ecbd98 (diff) | |
Merge "mac80211: expose txq queue depth and size to drivers"
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/mac80211.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 760bc4d5a2cf..14de2a1176ab 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -5467,4 +5467,19 @@ void ieee80211_unreserve_tid(struct ieee80211_sta *sta, u8 tid); */ struct sk_buff *ieee80211_tx_dequeue(struct ieee80211_hw *hw, struct ieee80211_txq *txq); + +/** + * ieee80211_txq_get_depth - get pending frame/byte count of given txq + * + * The values are not guaranteed to be coherent with regard to each other, i.e. + * txq state can change half-way of this function and the caller may end up + * with "new" frame_cnt and "old" byte_cnt or vice-versa. + * + * @txq: pointer obtained from station or virtual interface + * @frame_cnt: pointer to store frame count + * @byte_cnt: pointer to store byte count + */ +void ieee80211_txq_get_depth(struct ieee80211_txq *txq, + unsigned long *frame_cnt, + unsigned long *byte_cnt); #endif /* MAC80211_H */ |
