diff options
author | Eric Dumazet <edumazet@google.com> | 2012-07-20 01:02:34 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-20 19:59:41 +0200 |
commit | 5815d5e7aae3cc9c5e85af83094d4d6498c3f4fc (patch) | |
tree | 68c36b030d6479cdee319db32cdb2ee4d81ee938 /include/net/netns | |
parent | tcp: Return bool instead of int where appropriate (diff) | |
download | linux-5815d5e7aae3cc9c5e85af83094d4d6498c3f4fc.tar.xz linux-5815d5e7aae3cc9c5e85af83094d4d6498c3f4fc.zip |
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>
Diffstat (limited to 'include/net/netns')
-rw-r--r-- | include/net/netns/ipv4.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index d909c7fc3da1..0ffb8e31f3cd 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h @@ -40,7 +40,7 @@ struct netns_ipv4 { struct sock **icmp_sk; struct inet_peer_base *peers; struct tcpm_hash_bucket *tcp_metrics_hash; - unsigned int tcp_metrics_hash_mask; + unsigned int tcp_metrics_hash_log; struct netns_frags frags; #ifdef CONFIG_NETFILTER struct xt_table *iptable_filter; |