]> 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)
commite72641709d3ad11912441542b366a171fd565d41
tree5175248a486158beb3942d840223fa1d7137144d
parent2a6f986a3311c48724ca7c19b6e9a4d556ac4a34
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