[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240829133356.GU1368797@kernel.org>
Date: Thu, 29 Aug 2024 14:33:56 +0100
From: Simon Horman <horms@...nel.org>
To: Eric Dumazet <edumazet@...gle.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
David Ahern <dsahern@...nel.org>, Willy Tarreau <w@....eu>,
Keyu Man <keyu.man@...il.ucr.edu>,
Jesper Dangaard Brouer <hawk@...nel.org>, netdev@...r.kernel.org,
eric.dumazet@...il.com
Subject: Re: [PATCH net-next 2/3] icmp: move icmp_global.credit and
icmp_global.stamp to per netns storage
On Wed, Aug 28, 2024 at 07:39:47PM +0000, Eric Dumazet wrote:
> 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@...gle.com>
...
> diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c
...
> @@ -235,7 +230,7 @@ static struct {
> * Returns false if we reached the limit and can not send another packet.
> * Works in tandem with icmp_global_consume().
> */
Hi Eric,
nit: This could be handled in a follow-up, and I'm happy to prepare it
myself, but net should be added to the Kernel doc above.
> -bool icmp_global_allow(void)
> +bool icmp_global_allow(struct net *net)
> {
> u32 delta, now, oldstamp;
> int incr, new, old;
Powered by blists - more mailing lists