Commit f1a8ff21 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

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: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 82d92920
...@@ -18,6 +18,25 @@ ...@@ -18,6 +18,25 @@
#include "vxge-ethtool.h" #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. * vxge_ethtool_sset - Sets different link parameters.
* @dev: device pointer. * @dev: device pointer.
......
...@@ -19,25 +19,6 @@ ...@@ -19,25 +19,6 @@
/* Ethtool related variables and Macros. */ /* Ethtool related variables and Macros. */
static int vxge_ethtool_get_sset_count(struct net_device *dev, int sset); static int vxge_ethtool_get_sset_count(struct net_device *dev, int sset);
static 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"}
};
#define VXGE_TITLE_LEN 5 #define VXGE_TITLE_LEN 5
#define VXGE_HW_VPATH_STATS_LEN 27 #define VXGE_HW_VPATH_STATS_LEN 27
#define VXGE_HW_AGGR_STATS_LEN 13 #define VXGE_HW_AGGR_STATS_LEN 13
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment