diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ethtool.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index cca1c3de140d..f6f961fefbe5 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h | |||
@@ -253,6 +253,17 @@ struct ethtool_gstrings { | |||
253 | __u8 data[0]; | 253 | __u8 data[0]; |
254 | }; | 254 | }; |
255 | 255 | ||
256 | struct ethtool_sset_info { | ||
257 | __u32 cmd; /* ETHTOOL_GSSET_INFO */ | ||
258 | __u32 reserved; | ||
259 | __u64 sset_mask; /* input: each bit selects an sset to query */ | ||
260 | /* output: each bit a returned sset */ | ||
261 | __u32 data[0]; /* ETH_SS_xxx count, in order, based on bits | ||
262 | in sset_mask. One bit implies one | ||
263 | __u32, two bits implies two | ||
264 | __u32's, etc. */ | ||
265 | }; | ||
266 | |||
256 | enum ethtool_test_flags { | 267 | enum ethtool_test_flags { |
257 | ETH_TEST_FL_OFFLINE = (1 << 0), /* online / offline */ | 268 | ETH_TEST_FL_OFFLINE = (1 << 0), /* online / offline */ |
258 | ETH_TEST_FL_FAILED = (1 << 1), /* test passed / failed */ | 269 | ETH_TEST_FL_FAILED = (1 << 1), /* test passed / failed */ |
@@ -606,9 +617,9 @@ struct ethtool_ops { | |||
606 | #define ETHTOOL_SRXCLSRLINS 0x00000032 /* Insert RX classification rule */ | 617 | #define ETHTOOL_SRXCLSRLINS 0x00000032 /* Insert RX classification rule */ |
607 | #define ETHTOOL_FLASHDEV 0x00000033 /* Flash firmware to device */ | 618 | #define ETHTOOL_FLASHDEV 0x00000033 /* Flash firmware to device */ |
608 | #define ETHTOOL_RESET 0x00000034 /* Reset hardware */ | 619 | #define ETHTOOL_RESET 0x00000034 /* Reset hardware */ |
609 | 620 | #define ETHTOOL_SRXNTUPLE 0x00000035 /* Add an n-tuple filter to device */ | |
610 | #define ETHTOOL_SRXNTUPLE 0x00000035 /* Add an n-tuple filter to device */ | 621 | #define ETHTOOL_GRXNTUPLE 0x00000036 /* Get n-tuple filters from device */ |
611 | #define ETHTOOL_GRXNTUPLE 0x00000036 /* Get n-tuple filters from device */ | 622 | #define ETHTOOL_GSSET_INFO 0x00000037 /* Get string set info */ |
612 | 623 | ||
613 | /* compatibility with older code */ | 624 | /* compatibility with older code */ |
614 | #define SPARC_ETH_GSET ETHTOOL_GSET | 625 | #define SPARC_ETH_GSET ETHTOOL_GSET |