diff options
author | Joe Perches <joe@perches.com> | 2015-04-01 22:29:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-01 22:35:14 +0300 |
commit | f1a8ff21d083c6b37bba9e4ad2c1d899ae41f75d (patch) | |
tree | 30888e5970be9e498ea55767373a86886efd8a32 /drivers/net/ethernet/neterion/vxge/vxge-ethtool.c | |
parent | 82d929207a11402f9cfe2131013a94939967828a (diff) | |
download | linux-f1a8ff21d083c6b37bba9e4ad2c1d899ae41f75d.tar.xz |
vxge: Add const to ethtool_driver_stats_keys
Move about half a KB of data to text.
Miscellanea:
o Move strings out of the .h file into the .c file
in case the .h file is ever #included twice
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/neterion/vxge/vxge-ethtool.c')
-rw-r--r-- | drivers/net/ethernet/neterion/vxge/vxge-ethtool.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-ethtool.c b/drivers/net/ethernet/neterion/vxge/vxge-ethtool.c index b07d552a27d4..be916eb2f2e7 100644 --- a/drivers/net/ethernet/neterion/vxge/vxge-ethtool.c +++ b/drivers/net/ethernet/neterion/vxge/vxge-ethtool.c @@ -18,6 +18,25 @@ #include "vxge-ethtool.h" +static const char ethtool_driver_stats_keys[][ETH_GSTRING_LEN] = { + {"\n DRIVER STATISTICS"}, + {"vpaths_opened"}, + {"vpath_open_fail_cnt"}, + {"link_up_cnt"}, + {"link_down_cnt"}, + {"tx_frms"}, + {"tx_errors"}, + {"tx_bytes"}, + {"txd_not_free"}, + {"txd_out_of_desc"}, + {"rx_frms"}, + {"rx_errors"}, + {"rx_bytes"}, + {"rx_mcast"}, + {"pci_map_fail_cnt"}, + {"skb_alloc_fail_cnt"} +}; + /** * vxge_ethtool_sset - Sets different link parameters. * @dev: device pointer. |