OSDN Git Service

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)
commitbf1c39e64016c2c29991f20f29a91a76272b043a
treeb62e205bc8d8ad7ad56b62af91c48adb2b08246a
parent9b10df596bd4d38f2a58cf87e0780510acc53d8d
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