]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9296c678a4d0f8a1e45cfc53a66b351f132231f8
tree1976a34b63ebd315e6741ceb3bf582fe0e63a4bc
parentace4d09767db7badb509197b2b691ba717163c25
tcp: remove sk_{tr}x_skb_cache

This reverts the following patches :

- commit eb695b16d383 ("tcp: fix compile error if !CONFIG_SYSCTL")
- commit e9b62202b2b5 ("tcp: fix zerocopy and notsent_lowat issues")
- commit 7ddae09f6567 ("tcp: add one skb cache for tx")
- commit 8abd0fe37af9 ("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