]> git.baikalelectronics.ru Git - kernel.git/commit
net: limit tcp/udp rmem/wmem to SOCK_{RCV,SND}BUF_MIN
authorSorin Dumitru <sorin@returnze.ro>
Wed, 27 May 2015 19:16:49 +0000 (22:16 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2015 00:37:44 +0000 (17:37 -0700)
commitcf746f0c618d5adcae2745b78f11cc5f5af90ca0
treee5b1cf4bad2044293fa616dd4aa33d39202e6fb9
parentda2aa76b58fd5327c6a4bcf2b7a14f8242590b8a
net: limit tcp/udp rmem/wmem to SOCK_{RCV,SND}BUF_MIN

This is similar to 5b3e760d4bc4(net: sysctl_net_core: check SNDBUF
and RCVBUF for min length). I don't think too small values can cause
crashes in the case of udp and tcp, but I've seen this set to too
small values which triggered awful performance. It also makes the
setting consistent across all the wmem/rmem sysctls.

Signed-off-by: Sorin Dumitru <sdumitru@ixiacom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/sysctl_net_ipv4.c