diff options
| author | Eric Dumazet <edumazet@google.com> | 2017-12-12 06:34:19 -0800 |
|---|---|---|
| committer | Nathan Chancellor <natechancellor@gmail.com> | 2018-04-28 00:24:26 -0700 |
| commit | 13c3c10b7f9ac5c10cca7e401269b060209ef9b3 (patch) | |
| tree | 72833f0d62ebba0b214029335e61f11970e88e77 /net/lapb/lapb_timer.c | |
| parent | 41b82ef958a26de6b7ee0b8256bb969cc6c48e27 (diff) | |
UPSTREAM: net: sk_pacing_shift_update() helper
In commit 3a9b76fd0db9 ("tcp: allow drivers to tweak TSQ logic")
I gave a code sample to set sk->sk_pacing_shift that was not complete.
Better add a helper that can be used by drivers without worries,
and maybe amended in the future.
A wifi driver might use it from its ndo_start_xmit()
Following call would setup TCP to allow up to ~8ms of queued data per
flow.
sk_pacing_shift_update(skb->sk, 7);
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit c9f1f58dc2eba550f208809d272bf0b14f41edba)
BUG=b:73972012
TEST=Run tcp tx throughput test
Change-Id: I3a5def7269f7e1ad2ca5518bfbdbde4bfabd113a
Signed-off-by: Grant Grundler <grundler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/987020
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
