aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netns/ipv4.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-07-19 19:02:34 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-20 13:59:41 -0400
commit5815d5e7aae3cc9c5e85af83094d4d6498c3f4fc (patch)
tree68c36b030d6479cdee319db32cdb2ee4d81ee938 /include/net/netns/ipv4.h
parent67b95bd78f0de85793bf30835913f6ef784a39b6 (diff)
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/ipv4.h')
-rw-r--r--include/net/netns/ipv4.h2
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 {
40 struct sock **icmp_sk; 40 struct sock **icmp_sk;
41 struct inet_peer_base *peers; 41 struct inet_peer_base *peers;
42 struct tcpm_hash_bucket *tcp_metrics_hash; 42 struct tcpm_hash_bucket *tcp_metrics_hash;
43 unsigned int tcp_metrics_hash_mask; 43 unsigned int tcp_metrics_hash_log;
44 struct netns_frags frags; 44 struct netns_frags frags;
45#ifdef CONFIG_NETFILTER 45#ifdef CONFIG_NETFILTER
46 struct xt_table *iptable_filter; 46 struct xt_table *iptable_filter;