diff options
author | Jesse Brandeburg <[email protected]> | 2021-11-12 17:06:02 -0800 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2021-12-08 10:37:02 -0800 |
commit | 1a0f25a52e08b1f67510cabbb44888d2b3c46359 (patch) | |
tree | 6fe8dc6c14076cebc162c118d67802577b2ba0c0 /scripts/clang-tools/gen_compile_commands.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 <[email protected]>
Tested-by: Gurucharan G <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions