summaryrefslogtreecommitdiff
path: root/net/ipx/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorDavid Yang <mmyangfl@gmail.com>2026-01-21 15:29:26 +0800
committerPaolo Abeni <pabeni@redhat.com>2026-01-22 12:55:22 +0100
commitcc4816bdb08639e5cd9acb295a02d6f0f09736b4 (patch)
tree2a02c7ddb63f8bba0d0e9da15cafa6d588521451 /net/ipx/git@git.tavy.me:linux.git
parent19e4175e997a5b85eab97d522f00cc99abd1873c (diff)
net: openvswitch: fix data race in ovs_vport_get_upcall_stats
In ovs_vport_get_upcall_stats(), some statistics protected by u64_stats_sync, are read and accumulated in ignorance of possible u64_stats_fetch_retry() events. These statistics are already accumulated by u64_stats_inc(). Fix this by reading them into temporary variables first. Fixes: 1933ea365aa7 ("net: openvswitch: Add support to count upcall packets") Signed-off-by: David Yang <mmyangfl@gmail.com> Acked-by: Ilya Maximets <i.maximets@ovn.org> Reviewed-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Aaron Conole <aconole@redhat.com> Link: https://patch.msgid.link/20260121072932.2360971-1-mmyangfl@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/ipx/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions