[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200901130731.20538.rgetz@blackfin.uclinux.org>
Date: Tue, 13 Jan 2009 07:31:20 -0500
From: Robin Getz <rgetz@...ckfin.uclinux.org>
To: "Florian Fainelli" <florian@...nwrt.org>
Cc: netdev@...r.kernel.org
Subject: Re: 802.1Q support?
On Mon 12 Jan 2009 15:43, Florian Fainelli pondered:
> Hi Robin,
>
> Le Monday 12 January 2009 17:48:26 Robin Getz, vous avez écrit :
> > I'm trying to understand the "standard" way to control a switch which
> > supports VLAN.
> >
> > Pick any one of:
> >
> > Infineon XWAY ADM6999 (eight-port 10/100 plus one MII)
> > http://www.infineon.com/cms/en/product/channel.html?channel=ff80808112ab681
> >d0112ab68ce8d0043
> >
> > Micrel MS8993M (2 port 10/100 plus one MII)
> > http://www.micrel.com/_PDF/Ethernet/ks8993m_pb.pdf
> >
> > Broadcom BCM5325E (five port 10/100 plus one MII)
> > http://www.broadcom.com/collateral/pb/5325E-PB00-R.pdf
> >
> > Realtek (five port 10/100 plus one MII)
> > http://www1.futureelectronics.com/doc/REALTEK%20SEMICONDUCTOR/Realtek%20Sem
> >iconductor%20RTL8306SD-GR.pdf
> >
> > They all have multiple MAC/PHYs which are exposed to the wire, and a single
> > MII interface - which normally connects directly to a SOC's MII/MAC.
> >
> > I would have thought that there would be separate drivers for these in the
> > phylib, but I didn't find anything that looked like it would work. (or
> > expose the right interface (all the vendor specific VLAN registers) so I
> > can program them properly from userspace)...
>
> You can check what we are doing in OpenWrt to be able to change the switch
> configuration. There is some work going on to interface switch drivers as PHY
> drivers. See :
>
> https://dev.openwrt.org/browser/trunk/target/linux/generic-2.6/patches-2.6.27/650-swconfig.patch
> https://dev.openwrt.org/browser/trunk/target/linux/generic-2.6/files/drivers/net/phy/
> https://dev.openwrt.org/browser/trunk/package/swconfig
Great - That looks like the way to go -- is there any plan in sending this
to mainline?
It looks like it has been in your tree for ~9 months - so I imagine it
is working pretty well for you?
> > It is possible to hack up the specific EMAC driver to do everything, but
> > that doesn't seem like the right way to do it...
>
> Yes, you can also do it that way, though most switches could be reached using
> a specific PHY address like how BCM5325 switches are connected to the MAC.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists