]> git.ipfire.org Git - thirdparty/linux.git/commit
netfilter: nft_payload: Use csum_replace4() instead of opencoding
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 18 Aug 2025 09:48:30 +0000 (11:48 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 2 Sep 2025 13:28:17 +0000 (15:28 +0200)
commitc015e17ba111e1cd2c7180204b006266aa15c263
tree7d847f7ccd2b644d649868f636f06d0a2b5e3d50
parent46015e6b3ea75297b28d4806564f3f692cf11861
netfilter: nft_payload: Use csum_replace4() instead of opencoding

Open coded calculation can be avoided and replaced by the
equivalent csum_replace4() in nft_csum_replace().

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nft_payload.c