diff options
| author | Olof Johansson <olof@lixom.net> | 2014-07-19 17:59:07 -0400 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2014-07-19 17:59:07 -0400 |
| commit | 4e9816d012dbc28dc89559261c6ffbf8ffc440dd (patch) | |
| tree | dee9f8b31f3d6d2fb141541da88e1cc1329b017e /include/uapi/linux/ethtool.h | |
| parent | da98f44f27d81d7fe9a41f69af4fe08c18d13b56 (diff) | |
| parent | 1795cd9b3a91d4b5473c97f491d63892442212ab (diff) | |
Merge tag 'v3.16-rc5' into next/fixes-non-critical
Linux 3.16-rc5
Diffstat (limited to 'include/uapi/linux/ethtool.h')
| -rw-r--r-- | include/uapi/linux/ethtool.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index fd161e91b6d7..e3c7a719c76b 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h | |||
| @@ -847,6 +847,38 @@ struct ethtool_rxfh_indir { | |||
| 847 | }; | 847 | }; |
| 848 | 848 | ||
| 849 | /** | 849 | /** |
| 850 | * struct ethtool_rxfh - command to get/set RX flow hash indir or/and hash key. | ||
| 851 | * @cmd: Specific command number - %ETHTOOL_GRSSH or %ETHTOOL_SRSSH | ||
| 852 | * @rss_context: RSS context identifier. | ||
| 853 | * @indir_size: On entry, the array size of the user buffer for the | ||
| 854 | * indirection table, which may be zero, or (for %ETHTOOL_SRSSH), | ||
| 855 | * %ETH_RXFH_INDIR_NO_CHANGE. On return from %ETHTOOL_GRSSH, | ||
| 856 | * the array size of the hardware indirection table. | ||
| 857 | * @key_size: On entry, the array size of the user buffer for the hash key, | ||
| 858 | * which may be zero. On return from %ETHTOOL_GRSSH, the size of the | ||
| 859 | * hardware hash key. | ||
| 860 | * @rsvd: Reserved for future extensions. | ||
| 861 | * @rss_config: RX ring/queue index for each hash value i.e., indirection table | ||
| 862 | * of @indir_size __u32 elements, followed by hash key of @key_size | ||
| 863 | * bytes. | ||
| 864 | * | ||
| 865 | * For %ETHTOOL_GRSSH, a @indir_size and key_size of zero means that only the | ||
| 866 | * size should be returned. For %ETHTOOL_SRSSH, an @indir_size of | ||
| 867 | * %ETH_RXFH_INDIR_NO_CHANGE means that indir table setting is not requested | ||
| 868 | * and a @indir_size of zero means the indir table should be reset to default | ||
| 869 | * values. | ||
| 870 | */ | ||
| 871 | struct ethtool_rxfh { | ||
| 872 | __u32 cmd; | ||
| 873 | __u32 rss_context; | ||
| 874 | __u32 indir_size; | ||
| 875 | __u32 key_size; | ||
| 876 | __u32 rsvd[2]; | ||
| 877 | __u32 rss_config[0]; | ||
| 878 | }; | ||
| 879 | #define ETH_RXFH_INDIR_NO_CHANGE 0xffffffff | ||
| 880 | |||
| 881 | /** | ||
| 850 | * struct ethtool_rx_ntuple_flow_spec - specification for RX flow filter | 882 | * struct ethtool_rx_ntuple_flow_spec - specification for RX flow filter |
| 851 | * @flow_type: Type of match to perform, e.g. %TCP_V4_FLOW | 883 | * @flow_type: Type of match to perform, e.g. %TCP_V4_FLOW |
| 852 | * @h_u: Flow field values to match (dependent on @flow_type) | 884 | * @h_u: Flow field values to match (dependent on @flow_type) |
| @@ -1118,6 +1150,9 @@ enum ethtool_sfeatures_retval_bits { | |||
| 1118 | #define ETHTOOL_GEEE 0x00000044 /* Get EEE settings */ | 1150 | #define ETHTOOL_GEEE 0x00000044 /* Get EEE settings */ |
| 1119 | #define ETHTOOL_SEEE 0x00000045 /* Set EEE settings */ | 1151 | #define ETHTOOL_SEEE 0x00000045 /* Set EEE settings */ |
| 1120 | 1152 | ||
| 1153 | #define ETHTOOL_GRSSH 0x00000046 /* Get RX flow hash configuration */ | ||
| 1154 | #define ETHTOOL_SRSSH 0x00000047 /* Set RX flow hash configuration */ | ||
| 1155 | |||
| 1121 | /* compatibility with older code */ | 1156 | /* compatibility with older code */ |
| 1122 | #define SPARC_ETH_GSET ETHTOOL_GSET | 1157 | #define SPARC_ETH_GSET ETHTOOL_GSET |
| 1123 | #define SPARC_ETH_SSET ETHTOOL_SSET | 1158 | #define SPARC_ETH_SSET ETHTOOL_SSET |
