]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: relocate header content to consumer
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 15 Apr 2019 20:43:14 +0000 (16:43 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 30 Apr 2019 11:35:17 +0000 (13:35 +0200)
commited6fb11fd70f4f521ef12a7323dd5a0a6fabe4c5
tree65bc59894ad30c9494204fda29048747208b2b4e
parent397a87f8eae59708fe23c199e0e0a2d47e7a0e7b
netfilter: nf_tables: relocate header content to consumer

The nf_tables.h header is used in a lot of files, but it turns out
that there is only one actual user of nft_expr_clone().

Hence we relocate that function to be with the one consumer of it
and avoid having to process it with CPP for all the other files.

This will also enable a reduction in the other headers that the
nf_tables.h itself has to include just to be stand-alone, hence
a pending further significant reduction in the CPP content that
needs to get processed for each netfilter file.

Note that the explicit "inline" has been dropped as part of this
relocation.  In similar changes to this, I believe Dave has asked
this be done, so we free up gcc to make the choice of whether to
inline or not.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nft_dynset.c