]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: add tcp_rx_skb_cache sysctl
authorEric Dumazet <edumazet@google.com>
Fri, 14 Jun 2019 23:22:19 +0000 (16:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 03:18:28 +0000 (20:18 -0700)
commit650ef88cb3afa58382745d271d89a4f05815a877
treebc0770bb86ede5aed3f91f68773e412ee1067d07
parent6e6f1f2ff51185ddc32d8a470f0423a1cb4cceca
tcp: add tcp_rx_skb_cache sysctl

Instead of relying on rps_needed, it is safer to use a separate
static key, since we do not want to enable TCP rx_skb_cache
by default. This feature can cause huge increase of memory
usage on hosts with millions of sockets.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ip-sysctl.txt
include/net/sock.h
net/ipv4/sysctl_net_ipv4.c