diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2021-11-13 04:06:02 +0300 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2021-12-08 21:37:02 +0300 |
commit | 1a0f25a52e08b1f67510cabbb44888d2b3c46359 (patch) | |
tree | 6fe8dc6c14076cebc162c118d67802577b2ba0c0 /scripts/generate_rust_analyzer.py | |
parent | de6acd1cdd4d38823b7f4adae82e8a7d62993354 (diff) | |
download | linux-1a0f25a52e08b1f67510cabbb44888d2b3c46359.tar.xz |
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions