]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_ct: track register operations
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Mar 2022 17:23:02 +0000 (18:23 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 19 Mar 2022 23:29:46 +0000 (00:29 +0100)
commit0d817e575371071f1e8152f4a1ac1e389cec3847
tree667b8c993d3c48890fb0eb85bc8e0d7af95af7a3
parent48ec024c6c46f2562a06b5e2928695044e3ff11d
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>
net/netfilter/nft_bitwise.c
net/netfilter/nft_ct.c