]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa6de95949a9b592b72a77199ed604d0b3979464
treead4f70012a775e7c98fb80608ce749a0f05f4949
parent083d758350017d472e85fa70c5c06c67e52ea5a1
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