diff options
author | Guillaume Nault <[email protected]> | 2024-04-26 17:27:17 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-04-29 13:39:15 +0100 |
commit | 6dee402daba4eb8677a9438ebdcd8fe90ddd4326 (patch) | |
tree | 73a0067c93be58ed4a8cb57ffc68effca6bd70cd /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | b867247555c4181bf84eb10b72b176862c29112d (diff) |
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 <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions