aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/ethtool.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-11-23 11:08:17 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-24 13:59:04 -0500
commitc459302db655c1a7fd05fd4266b18990854e8386 (patch)
tree94adde79f8c3a5a447305cf425a5caa1c7091df7 /drivers/net/sfc/ethtool.c
parentf5e7adc3d4aa8edab63bb63f0ce5fe92c3dd7604 (diff)
sfc: Log interrupt and reset type names, not numbers
Define name tables for these enumerations in a similar way as for loopback. Move the loopback name table together with them. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/ethtool.c')
-rw-r--r--drivers/net/sfc/ethtool.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c
index e8afd784e6b2..d8915b95e65a 100644
--- a/drivers/net/sfc/ethtool.c
+++ b/drivers/net/sfc/ethtool.c
@@ -20,19 +20,6 @@
20#include "spi.h" 20#include "spi.h"
21#include "mdio_10g.h" 21#include "mdio_10g.h"
22 22
23const char *efx_loopback_mode_names[] = {
24 [LOOPBACK_NONE] = "NONE",
25 [LOOPBACK_GMAC] = "GMAC",
26 [LOOPBACK_XGMII] = "XGMII",
27 [LOOPBACK_XGXS] = "XGXS",
28 [LOOPBACK_XAUI] = "XAUI",
29 [LOOPBACK_GPHY] = "GPHY",
30 [LOOPBACK_PHYXS] = "PHYXS",
31 [LOOPBACK_PCS] = "PCS",
32 [LOOPBACK_PMAPMD] = "PMA/PMD",
33 [LOOPBACK_NETWORK] = "NETWORK",
34};
35
36struct ethtool_string { 23struct ethtool_string {
37 char name[ETH_GSTRING_LEN]; 24 char name[ETH_GSTRING_LEN];
38}; 25};
@@ -290,7 +277,7 @@ static void efx_fill_test(unsigned int test_index,
290#define EFX_TX_QUEUE_NAME(_tx_queue) "txq%d", _tx_queue->queue 277#define EFX_TX_QUEUE_NAME(_tx_queue) "txq%d", _tx_queue->queue
291#define EFX_RX_QUEUE_NAME(_rx_queue) "rxq%d", _rx_queue->queue 278#define EFX_RX_QUEUE_NAME(_rx_queue) "rxq%d", _rx_queue->queue
292#define EFX_LOOPBACK_NAME(_mode, _counter) \ 279#define EFX_LOOPBACK_NAME(_mode, _counter) \
293 "loopback.%s." _counter, LOOPBACK_MODE_NAME(mode) 280 "loopback.%s." _counter, STRING_TABLE_LOOKUP(_mode, efx_loopback_mode)
294 281
295/** 282/**
296 * efx_fill_loopback_test - fill in a block of loopback self-test entries 283 * efx_fill_loopback_test - fill in a block of loopback self-test entries