[Intel-wired-lan] [PATCH] iavf: Fix updating statistics

Bowers, AndrewX andrewx.bowers at intel.com
Fri Jun 26 15:49:35 UTC 2020


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Tony Nguyen
> Sent: Wednesday, June 24, 2020 9:04 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH] iavf: Fix updating statistics
> 
> Commit bac8486116b0 ("iavf: Refactor the watchdog state machine")
> inverted the logic for when to update statistics. Statistics should be updated
> when no other commands are pending, instead they were only requested
> when a command was processed. iavf_request_stats() would see a pending
> request and not request statistics to be updated. This caused statistics to
> never be updated; fix the logic.
> 
> Fixes: bac8486116b0 ("iavf: Refactor the watchdog state machine")
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
>  drivers/net/ethernet/intel/iavf/iavf_main.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list