diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-01-22 09:11:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:10:39 -0500 |
commit | 3b4bc4a2bfe80d01ebd4f2b6dcc58986c970ed16 (patch) | |
tree | d9dea3af7fb8fc828af0ba484c1fc06007dce351 /include/net | |
parent | e31e0bdc7e7fb9a4b09d2f3266c035a18fdcee9d (diff) |
[NETNS][FRAGS]: Isolate the secret interval from namespaces.
Since we have one hashtable to lookup the fragment, having
different secret_interval-s for hash rebuild doesn't make
sense, so move this one to inet_frags.
The inet_frags_ctl becomes empty after this, so remove it.
The appropriate ctl table is kept read-only in namespaces.
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_frag.h | 6 | ||||
-rw-r--r-- | include/net/netns/ipv6.h | 1 |
2 files changed, 1 insertions, 6 deletions
diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h index de4135925490..1917fbeb362b 100644 --- a/include/net/inet_frag.h +++ b/include/net/inet_frag.h | |||
@@ -31,18 +31,14 @@ struct inet_frag_queue { | |||
31 | 31 | ||
32 | #define INETFRAGS_HASHSZ 64 | 32 | #define INETFRAGS_HASHSZ 64 |
33 | 33 | ||
34 | struct inet_frags_ctl { | ||
35 | int secret_interval; | ||
36 | }; | ||
37 | |||
38 | struct inet_frags { | 34 | struct inet_frags { |
39 | struct list_head lru_list; | 35 | struct list_head lru_list; |
40 | struct hlist_head hash[INETFRAGS_HASHSZ]; | 36 | struct hlist_head hash[INETFRAGS_HASHSZ]; |
41 | rwlock_t lock; | 37 | rwlock_t lock; |
42 | u32 rnd; | 38 | u32 rnd; |
43 | int qsize; | 39 | int qsize; |
40 | int secret_interval; | ||
44 | struct timer_list secret_timer; | 41 | struct timer_list secret_timer; |
45 | struct inet_frags_ctl *ctl; | ||
46 | 42 | ||
47 | unsigned int (*hashfn)(struct inet_frag_queue *); | 43 | unsigned int (*hashfn)(struct inet_frag_queue *); |
48 | void (*constructor)(struct inet_frag_queue *q, | 44 | void (*constructor)(struct inet_frag_queue *q, |
diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h index 87ab56ab93fc..187c4248df22 100644 --- a/include/net/netns/ipv6.h +++ b/include/net/netns/ipv6.h | |||
@@ -14,7 +14,6 @@ struct netns_sysctl_ipv6 { | |||
14 | struct ctl_table_header *table; | 14 | struct ctl_table_header *table; |
15 | struct ctl_table_header *frags_hdr; | 15 | struct ctl_table_header *frags_hdr; |
16 | #endif | 16 | #endif |
17 | struct inet_frags_ctl frags; | ||
18 | int bindv6only; | 17 | int bindv6only; |
19 | int flush_delay; | 18 | int flush_delay; |
20 | int ip6_rt_max_size; | 19 | int ip6_rt_max_size; |