[NETFILTER]: nf_queue: move list_head/skb/id to struct nf_info
authorPatrick McHardy <kaber@trash.net>
Wed, 5 Dec 2007 09:26:33 +0000 (01:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:56:14 +0000 (14:56 -0800)
commit02f014d88831f73b895c1fe09badb66c88e932d3
tree09aa75b8edeb240e62c4269f20630f8206c0e6d4
parent7a6c6653b3a977087ec64d76817c7ee6e1df5b60
[NETFILTER]: nf_queue: move list_head/skb/id to struct nf_info

Move common fields for queue management to struct nf_info and rename it
to struct nf_queue_entry. The avoids one allocation/free per packet and
simplifies the code a bit.

Alternatively we could add some private room at the tail, but since
all current users use identical structs this seems easier.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter.h
include/net/netfilter/nf_queue.h
net/ipv4/netfilter.c
net/ipv4/netfilter/ip_queue.c
net/ipv6/netfilter.c
net/ipv6/netfilter/ip6_queue.c
net/netfilter/nf_queue.c
net/netfilter/nfnetlink_queue.c