Hi, I wonder what the current "words of wisdom" regarding VLAN configuration on the various embedded switches in OpenWRT (and maybe Linux in general) is, especially regarding "more than 15 VLANs".
I have recently been faced with a customer project where I needed to hand
over some stuff on VLAN ID 920, 930 and 940, which doesn't work "out of the
box" on an E3000 using DD-WRT - DD-WRT only knows about 15 VLANs, while
the switch in the E3000 (BCM53115) can do full 4k according to the marketing
blurb found in the web.
Now, before you tell me "this is not DD-WRT here", I know that ;-) - and I
already solved it there...
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=535915#535915
... basically this can be done by changing the "number of vlan" setting in
switch-robo.c from 16 to 1020, thus creating 1020 subdirs (yuck) in
/proc/switch/eth0/vlan/..., and then echo'ing the necessary port settings
in there. Since OpenWRT also uses switch-robo for some platforms, this
would apply here as well.
OTOH, this is seriously ugly if extended for full 4k VLANs - it wastes
a fair bit of memory in kernel space for stuff hardly ever required, and
I'm basically wondering
- how "switch stuff" is generally done in OpenWRT today
- whether there's other switches that can do more than 15 VLANs and that
are properly supported (and if yes, how that is done) - I have seen
a mail from Peter Lebbing regarding the infineon ADM6996 switch, using
a "swconfig" interface (that one seems to support "up to 15 VLANs in
use, but all 4k VLAN IDs are available" while the 53115 seems to
support "all 4k VLANs in use in parallel").
- what is this "swconfig" interface, and how is it used? It does not
seem to use the /proc/switch/ thing, but some other interface?
- is someone working on migrating the roboswitch stuff to "swconfig"?
(is this desirable?)
... basically trying to get some better understanding about the different
things involved here.
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]
fax: +49-89-35655025 [email protected]
pgpHkirlg9H4e.pgp
Description: PGP signature
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
