]> 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)
commit571d7747abe752d28d3d3cf36151cfac89ff3d63
tree667b8c993d3c48890fb0eb85bc8e0d7af95af7a3
parentb68f5906cf16cc29f0979e7f77b14dc9f319a150
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