aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-11-11 15:54:12 -0800
committerNathan Chancellor <natechancellor@gmail.com>2018-04-28 00:23:16 -0700
commit41b82ef958a26de6b7ee0b8256bb969cc6c48e27 (patch)
treef2050cad4d6727f5dc851d2b2970d632e5cfa94d /net/lapb/lapb_timer.c
parent9e747175f44e8e3a89f1e848c7934a0a7a6a00d2 (diff)
UPSTREAM: tcp: allow drivers to tweak TSQ logic
I had many reports that TSQ logic breaks wifi aggregation. Current logic is to allow up to 1 ms of bytes to be queued into qdisc and drivers queues. But Wifi aggregation needs a bigger budget to allow bigger rates to be discovered by various TCP Congestion Controls algorithms. This patch adds an extra socket field, allowing wifi drivers to select another log scale to derive TCP Small Queue credit from current pacing rate. Initial value is 10, meaning that this patch does not change current behavior. We expect wifi drivers to set this field to smaller values (tests have been done with values from 6 to 9) They would have to use following template : if (skb->sk && skb->sk->sk_pacing_shift != MY_PACING_SHIFT) skb->sk->sk_pacing_shift = MY_PACING_SHIFT; Ref: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1670041 Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Johannes Berg <johannes.berg@intel.com> Cc: Toke Hiland-Jrgensen <toke@toke.dk> Cc: Kir Kolyshkin <kir@openvz.org> Acked-by: Neal Cardwell <ncardwell@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> (cherry picked from commit 3a9b76fd0db9f0d426533f96a68a62a58753a51e) BUG=b:73972012 TEST=Run tcp tx throughput test Change-Id: I0a5cd27b9cc2771026c5bbf21a04a0144107e4b3 Signed-off-by: Grant Grundler <grundler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/987019 Reviewed-by: Sonny Rao <sonnyrao@chromium.org> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions