diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ethtool.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index aac3e2eeb4fd..b297f288f6eb 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h | |||
| @@ -13,6 +13,9 @@ | |||
| 13 | #ifndef _LINUX_ETHTOOL_H | 13 | #ifndef _LINUX_ETHTOOL_H |
| 14 | #define _LINUX_ETHTOOL_H | 14 | #define _LINUX_ETHTOOL_H |
| 15 | 15 | ||
| 16 | #ifdef __KERNEL__ | ||
| 17 | #include <linux/compat.h> | ||
| 18 | #endif | ||
| 16 | #include <linux/types.h> | 19 | #include <linux/types.h> |
| 17 | #include <linux/if_ether.h> | 20 | #include <linux/if_ether.h> |
| 18 | 21 | ||
| @@ -450,6 +453,37 @@ struct ethtool_rxnfc { | |||
| 450 | __u32 rule_locs[0]; | 453 | __u32 rule_locs[0]; |
| 451 | }; | 454 | }; |
| 452 | 455 | ||
| 456 | #ifdef __KERNEL__ | ||
| 457 | #ifdef CONFIG_COMPAT | ||
| 458 | |||
| 459 | struct compat_ethtool_rx_flow_spec { | ||
| 460 | u32 flow_type; | ||
| 461 | union { | ||
| 462 | struct ethtool_tcpip4_spec tcp_ip4_spec; | ||
| 463 | struct ethtool_tcpip4_spec udp_ip4_spec; | ||
| 464 | struct ethtool_tcpip4_spec sctp_ip4_spec; | ||
| 465 | struct ethtool_ah_espip4_spec ah_ip4_spec; | ||
| 466 | struct ethtool_ah_espip4_spec esp_ip4_spec; | ||
| 467 | struct ethtool_usrip4_spec usr_ip4_spec; | ||
| 468 | struct ethhdr ether_spec; | ||
| 469 | u8 hdata[72]; | ||
| 470 | } h_u, m_u; | ||
| 471 | compat_u64 ring_cookie; | ||
| 472 | u32 location; | ||
| 473 | }; | ||
| 474 | |||
| 475 | struct compat_ethtool_rxnfc { | ||
| 476 | u32 cmd; | ||
| 477 | u32 flow_type; | ||
| 478 | compat_u64 data; | ||
| 479 | struct compat_ethtool_rx_flow_spec fs; | ||
| 480 | u32 rule_cnt; | ||
| 481 | u32 rule_locs[0]; | ||
| 482 | }; | ||
| 483 | |||
| 484 | #endif /* CONFIG_COMPAT */ | ||
| 485 | #endif /* __KERNEL__ */ | ||
| 486 | |||
| 453 | /** | 487 | /** |
| 454 | * struct ethtool_rxfh_indir - command to get or set RX flow hash indirection | 488 | * struct ethtool_rxfh_indir - command to get or set RX flow hash indirection |
| 455 | * @cmd: Specific command number - %ETHTOOL_GRXFHINDIR or %ETHTOOL_SRXFHINDIR | 489 | * @cmd: Specific command number - %ETHTOOL_GRXFHINDIR or %ETHTOOL_SRXFHINDIR |
