diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-01-22 09:06:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:10:35 -0500 |
commit | e5a2bb842cd9681d00d4ca963e63e4d3647e66f8 (patch) | |
tree | b47692f3312039cb944f68f6fbeb0d10442f8056 /include/net/inet_frag.h | |
parent | ac18e7509e7df327e30d6e073a787d922eaf211d (diff) |
[NETNS][FRAGS]: Make the nqueues counter per-namespace.
This is simple - just move the variable from struct inet_frags
to struct netns_frags and adjust the usage appropriately.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_frag.h')
-rw-r--r-- | include/net/inet_frag.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h index 8ab6df64a12a..d36f3a6e6d4e 100644 --- a/include/net/inet_frag.h +++ b/include/net/inet_frag.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define __NET_FRAG_H__ | 2 | #define __NET_FRAG_H__ |
3 | 3 | ||
4 | struct netns_frags { | 4 | struct netns_frags { |
5 | int nqueues; | ||
5 | }; | 6 | }; |
6 | 7 | ||
7 | struct inet_frag_queue { | 8 | struct inet_frag_queue { |
@@ -36,7 +37,6 @@ struct inet_frags { | |||
36 | struct hlist_head hash[INETFRAGS_HASHSZ]; | 37 | struct hlist_head hash[INETFRAGS_HASHSZ]; |
37 | rwlock_t lock; | 38 | rwlock_t lock; |
38 | u32 rnd; | 39 | u32 rnd; |
39 | int nqueues; | ||
40 | int qsize; | 40 | int qsize; |
41 | atomic_t mem; | 41 | atomic_t mem; |
42 | struct timer_list secret_timer; | 42 | struct timer_list secret_timer; |
@@ -55,6 +55,8 @@ struct inet_frags { | |||
55 | void inet_frags_init(struct inet_frags *); | 55 | void inet_frags_init(struct inet_frags *); |
56 | void inet_frags_fini(struct inet_frags *); | 56 | void inet_frags_fini(struct inet_frags *); |
57 | 57 | ||
58 | void inet_frags_init_net(struct netns_frags *nf); | ||
59 | |||
58 | void inet_frag_kill(struct inet_frag_queue *q, struct inet_frags *f); | 60 | void inet_frag_kill(struct inet_frag_queue *q, struct inet_frags *f); |
59 | void inet_frag_destroy(struct inet_frag_queue *q, | 61 | void inet_frag_destroy(struct inet_frag_queue *q, |
60 | struct inet_frags *f, int *work); | 62 | struct inet_frags *f, int *work); |