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)
commitc6a58ffed53612be86b758df1cdb0b0f4305e9cb
tree07f38d221c7bea9005cadd92bc23e30ac46fddef
parent79d3b59a93ba25f3b2c72eb4099c189d41d30204
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
This page took 0.026723 seconds and 5 git commands to generate.