/* * ethtool.h: Defines for Linux ethtool. * * Copyright (C) 1998 David S. Miller (davem@redhat.com) * Copyright 2001 Jeff Garzik <jgarzik@pobox.com> * Portions Copyright 2001 Sun Microsystems (thockin@sun.com) * Portions Copyright 2002 Intel (eli.kupermann@intel.com, * christopher.leech@intel.com, * scott.feldman@intel.com) * Portions Copyright (C) Sun Microsystems 2008 */ #ifndef _LINUX_ETHTOOL_H #define _LINUX_ETHTOOL_H #include <linux/bitmap.h> #include <linux/compat.h> #include <uapi/linux/ethtool.h> #ifdef CONFIG_COMPAT struct compat_ethtool_rx_flow_spec { u32 flow_type; union ethtool_flow_union h_u; struct ethtool_flow_ext h_ext; union ethtool_flow_union m_u; struct ethtool_flow_ext m_ext; compat_u64 ring_cookie; u32 location; }; struct compat_ethtool_rxnfc { u32 cmd; u32 flow_type; compat_u64 data; struct compat_ethtool_rx_flow_spec fs; u32 rule_cnt; u32 rule_locs[0]; }; #endif /* CONFIG_COMPAT */ #include <linux/rculist.h> /** * enum ethtool_phys_id_state - indicator state for physical identification * @ETHTOOL_ID_INACTIVE: Physical ID indicator should be deactivated * @ETHTOOL_ID_ACTIVE: Physical ID indicator should be activated * @ETHTOOL_ID_ON: LED should be turned on (used iff %ETHTOOL_ID_ACTIVE * is not supported) * @ETHTOOL_ID_OFF: LED should be turned off (used iff %ETHTOOL_ID_ACTIVE * is not supported) */ enum ethtool_phys_id_state { ETHTOOL_ID_INACTIVE, ETHTOOL_ID_ACTIVE, ETHTOOL_ID_ON, ETHTOOL_ID_OFF }; enum { ETH_RSS_HASH_TOP_BIT, /* Configurable RSS hash function - Toeplitz */ ETH_RSS_HASH_XOR_BIT, /* Configurable RSS hash function - Xor */ /* * Add your fresh new hash function bits above and remember to update * rss_hash_func_strings[] in ethtool.c */ ETH_RSS_HASH_FUNCS_COUNT }; #define __ETH_RSS_HASH_BIT(bit) ((u32)1 << (bit)) #define __ETH_RSS_HASH(name) __ETH_RSS_HASH_BIT(ETH_RSS_HASH_##name##_BIT) #define ETH_RSS_HASH_TOP __ETH_RSS_HASH(TOP) #define ETH_RSS_HASH_XOR __ETH_RSS_HASH(XOR) #define ETH_RSS_HASH_UNKNOWN 0 #define ETH_RSS_HASH_NO_CHANGE 0 struct net_device; /* Some generic methods drivers may use in their ethtool_ops */ u32 ethtool_op_get_link(struct net_device *dev); int ethtool_op_get_ts_info(struct net_device *dev, struct ethtool_ts_info *eti); /** * ethtool_rxfh_indir_default - get default value for RX flow hash indirection * @index: Index in RX flow hash indirection table * @n_rx_rings: Number of RX rings to use * * This function provides the default policy for RX flow hash indirection. */
static inline u32 ethtool_rxfh_indir_default(u32 index, u32 n_rx_rings) { return index % n_rx_rings; }Contributors
| Person | Tokens | Prop | Commits | CommitProp | |
| david howells | david howells | 10 | 55.56% | 1 | 50.00% |
| brandon philips | brandon philips | 8 | 44.44% | 1 | 50.00% |
| Total | 18 | 100.00% | 2 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp | |
| david howells | david howells | 584 | 52.05% | 1 | 3.45% |
| david decotigny | david decotigny | 132 | 11.76% | 1 | 3.45% |
| jeff garzik | jeff garzik | 124 | 11.05% | 2 | 6.90% |
| eyal perry | eyal perry | 50 | 4.46% | 1 | 3.45% |
| venkat duvvuru | venkat duvvuru | 45 | 4.01% | 1 | 3.45% |
| govindarajulu varadarajan | govindarajulu varadarajan | 39 | 3.48% | 1 | 3.45% |
| kan liang | kan liang | 34 | 3.03% | 2 | 6.90% |
| philippe reynes | philippe reynes | 27 | 2.41% | 1 | 3.45% |
| pre-git | pre-git | 23 | 2.05% | 2 | 6.90% |
| ben hutchings | ben hutchings | 19 | 1.69% | 6 | 20.69% |
| brandon philips | brandon philips | 12 | 1.07% | 1 | 3.45% |
| scott feldman | scott feldman | 10 | 0.89% | 1 | 3.45% |
| peter p waskiewicz | peter p waskiewicz | 7 | 0.62% | 1 | 3.45% |
| santwona behera | santwona behera | 6 | 0.53% | 1 | 3.45% |
| linus torvalds | linus torvalds | 4 | 0.36% | 3 | 10.34% |
| michal miroslaw | michal miroslaw | 2 | 0.18% | 1 | 3.45% |
| alexander duyck | alexander duyck | 2 | 0.18% | 1 | 3.45% |
| chaitanya lala | chaitanya lala | 1 | 0.09% | 1 | 3.45% |
| ajit khaparde | ajit khaparde | 1 | 0.09% | 1 | 3.45% |
| Total | 1122 | 100.00% | 29 | 100.00% |