Subject: Re: please test: ethernet media-handling patch
To: None <tech-net@NetBSD.org, current-users@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: current-users
Date: 01/10/2008 13:23:47
On Thu, Jan 10, 2008 at 12:04:00PM -0500, Perry E. Metzger wrote:
>
> David Young <dyoung@pobox.com> writes:
> > nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
> > on a change of media
>
> So if I unplug a cable from a 100M network and put it into a 1G
> network, it won't reset and renegotiate? (Forgive me if I don't
> understand this properly.)
If the operator changes the media settings, then the NIC driver will call
ether_mediachange() -> mii_mediachg() -> (for each PHY) phy_service(,,
MII_MEDIACHG). A PHY service routine will reset and isolate its PHY
if it is no longer selected. If the PHY is selected, then the service
routine will either program the media type (e.g., IFM_ETHER|IFM_100_TX),
or begin auto-negotiation (IFM_AUTO).
Dave
--
David Young OJC Technologies
dyoung@ojctech.com Urbana, IL * (217) 278-3933 ext 24