diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-01-31 05:05:50 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-31 19:28:18 -0800 |
commit | 941b1d22cc035ad58b3d9b44a1c74efac2d7e499 (patch) | |
tree | 9b50211c27a209c02d97b73f74bf33cc87f4c9c3 /include/net | |
parent | 5ee31fc1ecdcbc234c8c56dcacef87c8e09909d8 (diff) | |
download | linux-stable-941b1d22cc035ad58b3d9b44a1c74efac2d7e499.tar.gz linux-stable-941b1d22cc035ad58b3d9b44a1c74efac2d7e499.tar.bz2 linux-stable-941b1d22cc035ad58b3d9b44a1c74efac2d7e499.zip |
[NETNS]: Make bind buckets live in net namespaces.
This tags the inet_bind_bucket struct with net pointer,
initializes it during creation and makes a filtering
during lookup.
A better hashfn, that takes the net into account is to
be done in the future, but currently all bind buckets
with similar port will be in one hash chain.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/inet_hashtables.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h index a34a8f25fc57..55532b9bb59a 100644 --- a/include/net/inet_hashtables.h +++ b/include/net/inet_hashtables.h @@ -74,6 +74,7 @@ struct inet_ehash_bucket { * ports are created in O(1) time? I thought so. ;-) -DaveM */ struct inet_bind_bucket { + struct net *ib_net; unsigned short port; signed short fastreuse; struct hlist_node node; @@ -194,6 +195,7 @@ static inline void inet_ehash_locks_free(struct inet_hashinfo *hashinfo) extern struct inet_bind_bucket * inet_bind_bucket_create(struct kmem_cache *cachep, + struct net *net, struct inet_bind_hashbucket *head, const unsigned short snum); extern void inet_bind_bucket_destroy(struct kmem_cache *cachep, |