diff options
author | 2022-08-16 16:53:49 +0300 | |
---|---|---|
committer | 2022-08-17 21:58:32 -0700 | |
commit | 18d8e67df184081bc6ce6220a2dd965cfd3d7e6b (patch) | |
tree | a83f952a61fd4eb584e245b02eaa6002b9836bd9 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | net: mscc: ocelot: turn stats_lock into a spinlock (diff) | |
download | wireguard-linux-18d8e67df184081bc6ce6220a2dd965cfd3d7e6b.tar.xz wireguard-linux-18d8e67df184081bc6ce6220a2dd965cfd3d7e6b.zip |
net: mscc: ocelot: fix race between ndo_get_stats64 and ocelot_check_stats_work
The 2 methods can run concurrently, and one will change the window of
counters (SYS_STAT_CFG_STAT_VIEW) that the other sees. The fix is
similar to what commit 7fbf6795d127 ("net: mscc: ocelot: fix mutex lock
error during ethtool stats read") has done for ethtool -S.
Fixes: a556c76adc05 ("net: mscc: Add initial Ocelot switch support")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions