]> 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)
commit1f23ab983e6cb2cfd5317f4e7deb764d5787094e
treec9c7cb42460c16c49c437fcf385105b189a0495e
parent46ef12c75c5a89c498ee9f0609905f39fe862af0
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