9 Apr 2011 02:08
[RFC] ethtool: remove phys_id from ethtool_ops
Stephen Hemminger <shemminger <at> vyatta.com>
2011-04-09 00:08:30 GMT
2011-04-09 00:08:30 GMT
Hold this patch until after the Intel and Qlogic driver
changes are merged into net-next. Patches have been submitted
but still waiting for vendor.
After that all the upstream kernel drivers now use phys_id,
and the old ethtool_ops interface (phys_id) can be removed.
Signed-off-by: Stephen Hemminger <shemminger <at> vyatta.com>
--- a/include/linux/ethtool.h 2011-04-08 16:59:55.691452941 -0700
+++ b/include/linux/ethtool.h 2011-04-08 17:00:26.135748450 -0700
<at> <at> -767,12 +767,6 <at> <at> bool ethtool_invalid_flags(struct net_de
* the indicator accordingly. Finally, it is called with the argument
* %ETHTOOL_ID_INACTIVE and must deactivate the indicator. Returns a
* negative error code or zero.
- * <at> phys_id: Deprecated in favour of <at> set_phys_id.
- * Identify the physical device, e.g. by flashing an LED
- * attached to it until interrupted by a signal or the given time
- * (in seconds) elapses. If the given time is zero, use a default
- * time limit. Returns a negative error code or zero. Being
- * interrupted by a signal is not an error.
* <at> get_ethtool_stats: Return extended statistics about the device.
* This is only useful if the device maintains statistics not
* included in &struct rtnl_link_stats64.
<at> <at> -858,7 +852,6 <at> <at> struct ethtool_ops {
void (*self_test)(struct net_device *, struct ethtool_test *, u64 *);
void (*get_strings)(struct net_device *, u32 stringset, u8 *);
int (*set_phys_id)(struct net_device *, enum ethtool_phys_id_state);
- int (*phys_id)(struct net_device *, u32);
void (*get_ethtool_stats)(struct net_device *,
(Continue reading)
RSS Feed