netfilter: replace list_head with single linked list
authorAaron Conole <aconole@bytheb.org>
Wed, 21 Sep 2016 15:35:07 +0000 (11:35 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 25 Sep 2016 12:38:48 +0000 (14:38 +0200)
commite3b37f11e6e4e6b6f02cc762f182ce233d2c1c9d
tree09f9f1a8b9e8e7e173e1059c5e251c19a9852df6
parent54f17bbc52f71e2d313721046627c383d6c5c7da
netfilter: replace list_head with single linked list

The netfilter hook list never uses the prev pointer, and so can be trimmed to
be a simple singly-linked list.

In addition to having a more light weight structure for hook traversal,
struct net becomes 5568 bytes (down from 6400) and struct net_device becomes
2176 bytes (down from 2240).

Signed-off-by: Aaron Conole <aconole@bytheb.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netdevice.h
include/linux/netfilter.h
include/linux/netfilter_ingress.h
include/net/netfilter/nf_queue.h
include/net/netns/netfilter.h
net/bridge/br_netfilter_hooks.c
net/netfilter/core.c
net/netfilter/nf_internals.h
net/netfilter/nf_queue.c
net/netfilter/nfnetlink_queue.c