]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: Fix updating statistics
authorTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 24 Jun 2020 16:04:22 +0000 (09:04 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 1 Jul 2020 21:45:59 +0000 (14:45 -0700)
commit88bbd50ae9a3ba12ae7a02ec7b224dd94f994f13
tree1082d0eebe058005321f27968be7e01575204221
parentb73382a77f351c61629631efd6f15ff4e6cd9f54
iavf: Fix updating statistics

Commit 174bee62d924 ("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: 174bee62d924 ("iavf: Refactor the watchdog state machine")
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
drivers/net/ethernet/intel/iavf/iavf_main.c