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

Check if the destination register already contains the data that this
payload 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_payload.c