]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add per-port vlan support for the AR8327.
authoradrian <adrian@FreeBSD.org>
Sun, 8 Mar 2015 21:59:03 +0000 (21:59 +0000)
committeradrian <adrian@FreeBSD.org>
Sun, 8 Mar 2015 21:59:03 +0000 (21:59 +0000)
commit64169d7b6b8533f177e1853ca169bb28d75cea56
tree42f6855d5e492ceb3bde07da5d13d6d33674c9a7
parent73a716f42de3e217d697b2e8299dcfb61be4cdbb
Add per-port vlan support for the AR8327.

All the per-port support is really doing is applying a port visibility
mask to each of the switchports.  Everything still look like a single
portgroup (vlan id 1), but the per-port visibility mask is modified.

Whilst I'm here, also add some initial dot1q support - the pvid stuff
is doing the right thing, but it's not useful without the rest of
the VLAN table programming.

It's enough for me to be able to use the LAN/WAN port distinction
on the AP135, where there isn't (for now!) a dedicated PHY for the
"WAN" port.

Tested:

* AP135, QCA9558 SoC + AR8327 switch
sys/dev/etherswitch/arswitch/arswitch.c
sys/dev/etherswitch/arswitch/arswitch_8327.c
sys/dev/etherswitch/arswitch/arswitch_vlans.c
sys/dev/etherswitch/arswitch/arswitch_vlans.h
sys/dev/etherswitch/arswitch/arswitchreg.h
sys/dev/etherswitch/arswitch/arswitchvar.h