#include <linux/netdevice.h>
#include <linux/ethtool.h>
#include <linux/rtnetlink.h>
#include <linux/in.h>
#include "net_driver.h"
#include "workarounds.h"
#include "selftest.h"
#include "efx.h"
#include "filter.h"
#include "nic.h"
Go to the source code of this file.
|
#define | EFX_ETHTOOL_STAT(stat_name, source_name, field, field_type, get_stat_function) |
|
#define | EFX_ETHTOOL_U64_MAC_STAT(field) |
|
#define | EFX_ETHTOOL_UINT_NIC_STAT(name) |
|
#define | EFX_ETHTOOL_ATOMIC_NIC_ERROR_STAT(field) |
|
#define | EFX_ETHTOOL_UINT_CHANNEL_STAT(field) |
|
#define | EFX_ETHTOOL_UINT_TXQ_STAT(field) |
|
#define | EFX_ETHTOOL_NUM_STATS ARRAY_SIZE(efx_ethtool_stats) |
|
#define | EFX_ETHTOOL_EEPROM_MAGIC 0xEFAB |
|
#define | EFX_CHANNEL_NAME(_channel) "chan%d", _channel->channel |
|
#define | EFX_TX_QUEUE_NAME(_tx_queue) "txq%d", _tx_queue->queue |
|
#define | EFX_RX_QUEUE_NAME(_rx_queue) "rxq%d", _rx_queue->queue |
|
#define | EFX_LOOPBACK_NAME(_mode, _counter) "loopback.%s." _counter, STRING_TABLE_LOOKUP(_mode, efx_loopback_mode) |
|
#define EFX_CHANNEL_NAME |
( |
|
_channel | ) |
"chan%d", _channel->channel |
#define EFX_ETHTOOL_ATOMIC_NIC_ERROR_STAT |
( |
|
field | ) |
|
#define EFX_ETHTOOL_EEPROM_MAGIC 0xEFAB |
#define EFX_ETHTOOL_NUM_STATS ARRAY_SIZE(efx_ethtool_stats) |
#define EFX_ETHTOOL_STAT |
( |
|
stat_name, |
|
|
|
source_name, |
|
|
|
field, |
|
|
|
field_type, |
|
|
|
get_stat_function |
|
) |
| |
Value:{ \
.name = #stat_name, \
.source = EFX_ETHTOOL_STAT_SOURCE_##source_name, \
.offset = ((((field_type *) 0) == \
&((struct efx_##source_name *)0)->field) ? \
offsetof(
struct efx_##source_name,
field)), \
.get_stat = get_stat_function, \
}
Definition at line 39 of file ethtool.c.
#define EFX_ETHTOOL_U64_MAC_STAT |
( |
|
field | ) |
|
#define EFX_ETHTOOL_UINT_CHANNEL_STAT |
( |
|
field | ) |
|
Value:
unsigned int, efx_get_uint_stat)
Definition at line 77 of file ethtool.c.
#define EFX_ETHTOOL_UINT_NIC_STAT |
( |
|
name | ) |
|
Value:
unsigned int, efx_get_uint_stat)
Definition at line 69 of file ethtool.c.
#define EFX_ETHTOOL_UINT_TXQ_STAT |
( |
|
field | ) |
|
Value:
unsigned int, efx_get_uint_stat)
Definition at line 81 of file ethtool.c.
#define EFX_RX_QUEUE_NAME |
( |
|
_rx_queue | ) |
"rxq%d", _rx_queue->queue |
#define EFX_TX_QUEUE_NAME |
( |
|
_tx_queue | ) |
"txq%d", _tx_queue->queue |