summaryrefslogtreecommitdiff
path: root/include/net/if_inet6.h
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2010-03-17 23:31:10 +0300
committerDavid S. Miller <davem@davemloft.net>2010-03-21 01:44:34 +0300
commitc2e21293c054817c42eb5fa9c613d2ad51954136 (patch)
tree481f7de6d3e3a9a3d93af5654ec174ff5945dc2b /include/net/if_inet6.h
parent372e6c8f1f7b2bb68f9992d2e664925c73552a1d (diff)
downloadlinux-c2e21293c054817c42eb5fa9c613d2ad51954136.tar.xz
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>
Diffstat (limited to 'include/net/if_inet6.h')
-rw-r--r--include/net/if_inet6.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h
index 09d906460a43..498401541519 100644
--- a/include/net/if_inet6.h
+++ b/include/net/if_inet6.h
@@ -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