diff options
author | Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 2005-08-09 22:33:31 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:32:11 -0400 |
commit | 83e3609eba3818f6e18b8bf9442195169ac306b7 (patch) | |
tree | b0dd71b7e5ea6e8b17813cf6b3736a1b0f443ab7 /include/net/request_sock.h | |
parent | 080774a243f56ce2195ace96fba3d18548ee48ce (diff) |
[REQSK]: Move the syn_table destroy from tcp_listen_stop to reqsk_queue_destroy
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/request_sock.h')
-rw-r--r-- | include/net/request_sock.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/request_sock.h b/include/net/request_sock.h index 72fd6f5e86b1..334717bf9ef6 100644 --- a/include/net/request_sock.h +++ b/include/net/request_sock.h | |||
@@ -89,6 +89,7 @@ struct listen_sock { | |||
89 | int qlen_young; | 89 | int qlen_young; |
90 | int clock_hand; | 90 | int clock_hand; |
91 | u32 hash_rnd; | 91 | u32 hash_rnd; |
92 | u32 nr_table_entries; | ||
92 | struct request_sock *syn_table[0]; | 93 | struct request_sock *syn_table[0]; |
93 | }; | 94 | }; |
94 | 95 | ||
@@ -129,11 +130,13 @@ static inline struct listen_sock *reqsk_queue_yank_listen_sk(struct request_sock | |||
129 | return lopt; | 130 | return lopt; |
130 | } | 131 | } |
131 | 132 | ||
132 | static inline void reqsk_queue_destroy(struct request_sock_queue *queue) | 133 | static inline void __reqsk_queue_destroy(struct request_sock_queue *queue) |
133 | { | 134 | { |
134 | kfree(reqsk_queue_yank_listen_sk(queue)); | 135 | kfree(reqsk_queue_yank_listen_sk(queue)); |
135 | } | 136 | } |
136 | 137 | ||
138 | extern void reqsk_queue_destroy(struct request_sock_queue *queue); | ||
139 | |||
137 | static inline struct request_sock * | 140 | static inline struct request_sock * |
138 | reqsk_queue_yank_acceptq(struct request_sock_queue *queue) | 141 | reqsk_queue_yank_acceptq(struct request_sock_queue *queue) |
139 | { | 142 | { |