diff options
| author | Wei Wang <weiwan@google.com> | 2021-09-29 10:25:12 -0700 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-09-30 13:36:46 +0100 |
| commit | ca057051cf25a8c198af7b73daf922ef65a3c016 (patch) | |
| tree | 3454d2e3c12770adc387078b79f9f0f8434b04b6 /tools/perf/scripts/python | |
| parent | net: add new socket option SO_RESERVE_MEM (diff) | |
| download | linux-ca057051cf25a8c198af7b73daf922ef65a3c016.tar.gz linux-ca057051cf25a8c198af7b73daf922ef65a3c016.zip | |
tcp: adjust sndbuf according to sk_reserved_mem
If user sets SO_RESERVE_MEM socket option, in order to fully utilize the
reserved memory in memory pressure state on the tx path, we modify the
logic in sk_stream_moderate_sndbuf() to set sk_sndbuf according to
available reserved memory, instead of MIN_SOCK_SNDBUF, and adjust it
when new data is acked.
Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
