]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: fold prefix strings directly into stat names
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 17 May 2018 08:08:37 +0000 (01:08 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 22 May 2018 15:37:06 +0000 (08:37 -0700)
commit78a0f607fd2c4333e301761257e41cd17a5ec2e1
treeb62e205bc8d8ad7ad56b62af91c48adb2b08246a
parent26d5b841061c09a063101fafc0dd64f3f0472ac8
i40e: fold prefix strings directly into stat names

We always prefix these stats with a fixed string, so just fold this
prefix into the stat string definition. This preparatory work will make
it easier to implement a helper function to copy stats and strings into
the supplied buffers in a future patch.

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