aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-04-01 15:29:13 -0400
committerDavid S. Miller <davem@davemloft.net>2015-04-01 15:35:14 -0400
commitf1a8ff21d083c6b37bba9e4ad2c1d899ae41f75d (patch)
tree30888e5970be9e498ea55767373a86886efd8a32
parent82d929207a11402f9cfe2131013a94939967828a (diff)
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>
-rw-r--r--drivers/net/ethernet/neterion/vxge/vxge-ethtool.c19
-rw-r--r--drivers/net/ethernet/neterion/vxge/vxge-ethtool.h19
2 files changed, 19 insertions, 19 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 @@
18 18
19#include "vxge-ethtool.h" 19#include "vxge-ethtool.h"
20 20
21static const char ethtool_driver_stats_keys[][ETH_GSTRING_LEN] = {
22 {"\n DRIVER STATISTICS"},
23 {"vpaths_opened"},
24 {"vpath_open_fail_cnt"},
25 {"link_up_cnt"},
26 {"link_down_cnt"},
27 {"tx_frms"},
28 {"tx_errors"},
29 {"tx_bytes"},
30 {"txd_not_free"},
31 {"txd_out_of_desc"},
32 {"rx_frms"},
33 {"rx_errors"},
34 {"rx_bytes"},
35 {"rx_mcast"},
36 {"pci_map_fail_cnt"},
37 {"skb_alloc_fail_cnt"}
38};
39
21/** 40/**
22 * vxge_ethtool_sset - Sets different link parameters. 41 * vxge_ethtool_sset - Sets different link parameters.
23 * @dev: device pointer. 42 * @dev: device pointer.
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-ethtool.h b/drivers/net/ethernet/neterion/vxge/vxge-ethtool.h
index 6cf3044d7f43..065a2c0429a4 100644
--- a/drivers/net/ethernet/neterion/vxge/vxge-ethtool.h
+++ b/drivers/net/ethernet/neterion/vxge/vxge-ethtool.h
@@ -19,25 +19,6 @@
19/* Ethtool related variables and Macros. */ 19/* Ethtool related variables and Macros. */
20static int vxge_ethtool_get_sset_count(struct net_device *dev, int sset); 20static int vxge_ethtool_get_sset_count(struct net_device *dev, int sset);
21 21
22static char ethtool_driver_stats_keys[][ETH_GSTRING_LEN] = {
23 {"\n DRIVER STATISTICS"},
24 {"vpaths_opened"},
25 {"vpath_open_fail_cnt"},
26 {"link_up_cnt"},
27 {"link_down_cnt"},
28 {"tx_frms"},
29 {"tx_errors"},
30 {"tx_bytes"},
31 {"txd_not_free"},
32 {"txd_out_of_desc"},
33 {"rx_frms"},
34 {"rx_errors"},
35 {"rx_bytes"},
36 {"rx_mcast"},
37 {"pci_map_fail_cnt"},
38 {"skb_alloc_fail_cnt"}
39};
40
41#define VXGE_TITLE_LEN 5 22#define VXGE_TITLE_LEN 5
42#define VXGE_HW_VPATH_STATS_LEN 27 23#define VXGE_HW_VPATH_STATS_LEN 27
43#define VXGE_HW_AGGR_STATS_LEN 13 24#define VXGE_HW_AGGR_STATS_LEN 13