netfilter: conntrack: avoid reload of ct->status
authorFlorian Westphal <fw@strlen.de>
Mon, 2 Jan 2023 11:46:12 +0000 (12:46 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 18 Jan 2023 12:05:24 +0000 (13:05 +0100)
commit4883ec512c1715fc827557f0e2bfce76c6530757
tree221dc4ec549d4725c56d11329ec15bc81b878df8
parent50bfbb8957abebc2359220d7c1e4663994461b36
netfilter: conntrack: avoid reload of ct->status

Compiler can't merge the two test_bit() calls, so load ct->status
once and use non-atomic accesses.

This is fine because IPS_EXPECTED or NAT_CLASH are either set at ct
creation time or not at all, but compiler can't know that.

Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_conntrack_proto_udp.c