]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Report stats when VSI is down
authorDave Ertman <david.m.ertman@intel.com>
Thu, 8 Aug 2019 14:39:28 +0000 (07:39 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 4 Sep 2019 00:07:50 +0000 (17:07 -0700)
commit8c45fee7d76b76bfabe9323bf3e52986447e1351
treec9c7cb42460c16c49c437fcf385105b189a0495e
parent1fa09e340beb9b1903dc2357922c5bb2289f9bb6
ice: Report stats when VSI is down

There is currently a check in get_ndo_stats that
returns before updating stats if the VSI is down
or there are no Tx or Rx queues.  This causes the
netdev to report zero stats with the netdev is down.

Remove the check so that the behavior of reporting
stats is the same as it was in IXGBE.

Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c