fm10k: reduce duplicate fm10k_stat macro code
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 12 Apr 2018 18:15:55 +0000 (11:15 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 9 May 2018 16:02:04 +0000 (09:02 -0700)
commit2ead8ae110c6b62fe4d1d1bf04855e86582b96f5
tree214b8eec87a783ebc19e70b890926bf417ebafc2
parent3c6a67dd6697e25bfec0b85a008ec4a3c482d993
fm10k: reduce duplicate fm10k_stat macro code

Share some of the code for setting up fm10k_stat macros by implementing
an FM10K_STAT_FIELDS macro which we can use when setting up the type
specific macros.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c