mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 11:10:53 +07:00
[TCP]: Do receiver-side SWS avoidance for rcvbuf < MSS.
Signed-off-by: John Heffner <jheffner@psc.edu> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c873879c4d
commit
84565070e4
@ -1607,6 +1607,9 @@ u32 __tcp_select_window(struct sock *sk)
|
||||
*/
|
||||
if (window <= free_space - mss || window > free_space)
|
||||
window = (free_space/mss)*mss;
|
||||
else if (mss == full_space &&
|
||||
free_space > window + full_space/2)
|
||||
window = free_space;
|
||||
}
|
||||
|
||||
return window;
|
||||
|
Loading…
Reference in New Issue
Block a user