tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: please test: ethernet media-handling patch




To: tech-net%NetBSD.org@localhost, current-users%NetBSD.org@localhost

Subject: Re: please test: ethernet media-handling patch

From: David Young <dyoung%pobox.com@localhost>

Date: Thu, 10 Jan 2008 13:23:47 -0600


On Thu, Jan 10, 2008 at 12:04:00PM -0500, Perry E. Metzger wrote:
> 
> David Young <dyoung%pobox.com@localhost> 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@localhost      Urbana, IL * (217) 278-3933 ext 24



Follow-Ups:

Re: please test: ethernet media-handling patch
From: Perry E. Metzger


References:

please test: ethernet media-handling patch
From: David Young

Re: please test: ethernet media-handling patch
From: Perry E. Metzger




Prev by Date: Re: please test: ethernet media-handling patch

Next by Date: Re: please test: ethernet media-handling patch

Previous by Thread: Re: please test: ethernet media-handling patch

Next by Thread: Re: please test: ethernet media-handling patch

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index