netfilter: nft_xfrm: track register operations
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Mar 2022 17:23:10 +0000 (18:23 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 19 Mar 2022 23:29:47 +0000 (00:29 +0100)
commit48f1910326eaf7318cab8356302258faede4f6b5
tree97d2e248a310c57a2891bf5cbb99773362c160c3
parentd77a721d212d48e2ff62334e00cc4cfcad751ff5
netfilter: nft_xfrm: track register operations

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