Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
ethtool.h File Reference
#include <linux/types.h>
#include <linux/if_ether.h>

Go to the source code of this file.

Data Structures

struct  ethtool_cmd
 
struct  ethtool_drvinfo
 
struct  ethtool_wolinfo
 
struct  ethtool_value
 
struct  ethtool_regs
 
struct  ethtool_eeprom
 
struct  ethtool_eee
 
struct  ethtool_modinfo
 
struct  ethtool_coalesce
 
struct  ethtool_ringparam
 
struct  ethtool_channels
 
struct  ethtool_pauseparam
 
struct  ethtool_gstrings
 
struct  ethtool_sset_info
 
struct  ethtool_test
 
struct  ethtool_stats
 
struct  ethtool_perm_addr
 
struct  ethtool_tcpip4_spec
 
struct  ethtool_ah_espip4_spec
 
struct  ethtool_usrip4_spec
 
union  ethtool_flow_union
 
struct  ethtool_flow_ext
 
struct  ethtool_rx_flow_spec
 
struct  ethtool_rxnfc
 
struct  ethtool_rxfh_indir
 
struct  ethtool_rx_ntuple_flow_spec
 
struct  ethtool_rx_ntuple
 
struct  ethtool_flash
 
struct  ethtool_dump
 
struct  ethtool_get_features_block
 
struct  ethtool_gfeatures
 
struct  ethtool_set_features_block
 
struct  ethtool_sfeatures
 
struct  ethtool_ts_info
 

Macros

#define ETH_MDIO_SUPPORTS_C22   1
 
#define ETH_MDIO_SUPPORTS_C45   2
 
#define ETHTOOL_FWVERS_LEN   32
 
#define ETHTOOL_BUSINFO_LEN   32
 
#define SOPASS_MAX   6
 
#define ETH_GSTRING_LEN   32
 
#define ETH_RX_NFC_IP4   1
 
#define ETHTOOL_RXNTUPLE_ACTION_DROP   (-1) /* drop packet */
 
#define ETHTOOL_RXNTUPLE_ACTION_CLEAR   (-2) /* clear filter */
 
#define ETHTOOL_FLASH_MAX_FILENAME   128
 
#define ETH_FW_DUMP_DISABLE   0
 
#define ETHTOOL_F_UNSUPPORTED   (1 << ETHTOOL_F_UNSUPPORTED__BIT)
 
#define ETHTOOL_F_WISH   (1 << ETHTOOL_F_WISH__BIT)
 
#define ETHTOOL_F_COMPAT   (1 << ETHTOOL_F_COMPAT__BIT)
 
#define ETHTOOL_GSET   0x00000001 /* Get settings. */
 
#define ETHTOOL_SSET   0x00000002 /* Set settings. */
 
#define ETHTOOL_GDRVINFO   0x00000003 /* Get driver info. */
 
#define ETHTOOL_GREGS   0x00000004 /* Get NIC registers. */
 
#define ETHTOOL_GWOL   0x00000005 /* Get wake-on-lan options. */
 
#define ETHTOOL_SWOL   0x00000006 /* Set wake-on-lan options. */
 
#define ETHTOOL_GMSGLVL   0x00000007 /* Get driver message level */
 
#define ETHTOOL_SMSGLVL   0x00000008 /* Set driver msg level. */
 
#define ETHTOOL_NWAY_RST   0x00000009 /* Restart autonegotiation. */
 
#define ETHTOOL_GLINK   0x0000000a
 
#define ETHTOOL_GEEPROM   0x0000000b /* Get EEPROM data */
 
#define ETHTOOL_SEEPROM   0x0000000c /* Set EEPROM data. */
 
#define ETHTOOL_GCOALESCE   0x0000000e /* Get coalesce config */
 
#define ETHTOOL_SCOALESCE   0x0000000f /* Set coalesce config. */
 
#define ETHTOOL_GRINGPARAM   0x00000010 /* Get ring parameters */
 
#define ETHTOOL_SRINGPARAM   0x00000011 /* Set ring parameters. */
 
#define ETHTOOL_GPAUSEPARAM   0x00000012 /* Get pause parameters */
 
#define ETHTOOL_SPAUSEPARAM   0x00000013 /* Set pause parameters. */
 
#define ETHTOOL_GRXCSUM   0x00000014 /* Get RX hw csum enable (ethtool_value) */
 
#define ETHTOOL_SRXCSUM   0x00000015 /* Set RX hw csum enable (ethtool_value) */
 
#define ETHTOOL_GTXCSUM   0x00000016 /* Get TX hw csum enable (ethtool_value) */
 
#define ETHTOOL_STXCSUM   0x00000017 /* Set TX hw csum enable (ethtool_value) */
 
#define ETHTOOL_GSG
 
#define ETHTOOL_SSG
 
#define ETHTOOL_TEST   0x0000001a /* execute NIC self-test. */
 
#define ETHTOOL_GSTRINGS   0x0000001b /* get specified string set */
 
#define ETHTOOL_PHYS_ID   0x0000001c /* identify the NIC */
 
#define ETHTOOL_GSTATS   0x0000001d /* get NIC-specific statistics */
 
#define ETHTOOL_GTSO   0x0000001e /* Get TSO enable (ethtool_value) */
 
#define ETHTOOL_STSO   0x0000001f /* Set TSO enable (ethtool_value) */
 
#define ETHTOOL_GPERMADDR   0x00000020 /* Get permanent hardware address */
 
#define ETHTOOL_GUFO   0x00000021 /* Get UFO enable (ethtool_value) */
 
#define ETHTOOL_SUFO   0x00000022 /* Set UFO enable (ethtool_value) */
 
#define ETHTOOL_GGSO   0x00000023 /* Get GSO enable (ethtool_value) */
 
#define ETHTOOL_SGSO   0x00000024 /* Set GSO enable (ethtool_value) */
 
#define ETHTOOL_GFLAGS   0x00000025 /* Get flags bitmap(ethtool_value) */
 
#define ETHTOOL_SFLAGS   0x00000026 /* Set flags bitmap(ethtool_value) */
 
#define ETHTOOL_GPFLAGS   0x00000027 /* Get driver-private flags bitmap */
 
#define ETHTOOL_SPFLAGS   0x00000028 /* Set driver-private flags bitmap */
 
#define ETHTOOL_GRXFH   0x00000029 /* Get RX flow hash configuration */
 
#define ETHTOOL_SRXFH   0x0000002a /* Set RX flow hash configuration */
 
#define ETHTOOL_GGRO   0x0000002b /* Get GRO enable (ethtool_value) */
 
#define ETHTOOL_SGRO   0x0000002c /* Set GRO enable (ethtool_value) */
 
#define ETHTOOL_GRXRINGS   0x0000002d /* Get RX rings available for LB */
 
#define ETHTOOL_GRXCLSRLCNT   0x0000002e /* Get RX class rule count */
 
#define ETHTOOL_GRXCLSRULE   0x0000002f /* Get RX classification rule */
 
#define ETHTOOL_GRXCLSRLALL   0x00000030 /* Get all RX classification rule */
 
#define ETHTOOL_SRXCLSRLDEL   0x00000031 /* Delete RX classification rule */
 
#define ETHTOOL_SRXCLSRLINS   0x00000032 /* Insert RX classification rule */
 
#define ETHTOOL_FLASHDEV   0x00000033 /* Flash firmware to device */
 
#define ETHTOOL_RESET   0x00000034 /* Reset hardware */
 
#define ETHTOOL_SRXNTUPLE   0x00000035 /* Add an n-tuple filter to device */
 
#define ETHTOOL_GRXNTUPLE   0x00000036 /* deprecated */
 
#define ETHTOOL_GSSET_INFO   0x00000037 /* Get string set info */
 
#define ETHTOOL_GRXFHINDIR   0x00000038 /* Get RX flow hash indir'n table */
 
#define ETHTOOL_SRXFHINDIR   0x00000039 /* Set RX flow hash indir'n table */
 
#define ETHTOOL_GFEATURES   0x0000003a /* Get device offload settings */
 
#define ETHTOOL_SFEATURES   0x0000003b /* Change device offload settings */
 
#define ETHTOOL_GCHANNELS   0x0000003c /* Get no of channels */
 
#define ETHTOOL_SCHANNELS   0x0000003d /* Set no of channels */
 
#define ETHTOOL_SET_DUMP   0x0000003e /* Set dump settings */
 
#define ETHTOOL_GET_DUMP_FLAG   0x0000003f /* Get dump settings */
 
#define ETHTOOL_GET_DUMP_DATA   0x00000040 /* Get dump data */
 
#define ETHTOOL_GET_TS_INFO   0x00000041 /* Get time stamping and PHC info */
 
#define ETHTOOL_GMODULEINFO   0x00000042 /* Get plug-in module information */
 
#define ETHTOOL_GMODULEEEPROM   0x00000043 /* Get plug-in module eeprom */
 
#define ETHTOOL_GEEE   0x00000044 /* Get EEE settings */
 
#define ETHTOOL_SEEE   0x00000045 /* Set EEE settings */
 
#define SPARC_ETH_GSET   ETHTOOL_GSET
 
#define SPARC_ETH_SSET   ETHTOOL_SSET
 
#define SUPPORTED_10baseT_Half   (1 << 0)
 
#define SUPPORTED_10baseT_Full   (1 << 1)
 
#define SUPPORTED_100baseT_Half   (1 << 2)
 
#define SUPPORTED_100baseT_Full   (1 << 3)
 
#define SUPPORTED_1000baseT_Half   (1 << 4)
 
#define SUPPORTED_1000baseT_Full   (1 << 5)
 
#define SUPPORTED_Autoneg   (1 << 6)
 
#define SUPPORTED_TP   (1 << 7)
 
#define SUPPORTED_AUI   (1 << 8)
 
#define SUPPORTED_MII   (1 << 9)
 
#define SUPPORTED_FIBRE   (1 << 10)
 
#define SUPPORTED_BNC   (1 << 11)
 
#define SUPPORTED_10000baseT_Full   (1 << 12)
 
#define SUPPORTED_Pause   (1 << 13)
 
#define SUPPORTED_Asym_Pause   (1 << 14)
 
#define SUPPORTED_2500baseX_Full   (1 << 15)
 
#define SUPPORTED_Backplane   (1 << 16)
 
#define SUPPORTED_1000baseKX_Full   (1 << 17)
 
#define SUPPORTED_10000baseKX4_Full   (1 << 18)
 
#define SUPPORTED_10000baseKR_Full   (1 << 19)
 
#define SUPPORTED_10000baseR_FEC   (1 << 20)
 
#define SUPPORTED_20000baseMLD2_Full   (1 << 21)
 
#define SUPPORTED_20000baseKR2_Full   (1 << 22)
 
#define SUPPORTED_40000baseKR4_Full   (1 << 23)
 
#define SUPPORTED_40000baseCR4_Full   (1 << 24)
 
#define SUPPORTED_40000baseSR4_Full   (1 << 25)
 
#define SUPPORTED_40000baseLR4_Full   (1 << 26)
 
#define ADVERTISED_10baseT_Half   (1 << 0)
 
#define ADVERTISED_10baseT_Full   (1 << 1)
 
#define ADVERTISED_100baseT_Half   (1 << 2)
 
#define ADVERTISED_100baseT_Full   (1 << 3)
 
#define ADVERTISED_1000baseT_Half   (1 << 4)
 
#define ADVERTISED_1000baseT_Full   (1 << 5)
 
#define ADVERTISED_Autoneg   (1 << 6)
 
#define ADVERTISED_TP   (1 << 7)
 
#define ADVERTISED_AUI   (1 << 8)
 
#define ADVERTISED_MII   (1 << 9)
 
#define ADVERTISED_FIBRE   (1 << 10)
 
#define ADVERTISED_BNC   (1 << 11)
 
#define ADVERTISED_10000baseT_Full   (1 << 12)
 
#define ADVERTISED_Pause   (1 << 13)
 
#define ADVERTISED_Asym_Pause   (1 << 14)
 
#define ADVERTISED_2500baseX_Full   (1 << 15)
 
#define ADVERTISED_Backplane   (1 << 16)
 
#define ADVERTISED_1000baseKX_Full   (1 << 17)
 
#define ADVERTISED_10000baseKX4_Full   (1 << 18)
 
#define ADVERTISED_10000baseKR_Full   (1 << 19)
 
#define ADVERTISED_10000baseR_FEC   (1 << 20)
 
#define ADVERTISED_20000baseMLD2_Full   (1 << 21)
 
#define ADVERTISED_20000baseKR2_Full   (1 << 22)
 
#define ADVERTISED_40000baseKR4_Full   (1 << 23)
 
#define ADVERTISED_40000baseCR4_Full   (1 << 24)
 
#define ADVERTISED_40000baseSR4_Full   (1 << 25)
 
#define ADVERTISED_40000baseLR4_Full   (1 << 26)
 
#define SPEED_10   10
 
#define SPEED_100   100
 
#define SPEED_1000   1000
 
#define SPEED_2500   2500
 
#define SPEED_10000   10000
 
#define SPEED_UNKNOWN   -1
 
#define DUPLEX_HALF   0x00
 
#define DUPLEX_FULL   0x01
 
#define DUPLEX_UNKNOWN   0xff
 
#define PORT_TP   0x00
 
#define PORT_AUI   0x01
 
#define PORT_MII   0x02
 
#define PORT_FIBRE   0x03
 
#define PORT_BNC   0x04
 
#define PORT_DA   0x05
 
#define PORT_NONE   0xef
 
#define PORT_OTHER   0xff
 
#define XCVR_INTERNAL   0x00
 
#define XCVR_EXTERNAL   0x01
 
#define XCVR_DUMMY1   0x02
 
#define XCVR_DUMMY2   0x03
 
#define XCVR_DUMMY3   0x04
 
#define AUTONEG_DISABLE   0x00
 
#define AUTONEG_ENABLE   0x01
 
#define ETH_TP_MDI_INVALID   0x00 /* status: unknown; control: unsupported */
 
#define ETH_TP_MDI   0x01 /* status: MDI; control: force MDI */
 
#define ETH_TP_MDI_X   0x02 /* status: MDI-X; control: force MDI-X */
 
#define ETH_TP_MDI_AUTO   0x03 /* control: auto-select */
 
#define WAKE_PHY   (1 << 0)
 
#define WAKE_UCAST   (1 << 1)
 
#define WAKE_MCAST   (1 << 2)
 
#define WAKE_BCAST   (1 << 3)
 
#define WAKE_ARP   (1 << 4)
 
#define WAKE_MAGIC   (1 << 5)
 
#define WAKE_MAGICSECURE   (1 << 6) /* only meaningful if WAKE_MAGIC */
 
#define TCP_V4_FLOW   0x01 /* hash or spec (tcp_ip4_spec) */
 
#define UDP_V4_FLOW   0x02 /* hash or spec (udp_ip4_spec) */
 
#define SCTP_V4_FLOW   0x03 /* hash or spec (sctp_ip4_spec) */
 
#define AH_ESP_V4_FLOW   0x04 /* hash only */
 
#define TCP_V6_FLOW   0x05 /* hash only */
 
#define UDP_V6_FLOW   0x06 /* hash only */
 
#define SCTP_V6_FLOW   0x07 /* hash only */
 
#define AH_ESP_V6_FLOW   0x08 /* hash only */
 
#define AH_V4_FLOW   0x09 /* hash or spec (ah_ip4_spec) */
 
#define ESP_V4_FLOW   0x0a /* hash or spec (esp_ip4_spec) */
 
#define AH_V6_FLOW   0x0b /* hash only */
 
#define ESP_V6_FLOW   0x0c /* hash only */
 
#define IP_USER_FLOW   0x0d /* spec only (usr_ip4_spec) */
 
#define IPV4_FLOW   0x10 /* hash only */
 
#define IPV6_FLOW   0x11 /* hash only */
 
#define ETHER_FLOW   0x12 /* spec only (ether_spec) */
 
#define FLOW_EXT   0x80000000
 
#define RXH_L2DA   (1 << 1)
 
#define RXH_VLAN   (1 << 2)
 
#define RXH_L3_PROTO   (1 << 3)
 
#define RXH_IP_SRC   (1 << 4)
 
#define RXH_IP_DST   (1 << 5)
 
#define RXH_L4_B_0_1   (1 << 6) /* src port in case of TCP/UDP/SCTP */
 
#define RXH_L4_B_2_3   (1 << 7) /* dst port in case of TCP/UDP/SCTP */
 
#define RXH_DISCARD   (1 << 31)
 
#define RX_CLS_FLOW_DISC   0xffffffffffffffffULL
 
#define RX_CLS_LOC_SPECIAL   0x80000000 /* flag */
 
#define RX_CLS_LOC_ANY   0xffffffff
 
#define RX_CLS_LOC_FIRST   0xfffffffe
 
#define RX_CLS_LOC_LAST   0xfffffffd
 
#define ETH_MODULE_SFF_8079   0x1
 
#define ETH_MODULE_SFF_8079_LEN   256
 
#define ETH_MODULE_SFF_8472   0x2
 
#define ETH_MODULE_SFF_8472_LEN   512
 
#define ETH_RESET_SHARED_SHIFT   16
 

Enumerations

enum  ethtool_stringset {
  ETH_SS_TEST = 0, ETH_SS_STATS, ETH_SS_PRIV_FLAGS, ETH_SS_NTUPLE_FILTERS,
  ETH_SS_FEATURES
}
 
enum  ethtool_test_flags { ETH_TEST_FL_OFFLINE = (1 << 0), ETH_TEST_FL_FAILED = (1 << 1), ETH_TEST_FL_EXTERNAL_LB = (1 << 2), ETH_TEST_FL_EXTERNAL_LB_DONE = (1 << 3) }
 
enum  ethtool_flags {
  ETH_FLAG_TXVLAN = (1 << 7), ETH_FLAG_RXVLAN = (1 << 8), ETH_FLAG_LRO = (1 << 15), ETH_FLAG_NTUPLE = (1 << 27),
  ETH_FLAG_RXHASH = (1 << 28)
}
 
enum  ethtool_flash_op_type { ETHTOOL_FLASH_ALL_REGIONS = 0 }
 
enum  ethtool_sfeatures_retval_bits { ETHTOOL_F_UNSUPPORTED__BIT, ETHTOOL_F_WISH__BIT, ETHTOOL_F_COMPAT__BIT }
 
enum  ethtool_reset_flags {
  ETH_RESET_MGMT = 1 << 0, ETH_RESET_IRQ = 1 << 1, ETH_RESET_DMA = 1 << 2, ETH_RESET_FILTER = 1 << 3,
  ETH_RESET_OFFLOAD = 1 << 4, ETH_RESET_MAC = 1 << 5, ETH_RESET_PHY = 1 << 6, ETH_RESET_RAM = 1 << 7,
  ETH_RESET_DEDICATED = 0x0000ffff, ETH_RESET_ALL = 0xffffffff
}
 

Macro Definition Documentation

#define ADVERTISED_10000baseKR_Full   (1 << 19)

Definition at line 941 of file ethtool.h.

#define ADVERTISED_10000baseKX4_Full   (1 << 18)

Definition at line 940 of file ethtool.h.

#define ADVERTISED_10000baseR_FEC   (1 << 20)

Definition at line 942 of file ethtool.h.

#define ADVERTISED_10000baseT_Full   (1 << 12)

Definition at line 934 of file ethtool.h.

#define ADVERTISED_1000baseKX_Full   (1 << 17)

Definition at line 939 of file ethtool.h.

#define ADVERTISED_1000baseT_Full   (1 << 5)

Definition at line 927 of file ethtool.h.

#define ADVERTISED_1000baseT_Half   (1 << 4)

Definition at line 926 of file ethtool.h.

#define ADVERTISED_100baseT_Full   (1 << 3)

Definition at line 925 of file ethtool.h.

#define ADVERTISED_100baseT_Half   (1 << 2)

Definition at line 924 of file ethtool.h.

#define ADVERTISED_10baseT_Full   (1 << 1)

Definition at line 923 of file ethtool.h.

#define ADVERTISED_10baseT_Half   (1 << 0)

Definition at line 922 of file ethtool.h.

#define ADVERTISED_20000baseKR2_Full   (1 << 22)

Definition at line 944 of file ethtool.h.

#define ADVERTISED_20000baseMLD2_Full   (1 << 21)

Definition at line 943 of file ethtool.h.

#define ADVERTISED_2500baseX_Full   (1 << 15)

Definition at line 937 of file ethtool.h.

#define ADVERTISED_40000baseCR4_Full   (1 << 24)

Definition at line 946 of file ethtool.h.

#define ADVERTISED_40000baseKR4_Full   (1 << 23)

Definition at line 945 of file ethtool.h.

#define ADVERTISED_40000baseLR4_Full   (1 << 26)

Definition at line 948 of file ethtool.h.

#define ADVERTISED_40000baseSR4_Full   (1 << 25)

Definition at line 947 of file ethtool.h.

#define ADVERTISED_Asym_Pause   (1 << 14)

Definition at line 936 of file ethtool.h.

#define ADVERTISED_AUI   (1 << 8)

Definition at line 930 of file ethtool.h.

#define ADVERTISED_Autoneg   (1 << 6)

Definition at line 928 of file ethtool.h.

#define ADVERTISED_Backplane   (1 << 16)

Definition at line 938 of file ethtool.h.

#define ADVERTISED_BNC   (1 << 11)

Definition at line 933 of file ethtool.h.

#define ADVERTISED_FIBRE   (1 << 10)

Definition at line 932 of file ethtool.h.

#define ADVERTISED_MII   (1 << 9)

Definition at line 931 of file ethtool.h.

#define ADVERTISED_Pause   (1 << 13)

Definition at line 935 of file ethtool.h.

#define ADVERTISED_TP   (1 << 7)

Definition at line 929 of file ethtool.h.

#define AH_ESP_V4_FLOW   0x04 /* hash only */

Definition at line 1013 of file ethtool.h.

#define AH_ESP_V6_FLOW   0x08 /* hash only */

Definition at line 1017 of file ethtool.h.

#define AH_V4_FLOW   0x09 /* hash or spec (ah_ip4_spec) */

Definition at line 1018 of file ethtool.h.

#define AH_V6_FLOW   0x0b /* hash only */

Definition at line 1020 of file ethtool.h.

#define AUTONEG_DISABLE   0x00

Definition at line 989 of file ethtool.h.

#define AUTONEG_ENABLE   0x01

Definition at line 990 of file ethtool.h.

#define DUPLEX_FULL   0x01

Definition at line 966 of file ethtool.h.

#define DUPLEX_HALF   0x00

Definition at line 965 of file ethtool.h.

#define DUPLEX_UNKNOWN   0xff

Definition at line 967 of file ethtool.h.

#define ESP_V4_FLOW   0x0a /* hash or spec (esp_ip4_spec) */

Definition at line 1019 of file ethtool.h.

#define ESP_V6_FLOW   0x0c /* hash only */

Definition at line 1021 of file ethtool.h.

#define ETH_FW_DUMP_DISABLE   0

struct ethtool_dump - used for retrieving, setting device dump : Command number - ETHTOOL_GET_DUMP_FLAG, ETHTOOL_GET_DUMP_DATA, or ETHTOOL_SET_DUMP

Version
: FW version of the dump, filled in by driver : driver dependent flag for dump setting, filled in by driver during get and filled in by ethtool for set operation. flag must be initialized by macro ETH_FW_DUMP_DISABLE value when firmware dump is disabled. : length of dump data, used as the length of the user buffer on entry to ETHTOOL_GET_DUMP_DATA and this is returned as dump length by driver for ETHTOOL_GET_DUMP_FLAG command : data collected for get dump data operation

Definition at line 694 of file ethtool.h.

#define ETH_GSTRING_LEN   32

Definition at line 351 of file ethtool.h.

#define ETH_MDIO_SUPPORTS_C22   1

Definition at line 71 of file ethtool.h.

#define ETH_MDIO_SUPPORTS_C45   2

Definition at line 78 of file ethtool.h.

#define ETH_MODULE_SFF_8079   0x1

Definition at line 1048 of file ethtool.h.

#define ETH_MODULE_SFF_8079_LEN   256

Definition at line 1049 of file ethtool.h.

#define ETH_MODULE_SFF_8472   0x2

Definition at line 1050 of file ethtool.h.

#define ETH_MODULE_SFF_8472_LEN   512

Definition at line 1051 of file ethtool.h.

#define ETH_RESET_SHARED_SHIFT   16

Definition at line 1081 of file ethtool.h.

#define ETH_RX_NFC_IP4   1

Definition at line 475 of file ethtool.h.

#define ETH_TP_MDI   0x01 /* status: MDI; control: force MDI */

Definition at line 996 of file ethtool.h.

#define ETH_TP_MDI_AUTO   0x03 /* control: auto-select */

Definition at line 998 of file ethtool.h.

#define ETH_TP_MDI_INVALID   0x00 /* status: unknown; control: unsupported */

Definition at line 995 of file ethtool.h.

#define ETH_TP_MDI_X   0x02 /* status: MDI-X; control: force MDI-X */

Definition at line 997 of file ethtool.h.

#define ETHER_FLOW   0x12 /* spec only (ether_spec) */

Definition at line 1025 of file ethtool.h.

#define ETHTOOL_BUSINFO_LEN   32

Definition at line 81 of file ethtool.h.

#define ETHTOOL_F_COMPAT   (1 << ETHTOOL_F_COMPAT__BIT)

Definition at line 811 of file ethtool.h.

#define ETHTOOL_F_UNSUPPORTED   (1 << ETHTOOL_F_UNSUPPORTED__BIT)

Definition at line 809 of file ethtool.h.

#define ETHTOOL_F_WISH   (1 << ETHTOOL_F_WISH__BIT)

Definition at line 810 of file ethtool.h.

#define ETHTOOL_FLASH_MAX_FILENAME   128

Definition at line 667 of file ethtool.h.

#define ETHTOOL_FLASHDEV   0x00000033 /* Flash firmware to device */

Definition at line 867 of file ethtool.h.

#define ETHTOOL_FWVERS_LEN   32

Definition at line 80 of file ethtool.h.

#define ETHTOOL_GCHANNELS   0x0000003c /* Get no of channels */

Definition at line 877 of file ethtool.h.

#define ETHTOOL_GCOALESCE   0x0000000e /* Get coalesce config */

Definition at line 829 of file ethtool.h.

#define ETHTOOL_GDRVINFO   0x00000003 /* Get driver info. */

Definition at line 817 of file ethtool.h.

#define ETHTOOL_GEEE   0x00000044 /* Get EEE settings */

Definition at line 885 of file ethtool.h.

#define ETHTOOL_GEEPROM   0x0000000b /* Get EEPROM data */

Definition at line 827 of file ethtool.h.

#define ETHTOOL_GET_DUMP_DATA   0x00000040 /* Get dump data */

Definition at line 881 of file ethtool.h.

#define ETHTOOL_GET_DUMP_FLAG   0x0000003f /* Get dump settings */

Definition at line 880 of file ethtool.h.

#define ETHTOOL_GET_TS_INFO   0x00000041 /* Get time stamping and PHC info */

Definition at line 882 of file ethtool.h.

#define ETHTOOL_GFEATURES   0x0000003a /* Get device offload settings */

Definition at line 875 of file ethtool.h.

#define ETHTOOL_GFLAGS   0x00000025 /* Get flags bitmap(ethtool_value) */

Definition at line 852 of file ethtool.h.

#define ETHTOOL_GGRO   0x0000002b /* Get GRO enable (ethtool_value) */

Definition at line 859 of file ethtool.h.

#define ETHTOOL_GGSO   0x00000023 /* Get GSO enable (ethtool_value) */

Definition at line 850 of file ethtool.h.

#define ETHTOOL_GLINK   0x0000000a

Definition at line 826 of file ethtool.h.

#define ETHTOOL_GMODULEEEPROM   0x00000043 /* Get plug-in module eeprom */

Definition at line 884 of file ethtool.h.

#define ETHTOOL_GMODULEINFO   0x00000042 /* Get plug-in module information */

Definition at line 883 of file ethtool.h.

#define ETHTOOL_GMSGLVL   0x00000007 /* Get driver message level */

Definition at line 821 of file ethtool.h.

#define ETHTOOL_GPAUSEPARAM   0x00000012 /* Get pause parameters */

Definition at line 833 of file ethtool.h.

#define ETHTOOL_GPERMADDR   0x00000020 /* Get permanent hardware address */

Definition at line 847 of file ethtool.h.

#define ETHTOOL_GPFLAGS   0x00000027 /* Get driver-private flags bitmap */

Definition at line 854 of file ethtool.h.

#define ETHTOOL_GREGS   0x00000004 /* Get NIC registers. */

Definition at line 818 of file ethtool.h.

#define ETHTOOL_GRINGPARAM   0x00000010 /* Get ring parameters */

Definition at line 831 of file ethtool.h.

#define ETHTOOL_GRXCLSRLALL   0x00000030 /* Get all RX classification rule */

Definition at line 864 of file ethtool.h.

#define ETHTOOL_GRXCLSRLCNT   0x0000002e /* Get RX class rule count */

Definition at line 862 of file ethtool.h.

#define ETHTOOL_GRXCLSRULE   0x0000002f /* Get RX classification rule */

Definition at line 863 of file ethtool.h.

#define ETHTOOL_GRXCSUM   0x00000014 /* Get RX hw csum enable (ethtool_value) */

Definition at line 835 of file ethtool.h.

#define ETHTOOL_GRXFH   0x00000029 /* Get RX flow hash configuration */

Definition at line 857 of file ethtool.h.

#define ETHTOOL_GRXFHINDIR   0x00000038 /* Get RX flow hash indir'n table */

Definition at line 872 of file ethtool.h.

#define ETHTOOL_GRXNTUPLE   0x00000036 /* deprecated */

Definition at line 870 of file ethtool.h.

#define ETHTOOL_GRXRINGS   0x0000002d /* Get RX rings available for LB */

Definition at line 861 of file ethtool.h.

#define ETHTOOL_GSET   0x00000001 /* Get settings. */

Definition at line 815 of file ethtool.h.

#define ETHTOOL_GSG
Value:
0x00000018 /* Get scatter-gather enable
* (ethtool_value) */

Definition at line 839 of file ethtool.h.

#define ETHTOOL_GSSET_INFO   0x00000037 /* Get string set info */

Definition at line 871 of file ethtool.h.

#define ETHTOOL_GSTATS   0x0000001d /* get NIC-specific statistics */

Definition at line 844 of file ethtool.h.

#define ETHTOOL_GSTRINGS   0x0000001b /* get specified string set */

Definition at line 842 of file ethtool.h.

#define ETHTOOL_GTSO   0x0000001e /* Get TSO enable (ethtool_value) */

Definition at line 845 of file ethtool.h.

#define ETHTOOL_GTXCSUM   0x00000016 /* Get TX hw csum enable (ethtool_value) */

Definition at line 837 of file ethtool.h.

#define ETHTOOL_GUFO   0x00000021 /* Get UFO enable (ethtool_value) */

Definition at line 848 of file ethtool.h.

#define ETHTOOL_GWOL   0x00000005 /* Get wake-on-lan options. */

Definition at line 819 of file ethtool.h.

#define ETHTOOL_NWAY_RST   0x00000009 /* Restart autonegotiation. */

Definition at line 823 of file ethtool.h.

#define ETHTOOL_PHYS_ID   0x0000001c /* identify the NIC */

Definition at line 843 of file ethtool.h.

#define ETHTOOL_RESET   0x00000034 /* Reset hardware */

Definition at line 868 of file ethtool.h.

#define ETHTOOL_RXNTUPLE_ACTION_CLEAR   (-2) /* clear filter */

Definition at line 654 of file ethtool.h.

#define ETHTOOL_RXNTUPLE_ACTION_DROP   (-1) /* drop packet */

Definition at line 653 of file ethtool.h.

#define ETHTOOL_SCHANNELS   0x0000003d /* Set no of channels */

Definition at line 878 of file ethtool.h.

#define ETHTOOL_SCOALESCE   0x0000000f /* Set coalesce config. */

Definition at line 830 of file ethtool.h.

#define ETHTOOL_SEEE   0x00000045 /* Set EEE settings */

Definition at line 886 of file ethtool.h.

#define ETHTOOL_SEEPROM   0x0000000c /* Set EEPROM data. */

Definition at line 828 of file ethtool.h.

#define ETHTOOL_SET_DUMP   0x0000003e /* Set dump settings */

Definition at line 879 of file ethtool.h.

#define ETHTOOL_SFEATURES   0x0000003b /* Change device offload settings */

Definition at line 876 of file ethtool.h.

#define ETHTOOL_SFLAGS   0x00000026 /* Set flags bitmap(ethtool_value) */

Definition at line 853 of file ethtool.h.

#define ETHTOOL_SGRO   0x0000002c /* Set GRO enable (ethtool_value) */

Definition at line 860 of file ethtool.h.

#define ETHTOOL_SGSO   0x00000024 /* Set GSO enable (ethtool_value) */

Definition at line 851 of file ethtool.h.

#define ETHTOOL_SMSGLVL   0x00000008 /* Set driver msg level. */

Definition at line 822 of file ethtool.h.

#define ETHTOOL_SPAUSEPARAM   0x00000013 /* Set pause parameters. */

Definition at line 834 of file ethtool.h.

#define ETHTOOL_SPFLAGS   0x00000028 /* Set driver-private flags bitmap */

Definition at line 855 of file ethtool.h.

#define ETHTOOL_SRINGPARAM   0x00000011 /* Set ring parameters. */

Definition at line 832 of file ethtool.h.

#define ETHTOOL_SRXCLSRLDEL   0x00000031 /* Delete RX classification rule */

Definition at line 865 of file ethtool.h.

#define ETHTOOL_SRXCLSRLINS   0x00000032 /* Insert RX classification rule */

Definition at line 866 of file ethtool.h.

#define ETHTOOL_SRXCSUM   0x00000015 /* Set RX hw csum enable (ethtool_value) */

Definition at line 836 of file ethtool.h.

#define ETHTOOL_SRXFH   0x0000002a /* Set RX flow hash configuration */

Definition at line 858 of file ethtool.h.

#define ETHTOOL_SRXFHINDIR   0x00000039 /* Set RX flow hash indir'n table */

Definition at line 873 of file ethtool.h.

#define ETHTOOL_SRXNTUPLE   0x00000035 /* Add an n-tuple filter to device */

Definition at line 869 of file ethtool.h.

#define ETHTOOL_SSET   0x00000002 /* Set settings. */

Definition at line 816 of file ethtool.h.

#define ETHTOOL_SSG
Value:
0x00000019 /* Set scatter-gather enable
* (ethtool_value). */

Definition at line 840 of file ethtool.h.

#define ETHTOOL_STSO   0x0000001f /* Set TSO enable (ethtool_value) */

Definition at line 846 of file ethtool.h.

#define ETHTOOL_STXCSUM   0x00000017 /* Set TX hw csum enable (ethtool_value) */

Definition at line 838 of file ethtool.h.

#define ETHTOOL_SUFO   0x00000022 /* Set UFO enable (ethtool_value) */

Definition at line 849 of file ethtool.h.

#define ETHTOOL_SWOL   0x00000006 /* Set wake-on-lan options. */

Definition at line 820 of file ethtool.h.

#define ETHTOOL_TEST   0x0000001a /* execute NIC self-test. */

Definition at line 841 of file ethtool.h.

#define FLOW_EXT   0x80000000

Definition at line 1027 of file ethtool.h.

#define IP_USER_FLOW   0x0d /* spec only (usr_ip4_spec) */

Definition at line 1022 of file ethtool.h.

#define IPV4_FLOW   0x10 /* hash only */

Definition at line 1023 of file ethtool.h.

#define IPV6_FLOW   0x11 /* hash only */

Definition at line 1024 of file ethtool.h.

#define PORT_AUI   0x01

Definition at line 971 of file ethtool.h.

#define PORT_BNC   0x04

Definition at line 974 of file ethtool.h.

#define PORT_DA   0x05

Definition at line 975 of file ethtool.h.

#define PORT_FIBRE   0x03

Definition at line 973 of file ethtool.h.

#define PORT_MII   0x02

Definition at line 972 of file ethtool.h.

#define PORT_NONE   0xef

Definition at line 976 of file ethtool.h.

#define PORT_OTHER   0xff

Definition at line 977 of file ethtool.h.

#define PORT_TP   0x00

Definition at line 970 of file ethtool.h.

#define RX_CLS_FLOW_DISC   0xffffffffffffffffULL

Definition at line 1039 of file ethtool.h.

#define RX_CLS_LOC_ANY   0xffffffff

Definition at line 1043 of file ethtool.h.

#define RX_CLS_LOC_FIRST   0xfffffffe

Definition at line 1044 of file ethtool.h.

#define RX_CLS_LOC_LAST   0xfffffffd

Definition at line 1045 of file ethtool.h.

#define RX_CLS_LOC_SPECIAL   0x80000000 /* flag */

Definition at line 1042 of file ethtool.h.

#define RXH_DISCARD   (1 << 31)

Definition at line 1037 of file ethtool.h.

#define RXH_IP_DST   (1 << 5)

Definition at line 1034 of file ethtool.h.

#define RXH_IP_SRC   (1 << 4)

Definition at line 1033 of file ethtool.h.

#define RXH_L2DA   (1 << 1)

Definition at line 1030 of file ethtool.h.

#define RXH_L3_PROTO   (1 << 3)

Definition at line 1032 of file ethtool.h.

#define RXH_L4_B_0_1   (1 << 6) /* src port in case of TCP/UDP/SCTP */

Definition at line 1035 of file ethtool.h.

#define RXH_L4_B_2_3   (1 << 7) /* dst port in case of TCP/UDP/SCTP */

Definition at line 1036 of file ethtool.h.

#define RXH_VLAN   (1 << 2)

Definition at line 1031 of file ethtool.h.

#define SCTP_V4_FLOW   0x03 /* hash or spec (sctp_ip4_spec) */

Definition at line 1012 of file ethtool.h.

#define SCTP_V6_FLOW   0x07 /* hash only */

Definition at line 1016 of file ethtool.h.

#define SOPASS_MAX   6

Definition at line 106 of file ethtool.h.

#define SPARC_ETH_GSET   ETHTOOL_GSET

Definition at line 889 of file ethtool.h.

#define SPARC_ETH_SSET   ETHTOOL_SSET

Definition at line 890 of file ethtool.h.

#define SPEED_10   10

Definition at line 957 of file ethtool.h.

#define SPEED_100   100

Definition at line 958 of file ethtool.h.

#define SPEED_1000   1000

Definition at line 959 of file ethtool.h.

#define SPEED_10000   10000

Definition at line 961 of file ethtool.h.

#define SPEED_2500   2500

Definition at line 960 of file ethtool.h.

#define SPEED_UNKNOWN   -1

Definition at line 962 of file ethtool.h.

#define SUPPORTED_10000baseKR_Full   (1 << 19)

Definition at line 912 of file ethtool.h.

#define SUPPORTED_10000baseKX4_Full   (1 << 18)

Definition at line 911 of file ethtool.h.

#define SUPPORTED_10000baseR_FEC   (1 << 20)

Definition at line 913 of file ethtool.h.

#define SUPPORTED_10000baseT_Full   (1 << 12)

Definition at line 905 of file ethtool.h.

#define SUPPORTED_1000baseKX_Full   (1 << 17)

Definition at line 910 of file ethtool.h.

#define SUPPORTED_1000baseT_Full   (1 << 5)

Definition at line 898 of file ethtool.h.

#define SUPPORTED_1000baseT_Half   (1 << 4)

Definition at line 897 of file ethtool.h.

#define SUPPORTED_100baseT_Full   (1 << 3)

Definition at line 896 of file ethtool.h.

#define SUPPORTED_100baseT_Half   (1 << 2)

Definition at line 895 of file ethtool.h.

#define SUPPORTED_10baseT_Full   (1 << 1)

Definition at line 894 of file ethtool.h.

#define SUPPORTED_10baseT_Half   (1 << 0)

Definition at line 893 of file ethtool.h.

#define SUPPORTED_20000baseKR2_Full   (1 << 22)

Definition at line 915 of file ethtool.h.

#define SUPPORTED_20000baseMLD2_Full   (1 << 21)

Definition at line 914 of file ethtool.h.

#define SUPPORTED_2500baseX_Full   (1 << 15)

Definition at line 908 of file ethtool.h.

#define SUPPORTED_40000baseCR4_Full   (1 << 24)

Definition at line 917 of file ethtool.h.

#define SUPPORTED_40000baseKR4_Full   (1 << 23)

Definition at line 916 of file ethtool.h.

#define SUPPORTED_40000baseLR4_Full   (1 << 26)

Definition at line 919 of file ethtool.h.

#define SUPPORTED_40000baseSR4_Full   (1 << 25)

Definition at line 918 of file ethtool.h.

#define SUPPORTED_Asym_Pause   (1 << 14)

Definition at line 907 of file ethtool.h.

#define SUPPORTED_AUI   (1 << 8)

Definition at line 901 of file ethtool.h.

#define SUPPORTED_Autoneg   (1 << 6)

Definition at line 899 of file ethtool.h.

#define SUPPORTED_Backplane   (1 << 16)

Definition at line 909 of file ethtool.h.

#define SUPPORTED_BNC   (1 << 11)

Definition at line 904 of file ethtool.h.

#define SUPPORTED_FIBRE   (1 << 10)

Definition at line 903 of file ethtool.h.

#define SUPPORTED_MII   (1 << 9)

Definition at line 902 of file ethtool.h.

#define SUPPORTED_Pause   (1 << 13)

Definition at line 906 of file ethtool.h.

#define SUPPORTED_TP   (1 << 7)

Definition at line 900 of file ethtool.h.

#define TCP_V4_FLOW   0x01 /* hash or spec (tcp_ip4_spec) */

Definition at line 1010 of file ethtool.h.

#define TCP_V6_FLOW   0x05 /* hash only */

Definition at line 1014 of file ethtool.h.

#define UDP_V4_FLOW   0x02 /* hash or spec (udp_ip4_spec) */

Definition at line 1011 of file ethtool.h.

#define UDP_V6_FLOW   0x06 /* hash only */

Definition at line 1015 of file ethtool.h.

#define WAKE_ARP   (1 << 4)

Definition at line 1005 of file ethtool.h.

#define WAKE_BCAST   (1 << 3)

Definition at line 1004 of file ethtool.h.

#define WAKE_MAGIC   (1 << 5)

Definition at line 1006 of file ethtool.h.

#define WAKE_MAGICSECURE   (1 << 6) /* only meaningful if WAKE_MAGIC */

Definition at line 1007 of file ethtool.h.

#define WAKE_MCAST   (1 << 2)

Definition at line 1003 of file ethtool.h.

#define WAKE_PHY   (1 << 0)

Definition at line 1001 of file ethtool.h.

#define WAKE_UCAST   (1 << 1)

Definition at line 1002 of file ethtool.h.

#define XCVR_DUMMY1   0x02

Definition at line 982 of file ethtool.h.

#define XCVR_DUMMY2   0x03

Definition at line 983 of file ethtool.h.

#define XCVR_DUMMY3   0x04

Definition at line 984 of file ethtool.h.

#define XCVR_EXTERNAL   0x01

Definition at line 981 of file ethtool.h.

#define XCVR_INTERNAL   0x00

Definition at line 980 of file ethtool.h.

Enumeration Type Documentation

Enumerator:
ETH_FLAG_TXVLAN 
ETH_FLAG_RXVLAN 
ETH_FLAG_LRO 
ETH_FLAG_NTUPLE 
ETH_FLAG_RXHASH 

Definition at line 427 of file ethtool.h.

Enumerator:
ETHTOOL_FLASH_ALL_REGIONS 

Definition at line 668 of file ethtool.h.

Enumerator:
ETH_RESET_MGMT 
ETH_RESET_IRQ 
ETH_RESET_DMA 
ETH_RESET_FILTER 
ETH_RESET_OFFLOAD 
ETH_RESET_MAC 
ETH_RESET_PHY 
ETH_RESET_RAM 
ETH_RESET_DEDICATED 
ETH_RESET_ALL 

Definition at line 1060 of file ethtool.h.

Enumerator:
ETHTOOL_F_UNSUPPORTED__BIT 
ETHTOOL_F_WISH__BIT 
ETHTOOL_F_COMPAT__BIT 

Definition at line 803 of file ethtool.h.

Enumerator:
ETH_SS_TEST 
ETH_SS_STATS 
ETH_SS_PRIV_FLAGS 
ETH_SS_NTUPLE_FILTERS 
ETH_SS_FEATURES 

Definition at line 352 of file ethtool.h.

enum ethtool_test_flags - flags definition of ethtool_test : if set perform online and offline tests, otherwise only online tests. : Driver set this flag if test fails. : Application request to perform external loopback test. : Driver performed the external loopback test

Enumerator:
ETH_TEST_FL_OFFLINE 
ETH_TEST_FL_FAILED 
ETH_TEST_FL_EXTERNAL_LB 
ETH_TEST_FL_EXTERNAL_LB_DONE 

Definition at line 389 of file ethtool.h.