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)
commit3d57fd10f2c9100b32d4dd3ab060f12f8c5583a2
treec9c7cb42460c16c49c437fcf385105b189a0495e
parent06914ac20abba21bb810fd96eb85388a402add9b
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