WSL2-Linux-Kernel/include/net/netns
Eric Dumazet f52af853be ipv4/tcp: do not use per netns ctl sockets
[ Upstream commit 37ba017dcc ]

TCP ipv4 uses per-cpu/per-netns ctl sockets in order to send
RST and some ACK packets (on behalf of TIMEWAIT sockets).

This adds memory and cpu costs, which do not seem needed.
Now typical servers have 256 or more cores, this adds considerable
tax to netns users.

tcp sockets are used from BH context, are not receiving packets,
and do not store any persistent state but the 'struct net' pointer
in order to be able to use IPv4 output functions.

Note that I attempted a related change in the past, that had
to be hot-fixed in commit bdbbb8527b ("ipv4: tcp: get rid of ugly unicast_sock")

This patch could very well surface old bugs, on layers not
taking care of sk->sk_kern_sock properly.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-07-29 17:25:11 +02:00
..
bpf.h
can.h
conntrack.h netfilter: ecache: remove nf_exp_event_notifier structure 2021-08-25 12:50:38 +02:00
core.h
generic.h
hash.h
ieee802154_6lowpan.h
ipv4.h ipv4/tcp: do not use per netns ctl sockets 2022-07-29 17:25:11 +02:00
ipv6.h ipv6: make ip6_rt_gc_expire an atomic_t 2022-04-27 14:38:54 +02:00
mctp.h
mib.h
mpls.h
netfilter.h netfilter: conntrack: fix boot failure with nf_conntrack.enable_hooks=1 2021-09-28 13:04:55 +02:00
nexthop.h
nftables.h
packet.h
sctp.h
smc.h
unix.h
xdp.h
xfrm.h xfrm: rework default policy structure 2022-05-25 09:57:30 +02:00