summaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorWen Gong2018-08-08 12:40:01 +0200
committerJohannes Berg2018-09-05 10:03:15 +0200
commit70e53669c4c41b0fc043cb0bcb518b53428edf64 (patch)
tree3c8f80c7c5118ef2e71775f0159573043b5c65da /include/net/mac80211.h
parentmac80211: copy VHT EXT NSS BW Support/Capable data to station (diff)
downloadkernel-qcow2-linux-70e53669c4c41b0fc043cb0bcb518b53428edf64.tar.gz
kernel-qcow2-linux-70e53669c4c41b0fc043cb0bcb518b53428edf64.tar.xz
kernel-qcow2-linux-70e53669c4c41b0fc043cb0bcb518b53428edf64.zip
mac80211: Store sk_pacing_shift in ieee80211_hw
Make it possibly for drivers to adjust the default skb_pacing_shift by storing it in the hardware struct. Signed-off-by: Wen Gong <wgong@codeaurora.org> [adjust commit log, move & adjust comment] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 00e2e9909d45..f8247d2658ac 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -2308,6 +2308,10 @@ enum ieee80211_hw_flags {
* supported by HW.
* @max_nan_de_entries: maximum number of NAN DE functions supported by the
* device.
+ *
+ * @tx_sk_pacing_shift: Pacing shift to set on TCP sockets when frames from
+ * them are encountered. The default should typically not be changed,
+ * unless the driver has good reasons for needing more buffers.
*/
struct ieee80211_hw {
struct ieee80211_conf conf;
@@ -2343,6 +2347,7 @@ struct ieee80211_hw {
u8 n_cipher_schemes;
const struct ieee80211_cipher_scheme *cipher_schemes;
u8 max_nan_de_entries;
+ u8 tx_sk_pacing_shift;
};
static inline bool _ieee80211_hw_check(struct ieee80211_hw *hw,