Skip to content

Commit

Permalink
Merge branch 'ipv6-convert-rtm_-new-del-addr-and-more-to-per-netns-rtnl'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakub Kicinski committed Jan 20, 2025
2 parents ba5f785 + 7bcf45d commit b115243
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 130 deletions.
5 changes: 5 additions & 0 deletions include/net/addrconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit b115243

Please sign in to comment.