]> www.infradead.org Git - users/willy/linux.git/commitdiff
netfilter: nft_set_pipapo_avx2: Drop the comment regarding protection
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 15 Aug 2025 16:09:36 +0000 (18:09 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 20 Aug 2025 11:52:37 +0000 (13:52 +0200)
The comment claims that the kernel_fpu_begin_mask() below protects
access to the scratch map. This is not true because the access is only
protected by local_bh_disable() above.

Remove the misleading comment.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nft_set_pipapo_avx2.c

index 2f090e253caf7cbe846e28ea9b678543be4809c2..fc734a8545b44e0ce247bdd2340e0c6ac2de81dd 100644 (file)
@@ -1171,9 +1171,7 @@ nft_pipapo_avx2_lookup(const struct net *net, const struct nft_set *set,
 
        m = rcu_dereference(priv->match);
 
-       /* This also protects access to all data related to scratch maps.
-        *
-        * Note that we don't need a valid MXCSR state for any of the
+       /* Note that we don't need a valid MXCSR state for any of the
         * operations we use here, so pass 0 as mask and spare a LDMXCSR
         * instruction.
         */