Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
igb_ethtool.c File Reference
#include <linux/vmalloc.h>
#include <linux/netdevice.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/if_ether.h>
#include <linux/ethtool.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include "igb.h"

Go to the source code of this file.

Data Structures

struct  igb_stats
 
struct  igb_reg_test
 

Macros

#define IGB_STAT(_name, _stat)
 
#define IGB_NETDEV_STAT(_net_stat)
 
#define IGB_GLOBAL_STATS_LEN   (sizeof(igb_gstrings_stats) / sizeof(struct igb_stats))
 
#define IGB_NETDEV_STATS_LEN   (sizeof(igb_gstrings_net_stats) / sizeof(struct igb_stats))
 
#define IGB_RX_QUEUE_STATS_LEN   (sizeof(struct igb_rx_queue_stats) / sizeof(u64))
 
#define IGB_TX_QUEUE_STATS_LEN   3 /* packets, bytes, restart_queue */
 
#define IGB_QUEUE_STATS_LEN
 
#define IGB_STATS_LEN   (IGB_GLOBAL_STATS_LEN + IGB_NETDEV_STATS_LEN + IGB_QUEUE_STATS_LEN)
 
#define IGB_TEST_LEN   (sizeof(igb_gstrings_test) / ETH_GSTRING_LEN)
 
#define IGB_REGS_LEN   739
 
#define PATTERN_TEST   1
 
#define SET_READ_TEST   2
 
#define WRITE_NO_TEST   3
 
#define TABLE32_TEST   4
 
#define TABLE64_TEST_LO   5
 
#define TABLE64_TEST_HI   6
 
#define REG_PATTERN_TEST(reg, mask, write)
 
#define REG_SET_AND_CHECK(reg, mask, write)
 
#define IGB_LED_ON   0
 

Functions

void igb_set_ethtool_ops (struct net_device *netdev)
 

Macro Definition Documentation

#define IGB_GLOBAL_STATS_LEN   (sizeof(igb_gstrings_stats) / sizeof(struct igb_stats))

Definition at line 113 of file igb_ethtool.c.

#define IGB_LED_ON   0

Definition at line 2071 of file igb_ethtool.c.

#define IGB_NETDEV_STAT (   _net_stat)
Value:
{ \
.stat_string = __stringify(_net_stat), \
.sizeof_stat = FIELD_SIZEOF(struct rtnl_link_stats64, _net_stat), \
.stat_offset = offsetof(struct rtnl_link_stats64, _net_stat) \
}

Definition at line 96 of file igb_ethtool.c.

#define IGB_NETDEV_STATS_LEN   (sizeof(igb_gstrings_net_stats) / sizeof(struct igb_stats))

Definition at line 115 of file igb_ethtool.c.

#define IGB_QUEUE_STATS_LEN
Value:
((((struct igb_adapter *)netdev_priv(netdev))->num_rx_queues * \
(((struct igb_adapter *)netdev_priv(netdev))->num_tx_queues * \

Definition at line 122 of file igb_ethtool.c.

#define IGB_REGS_LEN   739
#define IGB_RX_QUEUE_STATS_LEN   (sizeof(struct igb_rx_queue_stats) / sizeof(u64))

Definition at line 117 of file igb_ethtool.c.

#define IGB_STAT (   _name,
  _stat 
)
Value:
{ \
.stat_string = _name, \
.sizeof_stat = FIELD_SIZEOF(struct igb_adapter, _stat), \
.stat_offset = offsetof(struct igb_adapter, _stat) \
}

Definition at line 49 of file igb_ethtool.c.

Definition at line 127 of file igb_ethtool.c.

#define IGB_TEST_LEN   (sizeof(igb_gstrings_test) / ETH_GSTRING_LEN)

Definition at line 135 of file igb_ethtool.c.

#define IGB_TX_QUEUE_STATS_LEN   3 /* packets, bytes, restart_queue */

Definition at line 120 of file igb_ethtool.c.

#define PATTERN_TEST   1

Definition at line 943 of file igb_ethtool.c.

#define REG_PATTERN_TEST (   reg,
  mask,
  write 
)
Value:
do { \
if (reg_pattern_test(adapter, data, reg, mask, write)) \
return 1; \
} while (0)

Definition at line 1178 of file igb_ethtool.c.

#define REG_SET_AND_CHECK (   reg,
  mask,
  write 
)
Value:
do { \
if (reg_set_and_check(adapter, data, reg, mask, write)) \
return 1; \
} while (0)

Definition at line 1184 of file igb_ethtool.c.

#define SET_READ_TEST   2

Definition at line 944 of file igb_ethtool.c.

#define TABLE32_TEST   4

Definition at line 946 of file igb_ethtool.c.

#define TABLE64_TEST_HI   6

Definition at line 948 of file igb_ethtool.c.

#define TABLE64_TEST_LO   5

Definition at line 947 of file igb_ethtool.c.

#define WRITE_NO_TEST   3

Definition at line 945 of file igb_ethtool.c.

Function Documentation

void igb_set_ethtool_ops ( struct net_device netdev)

Definition at line 2390 of file igb_ethtool.c.