aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/ethtool.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index 3350870001f..8a3338ceb43 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -14,6 +14,7 @@
14#define _LINUX_ETHTOOL_H 14#define _LINUX_ETHTOOL_H
15 15
16#include <linux/types.h> 16#include <linux/types.h>
17#include <linux/if_ether.h>
17 18
18/* This should work for both 32 and 64 bit userland. */ 19/* This should work for both 32 and 64 bit userland. */
19struct ethtool_cmd { 20struct ethtool_cmd {
@@ -391,6 +392,7 @@ struct ethtool_rx_flow_spec {
391 struct ethtool_ah_espip4_spec ah_ip4_spec; 392 struct ethtool_ah_espip4_spec ah_ip4_spec;
392 struct ethtool_ah_espip4_spec esp_ip4_spec; 393 struct ethtool_ah_espip4_spec esp_ip4_spec;
393 struct ethtool_usrip4_spec usr_ip4_spec; 394 struct ethtool_usrip4_spec usr_ip4_spec;
395 struct ethhdr ether_spec;
394 __u8 hdata[72]; 396 __u8 hdata[72];
395 } h_u, m_u; 397 } h_u, m_u;
396 __u64 ring_cookie; 398 __u64 ring_cookie;
@@ -483,6 +485,7 @@ struct ethtool_rx_ntuple_flow_spec {
483 struct ethtool_ah_espip4_spec ah_ip4_spec; 485 struct ethtool_ah_espip4_spec ah_ip4_spec;
484 struct ethtool_ah_espip4_spec esp_ip4_spec; 486 struct ethtool_ah_espip4_spec esp_ip4_spec;
485 struct ethtool_usrip4_spec usr_ip4_spec; 487 struct ethtool_usrip4_spec usr_ip4_spec;
488 struct ethhdr ether_spec;
486 __u8 hdata[72]; 489 __u8 hdata[72];
487 } h_u, m_u; 490 } h_u, m_u;
488 491
@@ -841,7 +844,7 @@ struct ethtool_ops {
841#define WAKE_MAGIC (1 << 5) 844#define WAKE_MAGIC (1 << 5)
842#define WAKE_MAGICSECURE (1 << 6) /* only meaningful if WAKE_MAGIC */ 845#define WAKE_MAGICSECURE (1 << 6) /* only meaningful if WAKE_MAGIC */
843 846
844/* L3-L4 network traffic flow types */ 847/* L2-L4 network traffic flow types */
845#define TCP_V4_FLOW 0x01 /* hash or spec (tcp_ip4_spec) */ 848#define TCP_V4_FLOW 0x01 /* hash or spec (tcp_ip4_spec) */
846#define UDP_V4_FLOW 0x02 /* hash or spec (udp_ip4_spec) */ 849#define UDP_V4_FLOW 0x02 /* hash or spec (udp_ip4_spec) */
847#define SCTP_V4_FLOW 0x03 /* hash or spec (sctp_ip4_spec) */ 850#define SCTP_V4_FLOW 0x03 /* hash or spec (sctp_ip4_spec) */
@@ -857,6 +860,7 @@ struct ethtool_ops {
857#define IP_USER_FLOW 0x0d /* spec only (usr_ip4_spec) */ 860#define IP_USER_FLOW 0x0d /* spec only (usr_ip4_spec) */
858#define IPV4_FLOW 0x10 /* hash only */ 861#define IPV4_FLOW 0x10 /* hash only */
859#define IPV6_FLOW 0x11 /* hash only */ 862#define IPV6_FLOW 0x11 /* hash only */
863#define ETHER_FLOW 0x12 /* spec only (ether_spec) */
860 864
861/* L3-L4 network traffic flow hash options */ 865/* L3-L4 network traffic flow hash options */
862#define RXH_L2DA (1 << 1) 866#define RXH_L2DA (1 << 1)