]> git.ipfire.org Git - thirdparty/linux.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)
commitede61ca474a0348b975d9824565b66c7595461de
treebc0770bb86ede5aed3f91f68773e412ee1067d07
parenta8e11e5c5611a9f70470aebeb2c1dd6132f609d7
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