diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-06-16 20:13:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-16 20:13:08 -0400 |
commit | 2086a65078bd24682bdcf413d9c91d81988b8359 (patch) | |
tree | ff1699db9c0cc50f0c2709b74808bc8ef46168a1 /net/ipv4 | |
parent | 7f635ab71eef8da012320c0092b662d6af8c1e69 (diff) |
inet: add struct net argument to inet_lhashfn
Listening-on-one-port sockets in many namespaces produce long
chains in the listening_hash-es, so prepare the inet_lhashfn to
take struct net into account.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/inet_hashtables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c index dc1b78de8990..4f597b3175e7 100644 --- a/net/ipv4/inet_hashtables.c +++ b/net/ipv4/inet_hashtables.c | |||
@@ -194,7 +194,7 @@ struct sock *__inet_lookup_listener(struct net *net, | |||
194 | const struct hlist_head *head; | 194 | const struct hlist_head *head; |
195 | 195 | ||
196 | read_lock(&hashinfo->lhash_lock); | 196 | read_lock(&hashinfo->lhash_lock); |
197 | head = &hashinfo->listening_hash[inet_lhashfn(hnum)]; | 197 | head = &hashinfo->listening_hash[inet_lhashfn(net, hnum)]; |
198 | if (!hlist_empty(head)) { | 198 | if (!hlist_empty(head)) { |
199 | const struct inet_sock *inet = inet_sk((sk = __sk_head(head))); | 199 | const struct inet_sock *inet = inet_sk((sk = __sk_head(head))); |
200 | 200 | ||