]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: move sysctl_tcp_l3mdev_accept to netns_ipv4_read_rx
authorEric Dumazet <edumazet@google.com>
Thu, 10 Oct 2024 03:41:00 +0000 (03:41 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Oct 2024 15:45:24 +0000 (08:45 -0700)
commitd677aebd663ddc287f2b2bda098474694a0ca875
tree420063b6a90ac618135d0c2aa360fb6117ebf2e0
parent7e5b547cac7a56515b2838b496923e52ec4eeddd
tcp: move sysctl_tcp_l3mdev_accept to netns_ipv4_read_rx

sysctl_tcp_l3mdev_accept is read from TCP receive fast path from
tcp_v6_early_demux(),
 __inet6_lookup_established,
  inet_request_bound_dev_if().

Move it to netns_ipv4_read_rx.

Remove the '#ifdef CONFIG_NET_L3_MASTER_DEV' that was guarding
its definition.

Note this adds a hole of three bytes that could be filled later.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Cc: Wei Wang <weiwan@google.com>
Cc: Coco Li <lixiaoyan@google.com>
Link: https://patch.msgid.link/20241010034100.320832-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/net_cachelines/netns_ipv4_sysctl.rst
include/net/netns/ipv4.h
net/core/net_namespace.c