netfilter: reduce hook array sizes to what is needed
authorFlorian Westphal <fw@strlen.de>
Thu, 7 Dec 2017 15:28:24 +0000 (16:28 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Jan 2018 17:01:09 +0000 (18:01 +0100)
commitef57170bbfdd6958281011332b1fd237712f69f0
tree52508535fb6436920e88c063e12d1c29d3d147e1
parente58f33cc84bc089c430ac955f3cad6380ae98591
netfilter: reduce hook array sizes to what is needed

Not all families share the same hook count, adjust sizes to what is
needed.

struct net before:
/* size: 6592, cachelines: 103, members: 46 */
after:
/* size: 5952, cachelines: 93, members: 46 */

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netns/netfilter.h
net/netfilter/core.c