]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnetlink_queue: batch verdict support
authorFlorian Westphal <fw@strlen.de>
Tue, 19 Jul 2011 09:46:33 +0000 (11:46 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 19 Jul 2011 09:46:33 +0000 (11:46 +0200)
commitd8e93632c0bcd6317c2d15e48b09eed3d0f7332a
tree13b33df5f7a3faf8e765761b823620d234317937
parentc8f77d42efcfd4ecdcffc5ace786612b554e972f
netfilter: nfnetlink_queue: batch verdict support

Introduces a new nfnetlink type that applies a given
verdict to all queued packets with an id <= the id in the verdict
message.

If a mark is provided it is applied to all matched packets.

This reduces the number of verdicts that have to be sent.
Applications that make use of this feature need to maintain
a timeout to send a batchverdict periodically to avoid starvation.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/nfnetlink_queue.h
net/netfilter/nfnetlink_queue.c