]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Wed, 23 Mar 2016 23:37:26 +0000 (16:37 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 17 Apr 2016 21:55:08 +0000 (14:55 -0700)
commit58291a6c78414a3ed3dced2faad93da267543e73
tree8e96b7289bb63903ad152897b1b5a4be11c4c961
parentef278157f938011ee08fb683311e5e31ffd29fdf
RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket

Orabug: 22993275

Upstream commit c6a58ffed536 ("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>
Reviewed-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
net/rds/tcp.c