Subject: Re: Ethernet, MII & PHY, round two
To: Erik E. Fair <fair@clock.org>
From: Chuck Silvers <chuq@chuq.com>
List: tech-net
Date: 10/27/2002 09:08:55
... or if you're feeling ambitious, maybe combination of these:
to resolve multiple matches, select the first matching instance
that has link, or if none of them has link, then select the first
matching instance.

-Chuck


On Sun, Oct 27, 2002 at 09:03:43AM -0800, Chuck Silvers wrote:
> how about just selecting the first matching PHY instead of the last
> when there are multiple matches?
...
> > I suggested adding "instance 0" after the "media" statement in his
> > "ifconfig" line in /etc/rc.conf (or /etc/ifconfig.fxp0), but there
> > is another fix we could make: allow twisted-pair PHYs to refuse to
> > be selected when "link" is not present; I believe if I'm reading
> > the code right that there is a testable bit for it. I haven't checked
> > to see if the media change code is allowed to return errors, though.