Merge branch 'net-first-round-to-use-dev_net_rcu'
authorJakub Kicinski <kuba@kernel.org>
Fri, 7 Feb 2025 00:14:34 +0000 (16:14 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Feb 2025 00:14:35 +0000 (16:14 -0800)
Eric Dumazet says:

====================
net: first round to use dev_net_rcu()

dev_net(dev) should either be protected by RTNL or RCU.

There is no LOCKDEP support yet for this helper.

Adding it would trigger too many splats.

Instead, add dev_net_rcu() for rcu_read_lock() contexts
and start to use it to fix bugs and clearly document the
safety requirements.

v4: https://lore.kernel.org/CANn89i+AozhFhZNK0Y4e_EqXV1=yKjGuvf43Wa6JJKWMOixWQQ@mail.gmail.com
v3: https://lore.kernel.org/20250203153633.46ce0337@kernel.org/
====================

Link: https://patch.msgid.link/20250205155120.1676781-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge