Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ixgbe_ethtool.c File Reference
#include <linux/interrupt.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
#include <linux/ethtool.h>
#include <linux/vmalloc.h>
#include <linux/highmem.h>
#include <linux/uaccess.h>
#include "ixgbe.h"

Go to the source code of this file.

Data Structures

struct  ixgbe_stats
 
struct  ixgbe_reg_test
 

Macros

#define IXGBE_ALL_RAR_ENTRIES   16
 
#define IXGBE_STAT(m)
 
#define IXGBE_NETDEV_STAT(m)
 
#define IXGBE_NUM_RX_QUEUES   netdev->num_tx_queues
 
#define IXGBE_QUEUE_STATS_LEN
 
#define IXGBE_GLOBAL_STATS_LEN   ARRAY_SIZE(ixgbe_gstrings_stats)
 
#define IXGBE_PB_STATS_LEN
 
#define IXGBE_STATS_LEN
 
#define IXGBE_TEST_LEN   sizeof(ixgbe_gstrings_test) / ETH_GSTRING_LEN
 
#define IXGBE_REGS_LEN   1129
 
#define IXGBE_GET_STAT(_A_, _R_)   _A_->stats._R_
 
#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 UDP_RSS_FLAGS
 

Enumerations

enum  { NETDEV_STATS, IXGBE_STATS }
 

Functions

void ixgbe_set_ethtool_ops (struct net_device *netdev)
 

Macro Definition Documentation

#define IXGBE_ALL_RAR_ENTRIES   16

Definition at line 44 of file ixgbe_ethtool.c.

#define IXGBE_GET_STAT (   _A_,
  _R_ 
)    _A_->stats._R_

Definition at line 427 of file ixgbe_ethtool.c.

#define IXGBE_GLOBAL_STATS_LEN   ARRAY_SIZE(ixgbe_gstrings_stats)

Definition at line 134 of file ixgbe_ethtool.c.

#define IXGBE_NETDEV_STAT (   m)
Value:
sizeof(((struct rtnl_link_stats64 *)0)->m), \
offsetof(struct rtnl_link_stats64, m)

Definition at line 58 of file ixgbe_ethtool.c.

#define IXGBE_NUM_RX_QUEUES   netdev->num_tx_queues

Definition at line 129 of file ixgbe_ethtool.c.

#define IXGBE_PB_STATS_LEN
Value:
( \
(sizeof(((struct ixgbe_adapter *)0)->stats.pxonrxc) + \
sizeof(((struct ixgbe_adapter *)0)->stats.pxontxc) + \
sizeof(((struct ixgbe_adapter *)0)->stats.pxoffrxc) + \
sizeof(((struct ixgbe_adapter *)0)->stats.pxofftxc)) \
/ sizeof(u64))

Definition at line 135 of file ixgbe_ethtool.c.

#define IXGBE_QUEUE_STATS_LEN
Value:
( \
(netdev->num_tx_queues + IXGBE_NUM_RX_QUEUES) * \
(sizeof(struct ixgbe_queue_stats) / sizeof(u64)))

Definition at line 131 of file ixgbe_ethtool.c.

#define IXGBE_REGS_LEN   1129
#define IXGBE_STAT (   m)
Value:
sizeof(((struct ixgbe_adapter *)0)->m), \
offsetof(struct ixgbe_adapter, m)

Definition at line 55 of file ixgbe_ethtool.c.

#define IXGBE_STATS_LEN
Value:
IXGBE_PB_STATS_LEN + \
IXGBE_QUEUE_STATS_LEN)

Definition at line 141 of file ixgbe_ethtool.c.

#define IXGBE_TEST_LEN   sizeof(ixgbe_gstrings_test) / ETH_GSTRING_LEN

Definition at line 150 of file ixgbe_ethtool.c.

#define PATTERN_TEST   1

Definition at line 1168 of file ixgbe_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 1270 of file ixgbe_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 1277 of file ixgbe_ethtool.c.

#define SET_READ_TEST   2

Definition at line 1169 of file ixgbe_ethtool.c.

#define TABLE32_TEST   4

Definition at line 1171 of file ixgbe_ethtool.c.

#define TABLE64_TEST_HI   6

Definition at line 1173 of file ixgbe_ethtool.c.

#define TABLE64_TEST_LO   5

Definition at line 1172 of file ixgbe_ethtool.c.

#define UDP_RSS_FLAGS
Value:
IXGBE_FLAG2_RSS_FIELD_IPV6_UDP)

Definition at line 2539 of file ixgbe_ethtool.c.

#define WRITE_NO_TEST   3

Definition at line 1170 of file ixgbe_ethtool.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
NETDEV_STATS 
IXGBE_STATS 

Definition at line 46 of file ixgbe_ethtool.c.

Function Documentation

void ixgbe_set_ethtool_ops ( struct net_device netdev)

Definition at line 2737 of file ixgbe_ethtool.c.