Thread (10 messages) 10 messages, 3 authors, 2016-03-16

Re: [PATCH net-next v3 1/2] RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket

From: santosh shilimkar <hidden>
Date: 2016-03-15 19:21:50


On 3/15/2016 11:53 AM, Sowmini Varadhan wrote:
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.

Since 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 <redacted>
---
v2; use sysctl instead of module param. Tunabes are now per netns,
     and can be dynamically modified without restarting all namespaces.
v3: review comments from Santosh Shilimkar,  Eric Dumazet

  net/rds/tcp.c |  143 +++++++++++++++++++++++++++++++++++++++++++++++++++++----
  1 files changed, 134 insertions(+), 9 deletions(-)
This version looks fine to me. Thanks !!

Acked-by: Santosh Shilimkar <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help