All of lore.kernel.org
 help / color / mirror / Atom feed
* PHY down?
@ 2011-08-02  9:24 Joakim Tjernlund
  2011-08-02 11:01 ` Ben Hutchings
  0 siblings, 1 reply; 5+ messages in thread
From: Joakim Tjernlund @ 2011-08-02  9:24 UTC (permalink / raw)
  To: netdev


I must be missing something obvious but I cannot find how
to bring eth0's PHY down (link down) from user space.
Tried various settings with ethtool and ifconfig eth0 down but it didn't help.

 Jocke


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: PHY down?
  2011-08-02  9:24 PHY down? Joakim Tjernlund
@ 2011-08-02 11:01 ` Ben Hutchings
  2011-08-02 12:24   ` Joakim Tjernlund
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Hutchings @ 2011-08-02 11:01 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: netdev

On Tue, 2011-08-02 at 11:24 +0200, Joakim Tjernlund wrote:
> I must be missing something obvious but I cannot find how
> to bring eth0's PHY down (link down) from user space.
> Tried various settings with ethtool and ifconfig eth0 down but it didn't help.

If you configure an interface down, and if the interface is not used for
remote management, then some drivers will turn the PHY off.  But there
is no general way to control this explicitly.

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: PHY down?
  2011-08-02 11:01 ` Ben Hutchings
@ 2011-08-02 12:24   ` Joakim Tjernlund
  2011-08-02 12:38     ` Ben Hutchings
  2011-08-05  4:13     ` Edgar E. Iglesias
  0 siblings, 2 replies; 5+ messages in thread
From: Joakim Tjernlund @ 2011-08-02 12:24 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: netdev

Ben Hutchings <bhutchings@solarflare.com> wrote on 2011/08/02 13:01:08:
>
> On Tue, 2011-08-02 at 11:24 +0200, Joakim Tjernlund wrote:
> > I must be missing something obvious but I cannot find how
> > to bring eth0's PHY down (link down) from user space.
> > Tried various settings with ethtool and ifconfig eth0 down but it didn't help.
>
> If you configure an interface down, and if the interface is not used for
> remote management, then some drivers will turn the PHY off.  But there
> is no general way to control this explicitly.

OK, when to stop the PHY doesn't seem standardized. Seem logical to me
to also turn off the PHY when interface is configured down. Perhaps this could
be agreed upon?
What does remote management mean? How do I identify if the I/F is used for remote management?

 Jocke

>
> Ben.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: PHY down?
  2011-08-02 12:24   ` Joakim Tjernlund
@ 2011-08-02 12:38     ` Ben Hutchings
  2011-08-05  4:13     ` Edgar E. Iglesias
  1 sibling, 0 replies; 5+ messages in thread
From: Ben Hutchings @ 2011-08-02 12:38 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: netdev

On Tue, 2011-08-02 at 14:24 +0200, Joakim Tjernlund wrote:
> Ben Hutchings <bhutchings@solarflare.com> wrote on 2011/08/02 13:01:08:
> >
> > On Tue, 2011-08-02 at 11:24 +0200, Joakim Tjernlund wrote:
> > > I must be missing something obvious but I cannot find how
> > > to bring eth0's PHY down (link down) from user space.
> > > Tried various settings with ethtool and ifconfig eth0 down but it didn't help.
> >
> > If you configure an interface down, and if the interface is not used for
> > remote management, then some drivers will turn the PHY off.  But there
> > is no general way to control this explicitly.
> 
> OK, when to stop the PHY doesn't seem standardized. Seem logical to me
> to also turn off the PHY when interface is configured down. Perhaps this could
> be agreed upon?
> What does remote management mean? How do I identify if the I/F is used for remote management?

Most server motherboards have some sort of lights-out management (LOM)
faclity.  This is usually accessible when the server is switched on, as
well.  It may share a network port or ports with the host OS.

There is no general way to tell whether this is supported or enabled on
an interface, but it should be described in motherboard documentation or
the firmware configuration program (BIOS setup).

Ben.

-- 
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: PHY down?
  2011-08-02 12:24   ` Joakim Tjernlund
  2011-08-02 12:38     ` Ben Hutchings
@ 2011-08-05  4:13     ` Edgar E. Iglesias
  1 sibling, 0 replies; 5+ messages in thread
From: Edgar E. Iglesias @ 2011-08-05  4:13 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: Ben Hutchings, netdev

On Tue, Aug 02, 2011 at 02:24:04PM +0200, Joakim Tjernlund wrote:
> Ben Hutchings <bhutchings@solarflare.com> wrote on 2011/08/02 13:01:08:
> >
> > On Tue, 2011-08-02 at 11:24 +0200, Joakim Tjernlund wrote:
> > > I must be missing something obvious but I cannot find how
> > > to bring eth0's PHY down (link down) from user space.
> > > Tried various settings with ethtool and ifconfig eth0 down but it didn't help.
> >
> > If you configure an interface down, and if the interface is not used for
> > remote management, then some drivers will turn the PHY off.  But there
> > is no general way to control this explicitly.
> 
> OK, when to stop the PHY doesn't seem standardized. Seem logical to me
> to also turn off the PHY when interface is configured down. Perhaps this could
> be agreed upon?
> What does remote management mean? How do I identify if the I/F is used for remote management?
> 
>  Jocke

I'd rather see an explicit way of turning off the PHY. Downing the interface might be
useful without killing the PHY. I've seen PoE switches that kill you when you bring
the link down or reset the PHY after once beeing up, Down/up of interface might become
impossible in some environments if we would standardize on PHY off for interface down.

Maybe an explicit ethtool option?

Cheers

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-05  4:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-02  9:24 PHY down? Joakim Tjernlund
2011-08-02 11:01 ` Ben Hutchings
2011-08-02 12:24   ` Joakim Tjernlund
2011-08-02 12:38     ` Ben Hutchings
2011-08-05  4:13     ` Edgar E. Iglesias

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.