diff options
author | Guillaume Nault <gnault@redhat.com> | 2024-04-26 18:27:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-29 15:39:15 +0300 |
commit | 6dee402daba4eb8677a9438ebdcd8fe90ddd4326 (patch) | |
tree | 73a0067c93be58ed4a8cb57ffc68effca6bd70cd /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b867247555c4181bf84eb10b72b176862c29112d (diff) | |
download | linux-6dee402daba4eb8677a9438ebdcd8fe90ddd4326.tar.xz |
vxlan: Fix racy device stats updates.
VXLAN devices update their stats locklessly. Therefore these counters
should either be stored in per-cpu data structures or the updates
should be done using atomic increments.
Since the net_device_core_stats infrastructure is already used in
vxlan_rcv(), use it for the other rx_dropped and tx_dropped counter
updates. Update the other counters atomically using DEV_STATS_INC().
Fixes: d342894c5d2f ("vxlan: virtual extensible lan")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions