diff options
author | Wen Gong <wgong@codeaurora.org> | 2018-08-08 18:40:01 +0800 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-09-05 10:03:15 +0200 |
commit | 70e53669c4c41b0fc043cb0bcb518b53428edf64 (patch) | |
tree | 3c8f80c7c5118ef2e71775f0159573043b5c65da /net/mac80211/main.c | |
parent | e80d642552a3190aad97cae6c22742b079b5d30b (diff) | |
download | linux-stable-70e53669c4c41b0fc043cb0bcb518b53428edf64.tar.gz linux-stable-70e53669c4c41b0fc043cb0bcb518b53428edf64.tar.bz2 linux-stable-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 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index c78629f8b7a0..77381017bac7 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -611,6 +611,18 @@ struct ieee80211_hw *ieee80211_alloc_hw_nm(size_t priv_data_len, local->ops = ops; local->use_chanctx = use_chanctx; + /* + * We need a bit of data queued to build aggregates properly, so + * instruct the TCP stack to allow more than a single ms of data + * to be queued in the stack. The value is a bit-shift of 1 + * second, so 8 is ~4ms of queued data. Only affects local TCP + * sockets. + * This is the default, anyhow - drivers may need to override it + * for local reasons (longer buffers, longer completion time, or + * similar). + */ + local->hw.tx_sk_pacing_shift = 8; + /* set up some defaults */ local->hw.queues = 1; local->hw.max_rates = 1; |