]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: user better hash for addrconf
authorstephen hemminger <shemminger@vyatta.com>
Wed, 17 Mar 2010 20:31:12 +0000 (20:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Mar 2010 22:44:35 +0000 (15:44 -0700)
commitb3fcdafccdf045b15107774206ea8d449cd536a5
tree2610b2b8b47deb4e4d5db0968af21911306442b3
parentecbd1c220ab9c95e53fce7bdc3bfb7e6bfbfa376
ipv6: user better hash for addrconf

The existing hash function has a couple of issues:
  * it is hardwired to 16 for IN6_ADDR_HSIZE
  * limited to 256 and callers using int
  * use jhash2 rather than some old BSD algorithm

No need for random seed since this is local only (based on assigned
addresses) table.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c