OSDN Git Service

netfilter: flowtable: remove ipv4/ipv6 modules
authorFlorian Westphal <fw@strlen.de>
Fri, 17 Dec 2021 14:10:55 +0000 (15:10 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 23 Dec 2021 00:07:44 +0000 (01:07 +0100)
commitc42ba4290b2147aa033d17f22151494515655d77
treead4f70012a775e7c98fb80608ce749a0f05f4949
parent878aed8db324bec64f3c3f956e64d5ae7375a5de
netfilter: flowtable: remove ipv4/ipv6 modules

Just place the structs and registration in the inet module.
nf_flow_table_ipv6, nf_flow_table_ipv4 and nf_flow_table_inet share
same module dependencies: nf_flow_table, nf_tables.

before:
   text    data     bss     dec     hex filename
   2278    1480       0    3758     eae nf_flow_table_inet.ko
   1159    1352       0    2511     9cf nf_flow_table_ipv6.ko
   1154    1352       0    2506     9ca nf_flow_table_ipv4.ko

after:
   2369    1672       0    4041     fc9 nf_flow_table_inet.ko

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/Kconfig
net/ipv4/netfilter/Makefile
net/ipv4/netfilter/nf_flow_table_ipv4.c
net/ipv6/netfilter/Kconfig
net/ipv6/netfilter/nf_flow_table_ipv6.c
net/netfilter/nf_flow_table_inet.c