Skip to content

Commit 5c14a4d

Browse files
tohojojmberg-intel
authored andcommitted
mac80211: Change default tx_sk_pacing_shift to 7
When we did the original tests for the optimal value of sk_pacing_shift, we came up with 6 ms of buffering as the default. Sadly, 6 is not a power of two, so when picking the shift value I erred on the size of less buffering and picked 4 ms instead of 8. This was probably wrong; those 2 ms of extra buffering makes a larger difference than I thought. So, change the default pacing shift to 7, which corresponds to 8 ms of buffering. The point of diminishing returns really kicks in after 8 ms, and so having this as a default should cut down on the need for extensive per-device testing and overrides needed in the drivers. Cc: stable@vger.kernel.org Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 1740771 commit 5c14a4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/mac80211/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,13 +615,13 @@ struct ieee80211_hw *ieee80211_alloc_hw_nm(size_t priv_data_len,
615615
* We need a bit of data queued to build aggregates properly, so
616616
* instruct the TCP stack to allow more than a single ms of data
617617
* to be queued in the stack. The value is a bit-shift of 1
618-
* second, so 8 is ~4ms of queued data. Only affects local TCP
618+
* second, so 7 is ~8ms of queued data. Only affects local TCP
619619
* sockets.
620620
* This is the default, anyhow - drivers may need to override it
621621
* for local reasons (longer buffers, longer completion time, or
622622
* similar).
623623
*/
624-
local->hw.tx_sk_pacing_shift = 8;
624+
local->hw.tx_sk_pacing_shift = 7;
625625

626626
/* set up some defaults */
627627
local->hw.queues = 1;

0 commit comments

Comments
 (0)