[Intel-wired-lan] [PATCH net v1] ice: Reset stats on queue change

Alexander Lobakin alexandr.lobakin at intel.com
Tue Dec 20 17:08:22 UTC 2022


From: Benjamin Mikailenko <benjamin.mikailenko at intel.com>
Date: Tue, 20 Dec 2022 11:05:06 -0500

> Commit 288ecf491b16 ("ice: Accumulate ring statistics over reset")
> implemented functionality for interface statistics to persist over reset.
> This avoided the case where a reset happens in the background, statistics
> set to zero, and the user checks ring statistics expecting them to be
> populated.
> 
> In the case of changing the number of queues, statistics should reset.
> This is because old data should clear after parameter reconfiguration.

"Should clear" -- because? Who said that? Stats are usually a
netdev-lifetime entity (or even pcidev-lifetime).

> 
> Fix this by resetting statistics when the number of queues changes.
> 
> Fixes: 288ecf491b16 ("ice: Accumulate ring statistics over reset")

It's not even clear why resets are needed, not speaking of if it
actually fixes anything. I think this wouldn't hit the net-fixes
tree with no real scenario where the mentioned commit provides a
serious regression.

> Signed-off-by: Benjamin Mikailenko <benjamin.mikailenko at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_lib.c | 65 ++++++++++++++++++++++++
>  1 file changed, 65 insertions(+)

[...]

> -- 
> 2.34.3

Thanks,
Olek


More information about the Intel-wired-lan mailing list