[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZLftZFND6uBiHMC4@corigine.com>
Date: Wed, 19 Jul 2023 15:04:20 +0100
From: Simon Horman <simon.horman@...igine.com>
To: Przemek Kitszel <przemyslaw.kitszel@...el.com>
Cc: intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
Tony Nguyen <anthony.l.nguyen@...el.com>,
Lukasz Plachno <lukasz.plachno@...el.com>,
Benjamin Mikailenko <benjamin.mikailenko@...el.com>
Subject: Re: [PATCH iwl-net] ice: Reset stats on queues num change
On Fri, Jul 14, 2023 at 07:47:21AM -0400, Przemek Kitszel wrote:
> Reset VSI stats on queues number change.
>
> Commit 288ecf491b16 ("ice: Accumulate ring statistics over reset")
> implemented functionality for interface statistics to persist over reset,
> but it left stats persisting over queue count reconfiguration.
>
> Following scenario is fixed here:
> # Observe statistics for Tx/Rx queues
> ethtool -S ethX
> # change number of queues
> ethtool -L ethX combined 10
> # Observe statistics for Tx/Rx queues (after reset)
> ethtool -S ethX
>
> Ben has left a note where to place the VSI stats reset,
> what made this fix much easier to do.
>
> Note that newly allocated structs (case of num_txq > prev_txq) don't
> need zeroing.
>
> Fixes: 288ecf491b16 ("ice: Accumulate ring statistics over reset")
> Suggested-by: Benjamin Mikailenko <benjamin.mikailenko@...el.com>
> Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@...el.com>
Reviewed-by: Simon Horman <simon.horman@...igine.com>
Powered by blists - more mailing lists