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>
This commit is contained in:

committed by
David S. Miller

parent
752a92927e
commit
3f27fb2321
@@ -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);
|
||||
|
Reference in New Issue
Block a user