]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[IPV6] HASHTABLES: Use appropriate seed for caluculating ehash index.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Wed, 28 Mar 2007 20:04:44 +0000 (22:04 +0200)
committerAdrian Bunk <bunk@stusta.de>
Wed, 28 Mar 2007 20:04:44 +0000 (22:04 +0200)
commitfc9f944188ec3a6eca05b9a9afce9a96c05b0f7a
tree8694d1b2d7b3dd4e19c0f9c8e64a2ea255d96283
parentb66597d697d7e75cde9c484f223e467a11342de4
[IPV6] HASHTABLES: Use appropriate seed for caluculating ehash index.

Tetsuo Handa <handat@pm.nttdata.co.jp> told me that connect(2) with TCPv6
socket almost always took a few minutes to return when we did not have any
ports available in the range of net.ipv4.ip_local_port_range.

The reason was that we used incorrect seed for calculating index of
hash when we check established sockets in __inet6_check_established().

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/ipv6/inet6_hashtables.c