* [RFC] ethtool: remove phys_id from ethtool_ops
@ 2011-04-09 0:08 Stephen Hemminger
2011-04-15 6:46 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2011-04-09 0:08 UTC (permalink / raw)
To: Ben Hutchings, David Miller; +Cc: netdev
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@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
@@ -767,12 +767,6 @@ 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.
- * @phys_id: Deprecated in favour of @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.
* @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.
@@ -858,7 +852,6 @@ 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 *,
struct ethtool_stats *, u64 *);
int (*begin)(struct net_device *);
--- a/net/core/ethtool.c 2011-04-08 17:00:33.259817585 -0700
+++ b/net/core/ethtool.c 2011-04-08 17:01:01.620092913 -0700
@@ -1623,7 +1623,7 @@ static int ethtool_phys_id(struct net_de
static bool busy;
int rc;
- if (!dev->ethtool_ops->set_phys_id && !dev->ethtool_ops->phys_id)
+ if (!dev->ethtool_ops->set_phys_id)
return -EOPNOTSUPP;
if (busy)
@@ -1632,10 +1632,6 @@ static int ethtool_phys_id(struct net_de
if (copy_from_user(&id, useraddr, sizeof(id)))
return -EFAULT;
- if (!dev->ethtool_ops->set_phys_id)
- /* Do it the old way */
- return dev->ethtool_ops->phys_id(dev, id.data);
-
rc = dev->ethtool_ops->set_phys_id(dev, ETHTOOL_ID_ACTIVE);
if (rc && rc != -EINVAL)
return rc;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC] ethtool: remove phys_id from ethtool_ops
2011-04-09 0:08 [RFC] ethtool: remove phys_id from ethtool_ops Stephen Hemminger
@ 2011-04-15 6:46 ` David Miller
2011-04-15 6:57 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2011-04-15 6:46 UTC (permalink / raw)
To: shemminger; +Cc: bhutchings, netdev
From: Stephen Hemminger <shemminger@vyatta.com>
Date: Fri, 8 Apr 2011 17:08:30 -0700
> 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@vyatta.com>
Since everything is now merged, I've applied this.
Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC] ethtool: remove phys_id from ethtool_ops
2011-04-15 6:46 ` David Miller
@ 2011-04-15 6:57 ` David Miller
2011-04-15 9:08 ` Jeff Kirsher
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2011-04-15 6:57 UTC (permalink / raw)
To: shemminger; +Cc: bhutchings, netdev
From: David Miller <davem@davemloft.net>
Date: Thu, 14 Apr 2011 23:46:54 -0700 (PDT)
> From: Stephen Hemminger <shemminger@vyatta.com>
> Date: Fri, 8 Apr 2011 17:08:30 -0700
>
>> 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@vyatta.com>
>
> Since everything is now merged, I've applied this.
Actually, it seems we're not ready yet, e1000 still refers
to phys_id.
Can someone take care of this?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC] ethtool: remove phys_id from ethtool_ops
2011-04-15 6:57 ` David Miller
@ 2011-04-15 9:08 ` Jeff Kirsher
0 siblings, 0 replies; 4+ messages in thread
From: Jeff Kirsher @ 2011-04-15 9:08 UTC (permalink / raw)
To: David Miller; +Cc: shemminger, bhutchings, netdev
On Thu, Apr 14, 2011 at 23:57, David Miller <davem@davemloft.net> wrote:
> From: David Miller <davem@davemloft.net>
> Date: Thu, 14 Apr 2011 23:46:54 -0700 (PDT)
>
>> From: Stephen Hemminger <shemminger@vyatta.com>
>> Date: Fri, 8 Apr 2011 17:08:30 -0700
>>
>>> 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@vyatta.com>
>>
>> Since everything is now merged, I've applied this.
>
> Actually, it seems we're not ready yet, e1000 still refers
> to phys_id.
>
> Can someone take care of this?
I know that most of our drivers still refer to phys_id, with Bruce's
recent patches to ethtool, we can finish up fixing the patches against
the Intel drivers. I will make every effort to have patches to you by
Monday/Tuesday.
--
Cheers,
Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-04-15 9:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-09 0:08 [RFC] ethtool: remove phys_id from ethtool_ops Stephen Hemminger
2011-04-15 6:46 ` David Miller
2011-04-15 6:57 ` David Miller
2011-04-15 9:08 ` Jeff Kirsher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).