diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-03-14 18:23:02 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-03-20 00:29:46 +0100 |
commit | 03858af0135f4efc90802e164bdc13477801afe2 (patch) | |
tree | 667b8c993d3c48890fb0eb85bc8e0d7af95af7a3 /net/netfilter/nft_bitwise.c | |
parent | 34cc9e52884a16c62acbfb309863fb60e4c24f55 (diff) | |
download | linux-03858af0135f4efc90802e164bdc13477801afe2.tar.gz linux-03858af0135f4efc90802e164bdc13477801afe2.tar.bz2 linux-03858af0135f4efc90802e164bdc13477801afe2.zip |
netfilter: nft_ct: track register operations
Check if the destination register already contains the data that this ct
expression performs. This allows to skip this redundant operation. If
the destination contains a different selector, update the register
tracking information.
Export nft_expr_reduce_bitwise as a symbol since nft_ct might be
compiled as a module.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_bitwise.c')
-rw-r--r-- | net/netfilter/nft_bitwise.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nft_bitwise.c b/net/netfilter/nft_bitwise.c index dffda6612369..38caa66632b4 100644 --- a/net/netfilter/nft_bitwise.c +++ b/net/netfilter/nft_bitwise.c @@ -529,3 +529,4 @@ bool nft_expr_reduce_bitwise(struct nft_regs_track *track, return false; } +EXPORT_SYMBOL_GPL(nft_expr_reduce_bitwise); |