i40e: Strip VEB stats if they are disabled in HW
authorAnjali Singhai Jain <anjali.singhai@intel.com>
Thu, 23 Jul 2015 20:54:40 +0000 (16:54 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 30 Sep 2015 12:35:45 +0000 (05:35 -0700)
commitd1a8d275340470b89fa3a3f7c47433caf1286336
tree5175248a486158beb3942d840223fa1d7137144d
parent48a3b512e8c0703884dd1b3afd85a295ecd36b5f
i40e: Strip VEB stats if they are disabled in HW

Due to performance reasons, VEB stats have been disabled in the hw. This
patch adds code to check for that condition before accumulating these
stats.

Change-ID: I7d805669476fedabb073790403703798ae5d878e
Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40e/i40e_main.c