]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ca2b3ed273c1d2387dc1917e426aa7b82eab920
tree5831c92e7674c1462176996a472786a96f305d2f
parent2e024d72825bf2f35f4f458b365351ba1d7f6943
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