mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
7f635ab71e
commit
2086a65078
3 changed files with 5 additions and 4 deletions
|
|
@ -194,7 +194,7 @@ struct sock *__inet_lookup_listener(struct net *net,
|
|||
const struct hlist_head *head;
|
||||
|
||||
read_lock(&hashinfo->lhash_lock);
|
||||
head = &hashinfo->listening_hash[inet_lhashfn(hnum)];
|
||||
head = &hashinfo->listening_hash[inet_lhashfn(net, hnum)];
|
||||
if (!hlist_empty(head)) {
|
||||
const struct inet_sock *inet = inet_sk((sk = __sk_head(head)));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue