netfilter: nft_exthdr: add reduce support
authorFlorian Westphal <fw@strlen.de>
Mon, 14 Mar 2022 17:23:13 +0000 (18:23 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 19 Mar 2022 23:29:47 +0000 (00:29 +0100)
commite86dbdb9d4619c3fd9b2ccec159ae1ca41e8ac36
treec54e254c69c98d1c5301d6dda61cbcd3d19d223b
parent3c1eb413a45b6c6327fed394705081ec6202b31a
netfilter: nft_exthdr: add reduce support

Check if we can elide the load. Cancel if the new candidate
isn't identical to previous store.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_exthdr.c