| @@ -26,6 +26,14 @@ · 25 unmodified lines |
| 26 | 26 | * have the same layout for 32-bit and 64-bit userland. |
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | +/* Note on reserved space. |
| 30 | + * Reserved fields must not be accessed directly by user space because |
| 31 | + * they may be replaced by a different field in the future. They must |
| 32 | + * be initialized to zero before making the request, e.g. via memset |
| 33 | + * of the entire structure or implicitly by not being set in a structure |
| 34 | + * initializer. |
| 35 | + */ |
| 36 | + |
| 29 | 37 | /** |
| 30 | 38 | * struct ethtool_cmd - DEPRECATED, link control and status |
| 31 | 39 | * This structure is DEPRECATED, please use struct ethtool_link_settings. |
| @@ -67,6 +75,7 @@ · 35 unmodified lines |
| 67 | 75 | * and other link features that the link partner advertised |
| 68 | 76 | * through autonegotiation; 0 if unknown or not applicable. |
| 69 | 77 | * Read-only. |
| 78 | + * @reserved: Reserved for future use; see the note on reserved space. |
| 70 | 79 | * |
| 71 | 80 | * The link speed in Mbps is split between @speed and @speed_hi. Use |
| 72 | 81 | * the ethtool_cmd_speed() and ethtool_cmd_speed_set() functions to |
| @@ -155,6 +164,7 @@ static inline __u32 ethtool_cmd_speed(const struct ethtool_cmd *ep) · 82 unmodified lines |
| 155 | 164 | * @bus_info: Device bus address. This should match the dev_name() |
| 156 | 165 | * string for the underlying bus device, if there is one. May be |
| 157 | 166 | * an empty string. |
| 167 | + * @reserved2: Reserved for future use; see the note on reserved space. |
| 158 | 168 | * @n_priv_flags: Number of flags valid for %ETHTOOL_GPFLAGS and |
| 159 | 169 | * %ETHTOOL_SPFLAGS commands; also the number of strings in the |
| 160 | 170 | * %ETH_SS_PRIV_FLAGS set |
| @@ -356,6 +366,7 @@ struct ethtool_eeprom { · 195 unmodified lines |
| 356 | 366 | * @tx_lpi_timer: Time in microseconds the interface delays prior to asserting |
| 357 | 367 | * its tx lpi (after reaching 'idle' state). Effective only when eee |
| 358 | 368 | * was negotiated and tx_lpi_enabled was set. |
| 369 | + * @reserved: Reserved for future use; see the note on reserved space. |
| 359 | 370 | */ |
| 360 | 371 | struct ethtool_eee { |
| 361 | 372 | __u32 cmd; |
| @@ -374,6 +385,7 @@ struct ethtool_eee { · 12 unmodified lines |
| 374 | 385 | * @cmd: %ETHTOOL_GMODULEINFO |
| 375 | 386 | * @type: Standard the module information conforms to %ETH_MODULE_SFF_xxxx |
| 376 | 387 | * @eeprom_len: Length of the eeprom |
| 388 | + * @reserved: Reserved for future use; see the note on reserved space. |
| 377 | 389 | * |
| 378 | 390 | * This structure is used to return the information to |
| 379 | 391 | * properly size memory for a subsequent call to %ETHTOOL_GMODULEEEPROM. |
| @@ -579,9 +591,7 @@ struct ethtool_pauseparam { · 199 unmodified lines |
| 579 | 591 | __u32 tx_pause; |
| 580 | 592 | }; |
| 581 | 593 | |
| 582 | | −/** |
| 583 | | − * enum ethtool_link_ext_state - link extended state |
| 584 | | − */ |
| 594 | +/* Link extended state */ |
| 585 | 595 | enum ethtool_link_ext_state { |
| 586 | 596 | ETHTOOL_LINK_EXT_STATE_AUTONEG, |
| 587 | 597 | ETHTOOL_LINK_EXT_STATE_LINK_TRAINING_FAILURE, |
| @@ -595,10 +605,7 @@ enum ethtool_link_ext_state { · 7 unmodified lines |
| 595 | 605 | ETHTOOL_LINK_EXT_STATE_OVERHEAT, |
| 596 | 606 | }; |
| 597 | 607 | |
| 598 | | −/** |
| 599 | | − * enum ethtool_link_ext_substate_autoneg - more information in addition to |
| 600 | | − * ETHTOOL_LINK_EXT_STATE_AUTONEG. |
| 601 | | − */ |
| 608 | +/* More information in addition to ETHTOOL_LINK_EXT_STATE_AUTONEG. */ |
| 602 | 609 | enum ethtool_link_ext_substate_autoneg { |
| 603 | 610 | ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED = 1, |
| 604 | 611 | ETHTOOL_LINK_EXT_SUBSTATE_AN_ACK_NOT_RECEIVED, |
| @@ -608,9 +615,7 @@ enum ethtool_link_ext_substate_autoneg { · 3 unmodified lines |
| 608 | 615 | ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_HCD, |
| 609 | 616 | }; |
| 610 | 617 | |
| 611 | | −/** |
| 612 | | − * enum ethtool_link_ext_substate_link_training - more information in addition to |
| 613 | | − * ETHTOOL_LINK_EXT_STATE_LINK_TRAINING_FAILURE. |
| 618 | +/* More information in addition to ETHTOOL_LINK_EXT_STATE_LINK_TRAINING_FAILURE. |
| 614 | 619 | */ |
| 615 | 620 | enum ethtool_link_ext_substate_link_training { |
| 616 | 621 | ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_FRAME_LOCK_NOT_ACQUIRED = 1, |
| @@ -619,9 +624,7 @@ enum ethtool_link_ext_substate_link_training { · 2 unmodified lines |
| 619 | 624 | ETHTOOL_LINK_EXT_SUBSTATE_LT_REMOTE_FAULT, |
| 620 | 625 | }; |
| 621 | 626 | |
| 622 | | −/** |
| 623 | | − * enum ethtool_link_ext_substate_logical_mismatch - more information in addition |
| 624 | | − * to ETHTOOL_LINK_EXT_STATE_LINK_LOGICAL_MISMATCH. |
| 627 | +/* More information in addition to ETHTOOL_LINK_EXT_STATE_LINK_LOGICAL_MISMATCH. |
| 625 | 628 | */ |
| 626 | 629 | enum ethtool_link_ext_substate_link_logical_mismatch { |
| 627 | 630 | ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_BLOCK_LOCK = 1, |
| @@ -631,19 +634,14 @@ enum ethtool_link_ext_substate_link_logical_mismatch { · 3 unmodified lines |
| 631 | 634 | ETHTOOL_LINK_EXT_SUBSTATE_LLM_RS_FEC_IS_NOT_LOCKED, |
| 632 | 635 | }; |
| 633 | 636 | |
| 634 | | −/** |
| 635 | | − * enum ethtool_link_ext_substate_bad_signal_integrity - more information in |
| 636 | | − * addition to ETHTOOL_LINK_EXT_STATE_BAD_SIGNAL_INTEGRITY. |
| 637 | +/* More information in addition to ETHTOOL_LINK_EXT_STATE_BAD_SIGNAL_INTEGRITY. |
| 637 | 638 | */ |
| 638 | 639 | enum ethtool_link_ext_substate_bad_signal_integrity { |
| 639 | 640 | ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS = 1, |
| 640 | 641 | ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE, |
| 641 | 642 | }; |
| 642 | 643 | |
| 643 | | −/** |
| 644 | | − * enum ethtool_link_ext_substate_cable_issue - more information in |
| 645 | | − * addition to ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE. |
| 646 | | − */ |
| 644 | +/* More information in addition to ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE. */ |
| 647 | 645 | enum ethtool_link_ext_substate_cable_issue { |
| 648 | 646 | ETHTOOL_LINK_EXT_SUBSTATE_CI_UNSUPPORTED_CABLE = 1, |
| 649 | 647 | ETHTOOL_LINK_EXT_SUBSTATE_CI_CABLE_TEST_FAILURE, |
| @@ -661,6 +659,7 @@ enum ethtool_link_ext_substate_cable_issue { · 11 unmodified lines |
| 661 | 659 | * now deprecated |
| 662 | 660 | * @ETH_SS_FEATURES: Device feature names |
| 663 | 661 | * @ETH_SS_RSS_HASH_FUNCS: RSS hush function names |
| 662 | + * @ETH_SS_TUNABLES: tunable names |
| 664 | 663 | * @ETH_SS_PHY_STATS: Statistic names, for use with %ETHTOOL_GPHYSTATS |
| 665 | 664 | * @ETH_SS_PHY_TUNABLES: PHY tunable names |
| 666 | 665 | * @ETH_SS_LINK_MODES: link mode names |
| @@ -670,6 +669,8 @@ enum ethtool_link_ext_substate_cable_issue { · 3 unmodified lines |
| 670 | 669 | * @ETH_SS_TS_TX_TYPES: timestamping Tx types |
| 671 | 670 | * @ETH_SS_TS_RX_FILTERS: timestamping Rx filters |
| 672 | 671 | * @ETH_SS_UDP_TUNNEL_TYPES: UDP tunnel types |
| 672 | + * |
| 673 | + * @ETH_SS_COUNT: number of defined string sets |
| 673 | 674 | */ |
| 674 | 675 | enum ethtool_stringset { |
| 675 | 676 | ETH_SS_TEST = 0, |
| @@ -715,6 +716,7 @@ struct ethtool_gstrings { · 39 unmodified lines |
| 715 | 716 | /** |
| 716 | 717 | * struct ethtool_sset_info - string set information |
| 717 | 718 | * @cmd: Command number = %ETHTOOL_GSSET_INFO |
| 719 | + * @reserved: Reserved for future use; see the note on reserved space. |
| 718 | 720 | * @sset_mask: On entry, a bitmask of string sets to query, with bits |
| 719 | 721 | * numbered according to &enum ethtool_stringset. On return, a |
| 720 | 722 | * bitmask of those string sets queried that are supported. |
| @@ -759,6 +761,7 @@ enum ethtool_test_flags { · 38 unmodified lines |
| 759 | 761 | * @flags: A bitmask of flags from &enum ethtool_test_flags. Some |
| 760 | 762 | * flags may be set by the user on entry; others may be set by |
| 761 | 763 | * the driver on return. |
| 764 | + * @reserved: Reserved for future use; see the note on reserved space. |
| 762 | 765 | * @len: On return, the number of test results |
| 763 | 766 | * @data: Array of test results |
| 764 | 767 | * |
| @@ -959,6 +962,7 @@ union ethtool_flow_union { · 194 unmodified lines |
| 959 | 962 | * @vlan_etype: VLAN EtherType |
| 960 | 963 | * @vlan_tci: VLAN tag control information |
| 961 | 964 | * @data: user defined data |
| 965 | + * @padding: Reserved for future use; see the note on reserved space. |
| 962 | 966 | * |
| 963 | 967 | * Note, @vlan_etype, @vlan_tci, and @data are only valid if %FLOW_EXT |
| 964 | 968 | * is set in &struct ethtool_rx_flow_spec @flow_type. |
| @@ -1134,7 +1138,8 @@ struct ethtool_rxfh_indir { · 169 unmodified lines |
| 1134 | 1138 | * hardware hash key. |
| 1135 | 1139 | * @hfunc: Defines the current RSS hash function used by HW (or to be set to). |
| 1136 | 1140 | * Valid values are one of the %ETH_RSS_HASH_*. |
| 1137 | | − * @rsvd: Reserved for future extensions. |
| 1141 | + * @rsvd8: Reserved for future use; see the note on reserved space. |
| 1142 | + * @rsvd32: Reserved for future use; see the note on reserved space. |
| 1138 | 1143 | * @rss_config: RX ring/queue index for each hash value i.e., indirection table |
| 1139 | 1144 | * of @indir_size __u32 elements, followed by hash key of @key_size |
| 1140 | 1145 | * bytes. |
| @@ -1302,7 +1307,9 @@ struct ethtool_sfeatures { · 161 unmodified lines |
| 1302 | 1307 | * @so_timestamping: bit mask of the sum of the supported SO_TIMESTAMPING flags |
| 1303 | 1308 | * @phc_index: device index of the associated PHC, or -1 if there is none |
| 1304 | 1309 | * @tx_types: bit mask of the supported hwtstamp_tx_types enumeration values |
| 1310 | + * @tx_reserved: Reserved for future use; see the note on reserved space. |
| 1305 | 1311 | * @rx_filters: bit mask of the supported hwtstamp_rx_filters enumeration values |
| 1312 | + * @rx_reserved: Reserved for future use; see the note on reserved space. |
| 1306 | 1313 | * |
| 1307 | 1314 | * The bits in the 'tx_types' and 'rx_filters' fields correspond to |
| 1308 | 1315 | * the 'hwtstamp_tx_types' and 'hwtstamp_rx_filters' enumeration values, |
| @@ -1981,6 +1988,11 @@ enum ethtool_reset_flags { · 672 unmodified lines |
| 1981 | 1988 | * autonegotiation; 0 if unknown or not applicable. Read-only. |
| 1982 | 1989 | * @transceiver: Used to distinguish different possible PHY types, |
| 1983 | 1990 | * reported consistently by PHYLIB. Read-only. |
| 1991 | + * @master_slave_cfg: Master/slave port mode. |
| 1992 | + * @master_slave_state: Master/slave port state. |
| 1993 | + * @reserved: Reserved for future use; see the note on reserved space. |
| 1994 | + * @reserved1: Reserved for future use; see the note on reserved space. |
| 1995 | + * @link_mode_masks: Variable length bitmaps. |
| 1984 | 1996 | * |
| 1985 | 1997 | * If autonegotiation is disabled, the speed and @duplex represent the |
| 1986 | 1998 | * fixed link mode and are writable if the driver supports multiple |