Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
en_ethtool.c File Reference
#include <linux/kernel.h>
#include <linux/ethtool.h>
#include <linux/netdevice.h>
#include <linux/mlx4/driver.h>
#include "mlx4_en.h"
#include "en_port.h"

Go to the source code of this file.

Macros

#define EN_ETHTOOL_QP_ATTACH   (1ull << 63)
 
#define EN_ETHTOOL_SHORT_MASK   cpu_to_be16(0xffff)
 
#define EN_ETHTOOL_WORD_MASK   cpu_to_be32(0xffffffff)
 
#define NUM_MAIN_STATS   21
 
#define NUM_ALL_STATS   (NUM_MAIN_STATS + NUM_PORT_STATS + NUM_PKT_STATS + NUM_PERF_STATS)
 
#define all_zeros_or_all_ones(field)   ((field) == 0 || (field) == (__force typeof(field))-1)
 

Variables

struct ethtool_ops mlx4_en_ethtool_ops
 

Macro Definition Documentation

#define all_zeros_or_all_ones (   field)    ((field) == 0 || (field) == (__force typeof(field))-1)

Definition at line 606 of file en_ethtool.c.

#define EN_ETHTOOL_QP_ATTACH   (1ull << 63)

Definition at line 42 of file en_ethtool.c.

#define EN_ETHTOOL_SHORT_MASK   cpu_to_be16(0xffff)

Definition at line 43 of file en_ethtool.c.

#define EN_ETHTOOL_WORD_MASK   cpu_to_be32(0xffffffff)

Definition at line 44 of file en_ethtool.c.

#define NUM_ALL_STATS   (NUM_MAIN_STATS + NUM_PORT_STATS + NUM_PKT_STATS + NUM_PERF_STATS)

Definition at line 87 of file en_ethtool.c.

#define NUM_MAIN_STATS   21

Definition at line 86 of file en_ethtool.c.

Variable Documentation

struct ethtool_ops mlx4_en_ethtool_ops
Initial value:
= {
.get_drvinfo = mlx4_en_get_drvinfo,
.get_settings = mlx4_en_get_settings,
.set_settings = mlx4_en_set_settings,
.get_link = ethtool_op_get_link,
.get_strings = mlx4_en_get_strings,
.get_sset_count = mlx4_en_get_sset_count,
.get_ethtool_stats = mlx4_en_get_ethtool_stats,
.self_test = mlx4_en_self_test,
.get_wol = mlx4_en_get_wol,
.set_wol = mlx4_en_set_wol,
.get_msglevel = mlx4_en_get_msglevel,
.set_msglevel = mlx4_en_set_msglevel,
.get_coalesce = mlx4_en_get_coalesce,
.set_coalesce = mlx4_en_set_coalesce,
.get_pauseparam = mlx4_en_get_pauseparam,
.set_pauseparam = mlx4_en_set_pauseparam,
.get_ringparam = mlx4_en_get_ringparam,
.set_ringparam = mlx4_en_set_ringparam,
.get_rxnfc = mlx4_en_get_rxnfc,
.set_rxnfc = mlx4_en_set_rxnfc,
.get_rxfh_indir_size = mlx4_en_get_rxfh_indir_size,
.get_rxfh_indir = mlx4_en_get_rxfh_indir,
.set_rxfh_indir = mlx4_en_set_rxfh_indir,
}

Definition at line 1001 of file en_ethtool.c.