diff options
| author | Sebastian Andrzej Siewior <[email protected]> | 2024-08-20 07:54:31 +0000 |
|---|---|---|
| committer | Pablo Neira Ayuso <[email protected]> | 2024-08-20 10:26:36 +0000 |
| commit | a0b39e2dc7017ac667b70bdeee5293e410fab2fb (patch) | |
| tree | a31be42759da3a3f1c68753878205615a448617f /drivers/net/wan/lapbether.c | |
| parent | netfilter: nft_counter: Disable BH in nft_counter_offload_stats(). (diff) | |
| download | kernel-a0b39e2dc7017ac667b70bdeee5293e410fab2fb.tar.gz kernel-a0b39e2dc7017ac667b70bdeee5293e410fab2fb.zip | |
netfilter: nft_counter: Synchronize nft_counter_reset() against reader.
nft_counter_reset() resets the counter by subtracting the previously
retrieved value from the counter. This is a write operation on the
counter and as such it requires to be performed with a write sequence of
nft_counter_seq to serialize against its possible reader.
Update the packets/ bytes within write-sequence of nft_counter_seq.
Fixes: d84701ecbcd6a ("netfilter: nft_counter: rework atomic dump and reset")
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Reviewed-by: Florian Westphal <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'drivers/net/wan/lapbether.c')
0 files changed, 0 insertions, 0 deletions
