mbox series

[net-next,0/4] Fix receive window restriction

Message ID 20210111222411.232916-1-hcaldwel@akamai.com
Headers show
Series Fix receive window restriction | expand

Message

Heath Caldwell Jan. 11, 2021, 10:24 p.m. UTC
This patch series addresses bugs in the calculations for receive buffer
restriction and the TCP window scale value and removes a limit on the
initially advertised receive window for TCP connections.

These changes make the receive buffer size and window scale calculations
more consistent and facilitate research and use cases which could benefit
from more direct and consistent control over the receive buffer and TCP
receive window.

Heath Caldwell (4):
  net: account for overhead when restricting SO_RCVBUF
  net: tcp: consistently account for overhead for SO_RCVBUF for TCP
  tcp: consistently account for overhead in rcv_wscale calculation
  tcp: remove limit on initial receive window

 include/net/tcp.h     | 17 +++++++++
 net/core/sock.c       | 89 ++++++++++++++++++++++++++++++++-----------
 net/ipv4/tcp_output.c | 10 +++--
 3 files changed, 90 insertions(+), 26 deletions(-)


base-commit: 73b7a6047971aa6ce4a70fc4901964d14f077171