]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: addrconf: add per netns perturbation in inet6_addr_hash()
authorEric Dumazet <edumazet@google.com>
Mon, 23 Oct 2017 23:17:47 +0000 (16:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Oct 2017 08:54:19 +0000 (17:54 +0900)
commita6b356d487e838c5f4539e000792df7075e37b89
tree215db15d7fd88f9a089dbc012033077a6f13dc46
parente2e718f37ac3f3b67cf9fad93d6caa96a6e81396
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>
include/net/addrconf.h
net/ipv6/addrconf.c