commit | 053f368412c9a7bfce2befec8c795113c8cfb0b1 | [log] [tgz] |
---|---|---|
author | Wei Wang <weiwan@google.com> | Wed Sep 29 10:25:13 2021 -0700 |
committer | David S. Miller <davem@davemloft.net> | Thu Sep 30 13:36:46 2021 +0100 |
tree | 30f0da3c75f0c65934cf3e42cd43c3fb8d4d0488 | |
parent | ca057051cf25a8c198af7b73daf922ef65a3c016 [diff] |
tcp: adjust rcv_ssthresh according to sk_reserved_mem When user sets SO_RESERVE_MEM socket option, in order to utilize the reserved memory when in memory pressure state, we adjust rcv_ssthresh according to the available reserved memory for the socket, instead of using 4 * advmss always. 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>