Jesse Brandeburg 1a0f25a52e 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>
2021-12-08 10:37:02 -08:00
..
2021-12-02 13:05:17 +00:00
2021-12-08 10:37:02 -08:00
2021-10-22 10:16:09 -07:00
2021-11-02 10:56:49 -07:00
2021-10-22 10:16:14 -07:00
2021-11-23 11:38:13 +00:00
2021-10-09 11:55:01 +01:00
2021-10-22 10:16:18 -07:00
2021-10-09 11:55:01 +01:00
2021-10-09 11:55:01 +01:00