[NETFILTER]: ip6_queue: deobfuscate entry lookups
commit171b7fc4fc178a004aec8d06eb745c30ae726fb6
authorPatrick McHardy <kaber@trash.net>
Wed, 5 Dec 2007 09:26:02 +0000 (5 01:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:56:13 +0000 (28 14:56 -0800)
treece54f05818c0e87dcbe034bf3a80f057aa1cf206
parent9521409265d3bae939ace4c259f765c29339730f
[NETFILTER]: ip6_queue: deobfuscate entry lookups

A queue entry lookup currently looks like this:

ipq_find_dequeue_entry -> __ipq_find_dequeue_entry ->
__ipq_find_entry -> cmpfn -> id_cmp

Use simple open-coded list walking and kill the cmpfn for
ipq_find_dequeue_entry. Instead add it to ipq_flush (after
similar cleanups) and use ipq_flush for both complete flushes
and flushing entries related to a device.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/netfilter/ip6_queue.c