summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBrian Witte <brianwitte@mailfence.com>2026-02-04 14:26:38 -0600
committerFlorian Westphal <fw@strlen.de>2026-02-17 15:04:20 +0100
commit30c4d7fb59ac4c8d7fa7937df11eed10b368fa11 (patch)
treeacabfddb2d1ca65a027a39c75180460d91615614 /include
parent779c60a5190c42689534172f4b49e927c9959e4e (diff)
downloadlinux-30c4d7fb59ac4c8d7fa7937df11eed10b368fa11.tar.gz
linux-30c4d7fb59ac4c8d7fa7937df11eed10b368fa11.zip
netfilter: nft_quota: use atomic64_xchg for reset
Use atomic64_xchg() to atomically read and zero the consumed value on reset, which is simpler than the previous read+sub pattern and doesn't require lock serialization. Fixes: bd662c4218f9 ("netfilter: nf_tables: Add locking for NFT_MSG_GETOBJ_RESET requests") Fixes: 3d483faa6663 ("netfilter: nf_tables: Add locking for NFT_MSG_GETSETELEM_RESET requests") Fixes: 3cb03edb4de3 ("netfilter: nf_tables: Add locking for NFT_MSG_GETRULE_RESET requests") Suggested-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Brian Witte <brianwitte@mailfence.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions