summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2025-01-20 23:16:07 +0300
committerJakub Kicinski <kuba@kernel.org>2025-01-20 23:16:08 +0300
commitb115243ab8bd92387cf524ba3a7d81eda8eca885 (patch)
treeb6599fd0b7f078385bcaa1086ba61a0f7b36d647 /include
parentba5f78505fb4e3feb73d8e5249a13b3244dac4d9 (diff)
parent7bcf45ddb8bb3d386072677ce4d86d1ec9896096 (diff)
downloadlinux-b115243ab8bd92387cf524ba3a7d81eda8eca885.tar.xz
Merge branch 'ipv6-convert-rtm_-new-del-addr-and-more-to-per-netns-rtnl'
Kuniyuki Iwashima says: ==================== ipv6: Convert RTM_{NEW,DEL}ADDR and more to per-netns RTNL. This series converts RTM_NEWADDR/RTM_DELADDR and some more RTNL users in addrconf.c to per-netns RTNL. v1: https://lore.kernel.org/20250114080516.46155-1-kuniyu@amazon.com ==================== Link: https://patch.msgid.link/20250115080608.28127-1-kuniyu@amazon.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/addrconf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index f8f91b2038ea..9e5e95988b9e 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -347,6 +347,11 @@ static inline struct inet6_dev *__in6_dev_get(const struct net_device *dev)
return rcu_dereference_rtnl(dev->ip6_ptr);
}
+static inline struct inet6_dev *__in6_dev_get_rtnl_net(const struct net_device *dev)
+{
+ return rtnl_net_dereference(dev_net(dev), dev->ip6_ptr);
+}
+
/**
* __in6_dev_stats_get - get inet6_dev pointer for stats
* @dev: network device