ipv6: convert addrconf list to hlist
Using hash list macros, simplifies code and helps later RCU. This patch includes some initialization that is not strictly necessary, since an empty hlist node/list is all zero; and list is in BSS and node is allocated with kzalloc. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
372e6c8f1f
commit
c2e21293c0
@@ -54,7 +54,7 @@ struct inet6_ifaddr {
|
||||
struct inet6_dev *idev;
|
||||
struct rt6_info *rt;
|
||||
|
||||
struct inet6_ifaddr *lst_next; /* next addr in addr_lst */
|
||||
struct hlist_node addr_lst;
|
||||
struct inet6_ifaddr *if_next; /* next addr in inet6_dev */
|
||||
|
||||
#ifdef CONFIG_IPV6_PRIVACY
|
||||
|
Reference in New Issue
Block a user