diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-12 17:27:40 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-12 17:27:40 -0400 |
| commit | f9da455b93f6ba076935b4ef4589f61e529ae046 (patch) | |
| tree | 3c4e69ce1ba1d6bf65915b97a76ca2172105b278 /include/uapi/linux/ethtool.h | |
| parent | 0e04c641b199435f3779454055f6a7de258ecdfc (diff) | |
| parent | e5eca6d41f53db48edd8cf88a3f59d2c30227f8e (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Pull networking updates from David Miller:
1) Seccomp BPF filters can now be JIT'd, from Alexei Starovoitov.
2) Multiqueue support in xen-netback and xen-netfront, from Andrew J
Benniston.
3) Allow tweaking of aggregation settings in cdc_ncm driver, from Bjørn
Mork.
4) BPF now has a "random" opcode, from Chema Gonzalez.
5) Add more BPF documentation and improve test framework, from Daniel
Borkmann.
6) Support TCP fastopen over ipv6, from Daniel Lee.
7) Add software TSO helper functions and use them to support software
TSO in mvneta and mv643xx_eth drivers. From Ezequiel Garcia.
8) Support software TSO in fec driver too, from Nimrod Andy.
9) Add Broadcom SYSTEMPORT driver, from Florian Fainelli.
10) Handle broadcasts more gracefully over macvlan when there are large
numbers of interfaces configured, from Herbert Xu.
11) Allow more control over fwmark used for non-socket based responses,
from Lorenzo Colitti.
12) Do TCP congestion window limiting based upon measurements, from Neal
Cardwell.
13) Support busy polling in SCTP, from Neal Horman.
14) Allow RSS key to be configured via ethtool, from Venkata Duvvuru.
15) Bridge promisc mode handling improvements from Vlad Yasevich.
16) Don't use inetpeer entries to implement ID generation any more, it
performs poorly, from Eric Dumazet.
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1522 commits)
rtnetlink: fix userspace API breakage for iproute2 < v3.9.0
tcp: fixing TLP's FIN recovery
net: fec: Add software TSO support
net: fec: Add Scatter/gather support
net: fec: Increase buffer descriptor entry number
net: fec: Factorize feature setting
net: fec: Enable IP header hardware checksum
net: fec: Factorize the .xmit transmit function
bridge: fix compile error when compiling without IPv6 support
bridge: fix smatch warning / potential null pointer dereference
via-rhine: fix full-duplex with autoneg disable
bnx2x: Enlarge the dorq threshold for VFs
bnx2x: Check for UNDI in uncommon branch
bnx2x: Fix 1G-baseT link
bnx2x: Fix link for KR with swapped polarity lane
sctp: Fix sk_ack_backlog wrap-around problem
net/core: Add VF link state control policy
net/fsl: xgmac_mdio is dependent on OF_MDIO
net/fsl: Make xgmac_mdio read error message useful
net_sched: drr: warn when qdisc is not work conserving
...
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 |
