]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit221925097777108ad061ea4dc136078840d86e8b
tree5175248a486158beb3942d840223fa1d7137144d
parentec80b404fa3029c1786a2b7fac20522b76b1dd5e
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