[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250131182949.90418-1-kuniyu@amazon.com>
Date: Fri, 31 Jan 2025 10:29:49 -0800
From: Kuniyuki Iwashima <kuniyu@...zon.com>
To: <edumazet@...gle.com>
CC: <davem@...emloft.net>, <eric.dumazet@...il.com>, <horms@...nel.org>,
<kuba@...nel.org>, <kuniyu@...zon.com>, <netdev@...r.kernel.org>,
<pabeni@...hat.com>
Subject: Re: [PATCH net 01/16] net: add dev_net_rcu() helper
From: Eric Dumazet <edumazet@...gle.com>
Date: Fri, 31 Jan 2025 17:13:19 +0000
> dev->nd_net can change, readers should either
> use rcu_read_lock() or RTNL.
>
> We currently use a generic helper, dev_net() with
> no debugging support. We probably have many hidden bugs.
>
> Add dev_net_rcu() helper for callers using rcu_read_lock()
> protection.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@...zon.com>
Powered by blists - more mailing lists