diff options
author | Patrick McHardy <kaber@trash.net> | 2007-12-05 01:23:41 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 14:56:08 -0800 |
commit | fb46990dba94866462e90623e183d02ec591cf8f (patch) | |
tree | 00d0529ce32d3fabeaba09a9b29fd3a22c06aaf1 /net/netfilter/core.c | |
parent | 8b1cf0db2aced837fcd50072e81e32c5836a1ee1 (diff) |
[NETFILTER]: nf_queue: remove unnecessary hook existance check
We hold a module reference for each queued packet, so the hook that
queued the packet can't disappear. Also remove an obsolete comment
stating the opposite.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/core.c')
-rw-r--r-- | net/netfilter/core.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/net/netfilter/core.c b/net/netfilter/core.c index e6d3a69b9e9..6819a4113e1 100644 --- a/net/netfilter/core.c +++ b/net/netfilter/core.c @@ -51,11 +51,6 @@ void nf_unregister_afinfo(struct nf_afinfo *afinfo) } EXPORT_SYMBOL_GPL(nf_unregister_afinfo); -/* In this code, we can be waiting indefinitely for userspace to - * service a packet if a hook returns NF_QUEUE. We could keep a count - * of skbuffs queued for userspace, and not deregister a hook unless - * this is zero, but that sucks. Now, we simply check when the - * packets come back: if the hook is gone, the packet is discarded. */ struct list_head nf_hooks[NPROTO][NF_MAX_HOOKS] __read_mostly; EXPORT_SYMBOL(nf_hooks); static DEFINE_MUTEX(nf_hook_mutex); |