]> www.infradead.org Git - users/jedix/linux-maple.git/commit
icmp: move icmp_global.credit and icmp_global.stamp to per netns storage
authorEric Dumazet <edumazet@google.com>
Thu, 29 Aug 2024 14:46:40 +0000 (14:46 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Aug 2024 18:14:06 +0000 (11:14 -0700)
commitb056b4cd9178f7a1d5d57f7b48b073c29729ddaa
treec52e88f67befd08e2f9c751d342c850029ebfd73
parent8c2bd38b95f75f3d2a08c93e35303e26d480d24e
icmp: move icmp_global.credit and icmp_global.stamp to per netns storage

Host wide ICMP ratelimiter should be per netns, to provide better isolation.

Following patch in this series makes the sysctl per netns.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20240829144641.3880376-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/ip.h
include/net/netns/ipv4.h
net/ipv4/icmp.c
net/ipv6/icmp.c