netfilter: xtables: use xt_table for hook instantiation
The respective xt_table structures already have most of the metadata
needed for hook setup. Add a 'priority' field to struct xt_table so
that xt_hook_link() can be called with a reduced number of arguments.
So should we be having more tables in the future, it comes at no
static cost (only runtime, as before) - space saved:
6807373->6806555.
Signed-off-by:
Jan Engelhardt <jengelh@medozas.de>
Showing
- include/linux/netfilter/x_tables.h 4 additions, 0 deletionsinclude/linux/netfilter/x_tables.h
- net/ipv4/netfilter/arptable_filter.c 7 additions, 26 deletionsnet/ipv4/netfilter/arptable_filter.c
- net/ipv4/netfilter/iptable_filter.c 7 additions, 26 deletionsnet/ipv4/netfilter/iptable_filter.c
- net/ipv4/netfilter/iptable_mangle.c 7 additions, 40 deletionsnet/ipv4/netfilter/iptable_mangle.c
- net/ipv4/netfilter/iptable_raw.c 7 additions, 20 deletionsnet/ipv4/netfilter/iptable_raw.c
- net/ipv4/netfilter/iptable_security.c 7 additions, 26 deletionsnet/ipv4/netfilter/iptable_security.c
- net/ipv6/netfilter/ip6table_filter.c 7 additions, 26 deletionsnet/ipv6/netfilter/ip6table_filter.c
- net/ipv6/netfilter/ip6table_mangle.c 7 additions, 41 deletionsnet/ipv6/netfilter/ip6table_mangle.c
- net/ipv6/netfilter/ip6table_raw.c 7 additions, 19 deletionsnet/ipv6/netfilter/ip6table_raw.c
- net/ipv6/netfilter/ip6table_security.c 7 additions, 26 deletionsnet/ipv6/netfilter/ip6table_security.c
- net/netfilter/x_tables.c 54 additions, 0 deletionsnet/netfilter/x_tables.c
Loading
Please register or sign in to comment