diff options
Diffstat (limited to 'include/uapi/linux/ethtool.h')
| -rw-r--r-- | include/uapi/linux/ethtool.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index e726340d1f8e..f246f3703ed8 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h | |||
| @@ -575,12 +575,25 @@ enum ethtool_test_flags { | |||
| 575 | ETH_TEST_FL_EXTERNAL_LB_DONE = (1 << 3), | 575 | ETH_TEST_FL_EXTERNAL_LB_DONE = (1 << 3), |
| 576 | }; | 576 | }; |
| 577 | 577 | ||
| 578 | /* for requesting NIC test and getting results*/ | 578 | /** |
| 579 | * struct ethtool_test - device self-test invocation | ||
| 580 | * @cmd: Command number = %ETHTOOL_TEST | ||
| 581 | * @flags: A bitmask of flags from &enum ethtool_test_flags. Some | ||
| 582 | * flags may be set by the user on entry; others may be set by | ||
| 583 | * the driver on return. | ||
| 584 | * @len: On return, the number of test results | ||
| 585 | * @data: Array of test results | ||
| 586 | * | ||
| 587 | * Users must use %ETHTOOL_GSSET_INFO or %ETHTOOL_GDRVINFO to find the | ||
| 588 | * number of test results that will be returned. They must allocate a | ||
| 589 | * buffer of the appropriate size (8 * number of results) immediately | ||
| 590 | * following this structure. | ||
| 591 | */ | ||
| 579 | struct ethtool_test { | 592 | struct ethtool_test { |
| 580 | __u32 cmd; /* ETHTOOL_TEST */ | 593 | __u32 cmd; |
| 581 | __u32 flags; /* ETH_TEST_FL_xxx */ | 594 | __u32 flags; |
| 582 | __u32 reserved; | 595 | __u32 reserved; |
| 583 | __u32 len; /* result length, in number of u64 elements */ | 596 | __u32 len; |
| 584 | __u64 data[0]; | 597 | __u64 data[0]; |
| 585 | }; | 598 | }; |
| 586 | 599 | ||
