Files
kernel_realme_nemo/include/net
Eric Dumazet 828009d838 net: add dev_net_rcu() helper
[ Upstream commit 482ad2a4ace2740ca0ff1cbc8f3c7f862f3ab507 ]

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@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250205155120.1676781-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: dd205fcc33d9 ("ipv4: use RCU protection in rt_is_expired()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Ulrich Hecht <uli@kernel.org>
2025-12-24 11:23:09 +00:00
..
2021-06-10 12:43:51 +02:00
2021-12-25 18:03:37 +05:30
2019-03-23 14:35:16 +01:00
2022-01-05 12:33:49 +01:00
2017-08-31 14:42:19 -07:00
2019-11-10 11:25:37 +01:00
2025-12-24 11:22:40 +00:00
2025-12-24 11:23:09 +00:00
2018-05-16 10:10:23 +02:00
2021-12-25 18:03:37 +05:30
2020-07-16 23:54:10 +08:00
2025-12-24 11:22:05 +00:00
2024-03-23 23:45:31 +05:30