mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
ipv4: remove fib_info_devhash[]
Upcoming per-netns RTNL conversion needs to get rid of shared hash tables. fib_info_devhash[] is one of them. It is unclear why we used a hash table, because a single hlist_head per net device was cheaper and scalable. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://patch.msgid.link/20241004134720.579244-5-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
143ca845ec
commit
a3f5f4c2f9
@@ -2211,6 +2211,9 @@ struct net_device {
|
||||
|
||||
/* Protocol-specific pointers */
|
||||
struct in_device __rcu *ip_ptr;
|
||||
/** @fib_nh_head: nexthops associated with this netdev */
|
||||
struct hlist_head fib_nh_head;
|
||||
|
||||
#if IS_ENABLED(CONFIG_VLAN_8021Q)
|
||||
struct vlan_info __rcu *vlan_info;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user