ethtool: drop get_settings and set_settings callbacks
Since [gs]et_settings ethtool_ops callbacks have been deprecated in February 2016, all in tree NIC drivers have been converted to provide [gs]et_link_ksettings() and out of tree drivers have had enough time to do the same. Drop get_settings() and set_settings() and implement both ETHTOOL_[GS]SET and ETHTOOL_[GS]LINKSETTINGS only using [gs]et_link_ksettings(). Signed-off-by: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
6ce706a56c
commit
9b30049535
@@ -183,14 +183,6 @@ bool ethtool_convert_link_mode_to_legacy_u32(u32 *legacy_u32,
|
||||
|
||||
/**
|
||||
* struct ethtool_ops - optional netdev operations
|
||||
* @get_settings: DEPRECATED, use %get_link_ksettings/%set_link_ksettings
|
||||
* API. Get various device settings including Ethernet link
|
||||
* settings. The @cmd parameter is expected to have been cleared
|
||||
* before get_settings is called. Returns a negative error code
|
||||
* or zero.
|
||||
* @set_settings: DEPRECATED, use %get_link_ksettings/%set_link_ksettings
|
||||
* API. Set various device settings including Ethernet link
|
||||
* settings. Returns a negative error code or zero.
|
||||
* @get_drvinfo: Report driver/device information. Should only set the
|
||||
* @driver, @version, @fw_version and @bus_info fields. If not
|
||||
* implemented, the @driver and @bus_info fields will be filled in
|
||||
@@ -297,19 +289,16 @@ bool ethtool_convert_link_mode_to_legacy_u32(u32 *legacy_u32,
|
||||
* a TX queue has this number, return -EINVAL. If only a RX queue or a TX
|
||||
* queue has this number, ignore the inapplicable fields.
|
||||
* Returns a negative error code or zero.
|
||||
* @get_link_ksettings: When defined, takes precedence over the
|
||||
* %get_settings method. Get various device settings
|
||||
* including Ethernet link settings. The %cmd and
|
||||
* %link_mode_masks_nwords fields should be ignored (use
|
||||
* %__ETHTOOL_LINK_MODE_MASK_NBITS instead of the latter), any
|
||||
* change to them will be overwritten by kernel. Returns a
|
||||
* negative error code or zero.
|
||||
* @set_link_ksettings: When defined, takes precedence over the
|
||||
* %set_settings method. Set various device settings including
|
||||
* Ethernet link settings. The %cmd and %link_mode_masks_nwords
|
||||
* fields should be ignored (use %__ETHTOOL_LINK_MODE_MASK_NBITS
|
||||
* instead of the latter), any change to them will be overwritten
|
||||
* by kernel. Returns a negative error code or zero.
|
||||
* @get_link_ksettings: Get various device settings including Ethernet link
|
||||
* settings. The %cmd and %link_mode_masks_nwords fields should be
|
||||
* ignored (use %__ETHTOOL_LINK_MODE_MASK_NBITS instead of the latter),
|
||||
* any change to them will be overwritten by kernel. Returns a negative
|
||||
* error code or zero.
|
||||
* @set_link_ksettings: Set various device settings including Ethernet link
|
||||
* settings. The %cmd and %link_mode_masks_nwords fields should be
|
||||
* ignored (use %__ETHTOOL_LINK_MODE_MASK_NBITS instead of the latter),
|
||||
* any change to them will be overwritten by kernel. Returns a negative
|
||||
* error code or zero.
|
||||
* @get_fecparam: Get the network device Forward Error Correction parameters.
|
||||
* @set_fecparam: Set the network device Forward Error Correction parameters.
|
||||
* @get_ethtool_phy_stats: Return extended statistics about the PHY device.
|
||||
@@ -329,8 +318,6 @@ bool ethtool_convert_link_mode_to_legacy_u32(u32 *legacy_u32,
|
||||
* of the generic netdev features interface.
|
||||
*/
|
||||
struct ethtool_ops {
|
||||
int (*get_settings)(struct net_device *, struct ethtool_cmd *);
|
||||
int (*set_settings)(struct net_device *, struct ethtool_cmd *);
|
||||
void (*get_drvinfo)(struct net_device *, struct ethtool_drvinfo *);
|
||||
int (*get_regs_len)(struct net_device *);
|
||||
void (*get_regs)(struct net_device *, struct ethtool_regs *, void *);
|
||||
|
Reference in New Issue
Block a user