diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2021-11-12 17:06:02 -0800 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2021-12-08 10:37:02 -0800 |
commit | 1a0f25a52e08b1f67510cabbb44888d2b3c46359 (patch) | |
tree | 6fe8dc6c14076cebc162c118d67802577b2ba0c0 /tools/perf/scripts/python/check-perf-trace.py | |
parent | de6acd1cdd4d38823b7f4adae82e8a7d62993354 (diff) |
ice: safer stats processing
The driver was zeroing live stats that could be fetched by
ndo_get_stats64 at any time. This could result in inconsistent
statistics, and the telltale sign was when reading stats frequently from
/proc/net/dev, the stats would go backwards.
Fix by collecting stats into a local, and delaying when we write to the
structure so it's not incremental.
Fixes: fcea6f3da546 ("ice: Add stats and ethtool support")
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions