Linux Kernel
3.7.1
|
#include <linux/ethtool.h>
#include <linux/netdevice.h>
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/crc32.h>
#include "bnx2x.h"
#include "bnx2x_cmn.h"
#include "bnx2x_dump.h"
#include "bnx2x_init.h"
Go to the source code of this file.
Enumerations | |
enum | { BNX2X_CHIP_E1_OFST = 0, BNX2X_CHIP_E1H_OFST, BNX2X_CHIP_E2_OFST, BNX2X_CHIP_E3_OFST, BNX2X_CHIP_E3B0_OFST, BNX2X_CHIP_MAX_OFST } |
Functions | |
void | bnx2x_set_ethtool_ops (struct net_device *netdev) |
#define BNX2X_CHIP_MASK_ALL ((1 << BNX2X_CHIP_MAX_OFST) - 1) |
Definition at line 1766 of file bnx2x_ethtool.c.
#define BNX2X_CHIP_MASK_E1 (1 << BNX2X_CHIP_E1_OFST) |
Definition at line 1760 of file bnx2x_ethtool.c.
#define BNX2X_CHIP_MASK_E1H (1 << BNX2X_CHIP_E1H_OFST) |
Definition at line 1761 of file bnx2x_ethtool.c.
#define BNX2X_CHIP_MASK_E1X (BNX2X_CHIP_MASK_E1 | BNX2X_CHIP_MASK_E1H) |
Definition at line 1767 of file bnx2x_ethtool.c.
#define BNX2X_CHIP_MASK_E2 (1 << BNX2X_CHIP_E2_OFST) |
Definition at line 1762 of file bnx2x_ethtool.c.
#define BNX2X_CHIP_MASK_E3 (1 << BNX2X_CHIP_E3_OFST) |
Definition at line 1763 of file bnx2x_ethtool.c.
#define BNX2X_CHIP_MASK_E3B0 (1 << BNX2X_CHIP_E3B0_OFST) |
Definition at line 1764 of file bnx2x_ethtool.c.
#define BNX2X_NUM_Q_STATS ARRAY_SIZE(bnx2x_q_stats_arr) |
Definition at line 68 of file bnx2x_ethtool.c.
#define BNX2X_NUM_STATS ARRAY_SIZE(bnx2x_stats_arr) |
Definition at line 184 of file bnx2x_ethtool.c.
Definition at line 1266 of file bnx2x_ethtool.c.
#define CRC32_RESIDUAL 0xdebb20e3 |
Definition at line 2297 of file bnx2x_ethtool.c.
#define IS_E1_ONLINE | ( | info | ) | (((info) & RI_E1_ONLINE) == RI_E1_ONLINE) |
Definition at line 599 of file bnx2x_ethtool.c.
#define IS_E1H_ONLINE | ( | info | ) | (((info) & RI_E1H_ONLINE) == RI_E1H_ONLINE) |
Definition at line 600 of file bnx2x_ethtool.c.
#define IS_E2_ONLINE | ( | info | ) | (((info) & RI_E2_ONLINE) == RI_E2_ONLINE) |
Definition at line 601 of file bnx2x_ethtool.c.
#define IS_E3_ONLINE | ( | info | ) | (((info) & RI_E3_ONLINE) == RI_E3_ONLINE) |
Definition at line 602 of file bnx2x_ethtool.c.
#define IS_E3B0_ONLINE | ( | info | ) | (((info) & RI_E3B0_ONLINE) == RI_E3B0_ONLINE) |
Definition at line 603 of file bnx2x_ethtool.c.
#define IS_FUNC_STAT | ( | i | ) | (bnx2x_stats_arr[i].flags & STATS_FLAGS_FUNC) |
Definition at line 2504 of file bnx2x_ethtool.c.
#define IS_MF_MODE_STAT | ( | bp | ) | (IS_MF(bp) && !(bp->msg_enable & BNX2X_MSG_STATS)) |
Definition at line 2505 of file bnx2x_ethtool.c.
#define IS_PORT_STAT | ( | i | ) | ((bnx2x_stats_arr[i].flags & STATS_FLAGS_BOTH) == STATS_FLAGS_PORT) |
Definition at line 2502 of file bnx2x_ethtool.c.
#define MAX_QUEUE_NAME_LEN 4 |
Definition at line 34 of file bnx2x_ethtool.c.
Definition at line 18 of file bnx2x_ethtool.c.
#define STATS_FLAGS_BOTH (STATS_FLAGS_FUNC | STATS_FLAGS_PORT) |
Definition at line 76 of file bnx2x_ethtool.c.
#define STATS_FLAGS_FUNC 2 |
Definition at line 75 of file bnx2x_ethtool.c.
#define STATS_FLAGS_PORT 1 |
Definition at line 74 of file bnx2x_ethtool.c.
anonymous enum |
BNX2X_CHIP_E1_OFST | |
BNX2X_CHIP_E1H_OFST | |
BNX2X_CHIP_E2_OFST | |
BNX2X_CHIP_E3_OFST | |
BNX2X_CHIP_E3B0_OFST | |
BNX2X_CHIP_MAX_OFST |
Definition at line 1751 of file bnx2x_ethtool.c.
void bnx2x_set_ethtool_ops | ( | struct net_device * | netdev | ) |
Definition at line 2994 of file bnx2x_ethtool.c.
u32 flags |
Definition at line 73 of file bnx2x_ethtool.c.
Definition at line 36 of file bnx2x_ethtool.c.
int size |
Definition at line 37 of file bnx2x_ethtool.c.
Definition at line 38 of file bnx2x_ethtool.c.