diff options
author | Eric Dumazet <edumazet@google.com> | 2017-11-04 11:53:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-04 20:17:27 -0400 |
commit | 27c565ae9d554fa1c00c799754cff43476c8d3b5 (patch) | |
tree | 91a10204e5f8ccb06b8b1fea22fcfe9d0649656b | |
parent | df7e8e2e3e59fe29c24f09d7c3b68e732d661af3 (diff) |
ipv6: remove IN6_ADDR_HSIZE from addrconf.h
IN6_ADDR_HSIZE is private to addrconf.c, move it here to avoid
confusion.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/addrconf.h | 3 | ||||
-rw-r--r-- | net/ipv6/addrconf.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h index 3357332ea375..b623b65a79d1 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h | |||
@@ -59,9 +59,6 @@ struct in6_validator_info { | |||
59 | struct netlink_ext_ack *extack; | 59 | struct netlink_ext_ack *extack; |
60 | }; | 60 | }; |
61 | 61 | ||
62 | #define IN6_ADDR_HSIZE_SHIFT 8 | ||
63 | #define IN6_ADDR_HSIZE (1 << IN6_ADDR_HSIZE_SHIFT) | ||
64 | |||
65 | int addrconf_init(void); | 62 | int addrconf_init(void); |
66 | void addrconf_cleanup(void); | 63 | void addrconf_cleanup(void); |
67 | 64 | ||
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 69b8cdb43aa2..66d8c3d912fd 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -157,6 +157,8 @@ static int ipv6_generate_stable_address(struct in6_addr *addr, | |||
157 | u8 dad_count, | 157 | u8 dad_count, |
158 | const struct inet6_dev *idev); | 158 | const struct inet6_dev *idev); |
159 | 159 | ||
160 | #define IN6_ADDR_HSIZE_SHIFT 8 | ||
161 | #define IN6_ADDR_HSIZE (1 << IN6_ADDR_HSIZE_SHIFT) | ||
160 | /* | 162 | /* |
161 | * Configured unicast address hash table | 163 | * Configured unicast address hash table |
162 | */ | 164 | */ |