]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_meta: track register operations
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 9 Jan 2022 16:11:23 +0000 (17:11 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 9 Jan 2022 22:35:17 +0000 (23:35 +0100)
commitf0a0cbef6d300a4502ac3b6c655a848f67ceb38f
tree1be7be5fb261e2eed2dc1058bdea1c7ce0f3ddf2
parent7cfb61f4b04ec5b57850089d611ed9fbd7d589b4
netfilter: nft_meta: track register operations

Check if the destination register already contains the data that this
meta store expression performs. This allows to skip this redundant
operation. If the destination contains a different selector, update
the register tracking information.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_meta.c