diff options
author | Patrick McHardy <kaber@trash.net> | 2007-12-05 04:27:02 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:56:15 -0500 |
commit | 4b3d15ef4a88683d93d1b76351297d2298a02a99 (patch) | |
tree | ec8b02db4089a03e179a48190ded490ddc082004 /net/ipv6 | |
parent | 02f014d88831f73b895c1fe09badb66c88e932d3 (diff) |
[NETFILTER]: {nfnetlink,ip,ip6}_queue: kill issue_verdict
Now that issue_verdict doesn't need to free the queue entries anymore,
all it does is disable local BHs and call nf_reinject. Move the BH
disabling to the okfn invocation in nf_reinject and kill the
issue_verdict functions.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6_queue.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/net/ipv6/netfilter/ip6_queue.c b/net/ipv6/netfilter/ip6_queue.c index 9014adae4fb1..e5b0059582f5 100644 --- a/net/ipv6/netfilter/ip6_queue.c +++ b/net/ipv6/netfilter/ip6_queue.c | |||
@@ -53,14 +53,6 @@ static struct sock *ipqnl __read_mostly; | |||
53 | static LIST_HEAD(queue_list); | 53 | static LIST_HEAD(queue_list); |
54 | static DEFINE_MUTEX(ipqnl_mutex); | 54 | static DEFINE_MUTEX(ipqnl_mutex); |
55 | 55 | ||
56 | static void | ||
57 | ipq_issue_verdict(struct nf_queue_entry *entry, int verdict) | ||
58 | { | ||
59 | local_bh_disable(); | ||
60 | nf_reinject(entry, verdict); | ||
61 | local_bh_enable(); | ||
62 | } | ||
63 | |||
64 | static inline void | 56 | static inline void |
65 | __ipq_enqueue_entry(struct nf_queue_entry *entry) | 57 | __ipq_enqueue_entry(struct nf_queue_entry *entry) |
66 | { | 58 | { |
@@ -137,7 +129,7 @@ __ipq_flush(ipq_cmpfn cmpfn, unsigned long data) | |||
137 | if (!cmpfn || cmpfn(entry, data)) { | 129 | if (!cmpfn || cmpfn(entry, data)) { |
138 | list_del(&entry->list); | 130 | list_del(&entry->list); |
139 | queue_total--; | 131 | queue_total--; |
140 | ipq_issue_verdict(entry, NF_DROP); | 132 | nf_reinject(entry, NF_DROP); |
141 | } | 133 | } |
142 | } | 134 | } |
143 | } | 135 | } |
@@ -343,7 +335,7 @@ ipq_set_verdict(struct ipq_verdict_msg *vmsg, unsigned int len) | |||
343 | if (ipq_mangle_ipv6(vmsg, entry) < 0) | 335 | if (ipq_mangle_ipv6(vmsg, entry) < 0) |
344 | verdict = NF_DROP; | 336 | verdict = NF_DROP; |
345 | 337 | ||
346 | ipq_issue_verdict(entry, verdict); | 338 | nf_reinject(entry, verdict); |
347 | return 0; | 339 | return 0; |
348 | } | 340 | } |
349 | } | 341 | } |