]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: use hash_32() in tcp_metrics
authorEric Dumazet <edumazet@google.com>
Thu, 19 Jul 2012 23:02:34 +0000 (23:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jul 2012 17:59:41 +0000 (10:59 -0700)
commit3971adbdbe59cc598796c38399729a045477774a
tree68c36b030d6479cdee319db32cdb2ee4d81ee938
parentc0fa764e16d9f1bf3de67e0d7219d514afb690bd
tcp: use hash_32() in tcp_metrics

Fix a missing roundup_pow_of_two(), since tcpmhash_entries is not
guaranteed to be a power of two.

Uses hash_32() instead of custom hash.

tcpmhash_entries should be an unsigned int.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/ipv4.h
net/ipv4/tcp_metrics.c