diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-04-14 05:42:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-14 05:42:27 -0400 |
commit | 7477fd2e6b676fcd15861c2a96a7172f71afe0a5 (patch) | |
tree | 82801f361c0e196a8b67481a5fd9435a206ba76f /net/ipv6 | |
parent | 13f51d82acb003918d71ce4639ae77fceaa58cad (diff) |
[SOCK]: Add some notes about per-bind-bucket sock lookup.
I was asked about "why don't we perform a sk_net filtering in
bind_conflict calls, like we do in other sock lookup places"
for a couple of times.
Can we please add a comment about why we do not need one?
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/inet6_connection_sock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv6/inet6_connection_sock.c b/net/ipv6/inet6_connection_sock.c index 78de42ada844..87801cc1b2f8 100644 --- a/net/ipv6/inet6_connection_sock.c +++ b/net/ipv6/inet6_connection_sock.c | |||
@@ -33,6 +33,10 @@ int inet6_csk_bind_conflict(const struct sock *sk, | |||
33 | const struct hlist_node *node; | 33 | const struct hlist_node *node; |
34 | 34 | ||
35 | /* We must walk the whole port owner list in this case. -DaveM */ | 35 | /* We must walk the whole port owner list in this case. -DaveM */ |
36 | /* | ||
37 | * See comment in inet_csk_bind_conflict about sock lookup | ||
38 | * vs net namespaces issues. | ||
39 | */ | ||
36 | sk_for_each_bound(sk2, node, &tb->owners) { | 40 | sk_for_each_bound(sk2, node, &tb->owners) { |
37 | if (sk != sk2 && | 41 | if (sk != sk2 && |
38 | (!sk->sk_bound_dev_if || | 42 | (!sk->sk_bound_dev_if || |