Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 May 2011 13:18:28 +0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        freebsd-hackers@freebsd.org, Marius Strobl <marius@alchemy.franken.de>, Luiz Otavio O Souzau <loos.br@gmail.com>, Damjan Marion <damjan.marion@gmail.com>
Subject:   Re: Embedded switch instead of stadard PHY
Message-ID:  <BANLkTinufYEmd086GZpG1n%2B871X3sJJB_g@mail.gmail.com>
In-Reply-To: <9B3FEB02-B71C-412B-BB7E-31A236021CDD@bsdimp.com>
References:  <34CF3ED0-52BC-4D0E-922A-FE26F624E77F@gmail.com> <20110508131643.GA23650@alchemy.franken.de> <E75586A5-ADD9-462A-A86D-73C112C24F02@gmail.com> <9B3FEB02-B71C-412B-BB7E-31A236021CDD@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11 May 2011 01:01, Warner Losh <imp@bsdimp.com> wrote:

> Most switches are on the PHY bus, so you can program their registers. =A0=
Many are on the PHY bus multiple times. =A0Once for the real(ish) PHY they =
provide and once for the switch registers they expose (for some, "twice" me=
ans up to 4 times). =A0Some are just nuts.

This is unfortunately why we need to have real drivers for the switch
PHY chips, rather than treating them as generic PHYs. :/

> It would be nice if there was a way for a device's MII routine to control=
 enumeration of the PHY bus. =A0This would allow us to convert the rlswitch=
 device in the tree to one of these. =A0That way, it could 'filter' out the=
 PHYs addresses that are intended to be like traditional PHYs from the addr=
esses that are intended to be used for switch management.
>
> We likely should also have a switch interface that one can tweak via ifco=
nfig. =A0I'd like that to be an explicit goal of this work, even if others =
do it.
>
> However, that's a big ticket item. =A0 I kinda like the 'let us put a few=
 of these in the tree with kludges then refactor' model, but worry we end u=
p without the refactoring...

If others commit to shoehorning in the PHY driver work and expose the
basic guts via sysctl, I'll commit to doing a review and tidyup in a
few months. This includes looking at how to take the set of switch
PHYs and L3 routing/filtering that we support and figure out how to
expose it in a sensible manner.

So who's willing to step up and do that? Luiz? Would you be willing to
take your existing switch PHY code and just expose the state via
sysctl? Let's get something into -HEAD.


Adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTinufYEmd086GZpG1n%2B871X3sJJB_g>