linux_dsm_epyc7002/drivers/net/ethernet/intel
Jacob Keller 1510ae0be2 i40e: convert VEB TC stats to use an i40e_stats array
The VEB TC stats are currently implemented with separate parsing,
instead of using the i40e_stats array and associated helper functions.
This is likely because the stats rely on embedding the TC number into
the stat name.

Update i40e_add_stat_strings to take variadic arguments, and use these
to vsnprintf the i40e_stats string as a string containing format
specifiers.

Create a stats array for the VEB TC related stats,
i40e_gstrings_veb_tc_stats, and use this along with the helper functions
to remove the specialized boiler plate code.

Always call i40e_add_ethtool_stats for both this array and the general
VEB stats array. This ensures that we zero out any memory in case it was
not zero-allocated for us.

This ultimately results in less boiler plate code for the
i40e_get_stat_strings and i40e_get_ethtool_stats.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-08-07 08:19:09 -07:00
..
e1000 treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
e1000e treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
fm10k treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
i40e i40e: convert VEB TC stats to use an i40e_stats array 2018-08-07 08:19:09 -07:00
i40evf i40e/i40evf: remove redundant functions i40evf_aq_{set/get}_phy_register 2018-08-07 08:19:08 -07:00
ice ice: Update NVM AQ command functions 2018-05-17 09:14:09 -07:00
igb igb: Use dma_wmb() instead of wmb() before doorbell writes 2018-07-26 09:04:05 -07:00
igbvf net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
ixgb treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
ixgbe ixgbe: Refactor queue disable logic to take completion time into account 2018-07-26 09:04:06 -07:00
ixgbevf xdp: don't make drivers report attachment mode 2018-07-13 20:26:35 +02:00
e100.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
Kconfig docs: Fix more broken references 2018-06-15 18:11:26 -03:00
Makefile ice: Add basic driver framework for Intel(R) E800 Series 2018-03-26 08:28:02 -07:00