diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2025-01-15 09:05:58 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-01-20 21:16:04 +0100 |
commit | f7a6082b5e4c15f34fd766cf0960f7e082009c54 (patch) | |
tree | 803547ff2f575725d92367294cdbb50dcd141256 /net/ipv6/addrconf.c | |
parent | net: stmmac: Drop redundant skb_mark_for_recycle() for SKB frags (diff) | |
download | linux-f7a6082b5e4c15f34fd766cf0960f7e082009c54.tar.xz linux-f7a6082b5e4c15f34fd766cf0960f7e082009c54.zip |
ipv6: Add __in6_dev_get_rtnl_net().
We will convert rtnl_lock() with rtnl_net_lock(), and we want to
convert __in6_dev_get() too.
__in6_dev_get() uses rcu_dereference_rtnl(), but as written in its
comment, rtnl_dereference() or rcu_dereference() is preferable.
Let's add __in6_dev_get_rtnl_net() that uses rtnl_net_dereference().
We can add the RCU version helper later if needed.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250115080608.28127-2-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions