]> git.baikalelectronics.ru Git - kernel.git/commit
RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Wed, 16 Mar 2016 18:38:12 +0000 (11:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Mar 2016 02:25:41 +0000 (22:25 -0400)
commitda5c1e384d6c07d8111dbbd0b7d32d20b11bc4dd
tree07f38d221c7bea9005cadd92bc23e30ac46fddef
parentcda1ece7c305b26decf76b1ae53f072acd30c1be
RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket

Add per-net sysctl tunables to set the size of sndbuf and
rcvbuf on the kernel tcp socket.

The tunables are added at /proc/sys/net/rds/tcp/rds_tcp_sndbuf
and /proc/sys/net/rds/tcp/rds_tcp_rcvbuf.

These values must be set before accept() or connect(),
and there may be an arbitrary number of existing rds-tcp
sockets when the tunable is modified. To make sure that all
connections in the netns pick up the same value for the tunable,
we reset existing rds-tcp connections in the netns, so that
they can reconnect with the new parameters.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/tcp.c