OSDN Git Service

tcp: remove sk_{tr}x_skb_cache
authorEric Dumazet <edumazet@google.com>
Wed, 22 Sep 2021 17:26:43 +0000 (19:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Sep 2021 11:50:26 +0000 (12:50 +0100)
commitd8b81175e412c7abebdb5b37d8a84d5fd19b1aad
tree1976a34b63ebd315e6741ceb3bf582fe0e63a4bc
parentff6fb083a07f1b71fc6a9438f27113d73cf23381
tcp: remove sk_{tr}x_skb_cache

This reverts the following patches :

- commit 2e05fcae83c4 ("tcp: fix compile error if !CONFIG_SYSCTL")
- commit 4f661542a402 ("tcp: fix zerocopy and notsent_lowat issues")
- commit 472c2e07eef0 ("tcp: add one skb cache for tx")
- commit 8b27dae5a2e8 ("tcp: add one skb cache for rx")

Having a cache of one skb (in each direction) per TCP socket is fragile,
since it can cause a significant increase of memory needs,
and not good enough for high speed flows anyway where more than one skb
is needed.

We want instead to add a generic infrastructure, with more flexible
per-cpu caches, for alien NUMA nodes.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ip-sysctl.rst
include/net/sock.h
net/ipv4/af_inet.c
net/ipv4/sysctl_net_ipv4.c
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c