aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/ethtool.c
diff options
context:
space:
mode:
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