diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-10-18 01:27:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-21 06:09:43 -0400 |
commit | d215697fe14a0c5a96765c6279b4751e632587a5 (patch) | |
tree | 2fd4639adc97e907853d08bfb4b6c3ee2a495694 /drivers/net/sfc/selftest.c | |
parent | d0280232813a6a5e2bfca6e9257b866352115c09 (diff) |
sfc: make functions static
Make local functions and variable static. Do some rearrangement
of the string table stuff to put it where it gets used.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/selftest.c')
-rw-r--r-- | drivers/net/sfc/selftest.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/sfc/selftest.c b/drivers/net/sfc/selftest.c index da4473b71058..0ebfb99f1299 100644 --- a/drivers/net/sfc/selftest.c +++ b/drivers/net/sfc/selftest.c | |||
@@ -48,6 +48,16 @@ static const unsigned char payload_source[ETH_ALEN] = { | |||
48 | static const char payload_msg[] = | 48 | static const char payload_msg[] = |
49 | "Hello world! This is an Efx loopback test in progress!"; | 49 | "Hello world! This is an Efx loopback test in progress!"; |
50 | 50 | ||
51 | /* Interrupt mode names */ | ||
52 | static const unsigned int efx_interrupt_mode_max = EFX_INT_MODE_MAX; | ||
53 | static const char *efx_interrupt_mode_names[] = { | ||
54 | [EFX_INT_MODE_MSIX] = "MSI-X", | ||
55 | [EFX_INT_MODE_MSI] = "MSI", | ||
56 | [EFX_INT_MODE_LEGACY] = "legacy", | ||
57 | }; | ||
58 | #define INT_MODE(efx) \ | ||
59 | STRING_TABLE_LOOKUP(efx->interrupt_mode, efx_interrupt_mode) | ||
60 | |||
51 | /** | 61 | /** |
52 | * efx_loopback_state - persistent state during a loopback selftest | 62 | * efx_loopback_state - persistent state during a loopback selftest |
53 | * @flush: Drop all packets in efx_loopback_rx_packet | 63 | * @flush: Drop all packets in efx_loopback_rx_packet |