OSDN Git Service

i40e: calculate ethtool stats size in a separate function
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 10 May 2018 12:59:41 +0000 (05:59 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 14 May 2018 14:05:16 +0000 (07:05 -0700)
commit0ded9c61c13746991cbcc098cf00715526627e9a
tree5831c92e7674c1462176996a472786a96f305d2f
parente691b771aa7f660c42697c15b86ada2180e68280
i40e: calculate ethtool stats size in a separate function

Use a separate function to calculate the number of stats for
a particular device. This helps reduce the clutter in
i40e_get_sset_count().

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>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c