summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-10-24 02:17:47 +0300
committerDavid S. Miller <davem@davemloft.net>2017-10-24 11:54:19 +0300
commit3f27fb23219e75343b094366f2358bff34300493 (patch)
tree215db15d7fd88f9a089dbc012033077a6f13dc46 /include
parent752a92927e97e88096394dac3f10d12a58555254 (diff)
downloadlinux-3f27fb23219e75343b094366f2358bff34300493.tar.xz
ipv6: addrconf: add per netns perturbation in inet6_addr_hash()
Bring IPv6 in par with IPv4 : - Use net_hash_mix() to spread addresses a bit more. - Use 256 slots hash table instead of 16 Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/addrconf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index b8b16437c6d5..15b5ffd7253d 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -58,7 +58,7 @@ struct in6_validator_info {
struct netlink_ext_ack *extack;
};
-#define IN6_ADDR_HSIZE_SHIFT 4
+#define IN6_ADDR_HSIZE_SHIFT 8
#define IN6_ADDR_HSIZE (1 << IN6_ADDR_HSIZE_SHIFT)
int addrconf_init(void);