Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
ethtool.c File Reference
#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.

Data Structures

struct  ethtool_string
 
struct  efx_ethtool_stat
 

Macros

#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)
 

Variables

struct ethtool_ops efx_ethtool_ops
 

Macro Definition Documentation

#define EFX_CHANNEL_NAME (   _channel)    "chan%d", _channel->channel

Definition at line 319 of file ethtool.c.

#define EFX_ETHTOOL_ATOMIC_NIC_ERROR_STAT (   field)
Value:
atomic_t, efx_get_atomic_stat)

Definition at line 73 of file ethtool.c.

#define EFX_ETHTOOL_EEPROM_MAGIC   0xEFAB

Definition at line 162 of file ethtool.c.

#define EFX_ETHTOOL_NUM_STATS   ARRAY_SIZE(efx_ethtool_stats)

Definition at line 160 of file ethtool.c.

#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) : \
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)
Value:
u64, efx_get_u64_stat)

Definition at line 65 of file ethtool.c.

#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_LOOPBACK_NAME (   _mode,
  _counter 
)    "loopback.%s." _counter, STRING_TABLE_LOOKUP(_mode, efx_loopback_mode)

Definition at line 322 of file ethtool.c.

#define EFX_RX_QUEUE_NAME (   _rx_queue)    "rxq%d", _rx_queue->queue

Definition at line 321 of file ethtool.c.

#define EFX_TX_QUEUE_NAME (   _tx_queue)    "txq%d", _tx_queue->queue

Definition at line 320 of file ethtool.c.

Variable Documentation

struct ethtool_ops efx_ethtool_ops

Definition at line 1145 of file ethtool.c.