Hi Tobias!
Using the updated version of this patch, I'm running into problems with devices
using RT305X_ESW_VLAN_CONFIG_NONE.
In your previous patch
Date: Sat, 5 May 2012 22:26:58 +0200
Subject: [OpenWrt-Devel] [PATCH] ramips: Updated patch for ramips_esw.c
posted on this mailinglist, setting gave me transparent access to every
ethernet port without any VLAN tagging or untagging involved. This was very nice
for devices which got only 1 port anyway and users may want to connect them to a
tagged-port of managed switch.
However, using the new patch series, I end up with different default values when
using RT305X_ESW_VLAN_CONFIG_NONE and also using swconfig afterwards doesn't
allow me to change the configuration of VLAN 0 from "0t 1t 2t 3t 4t 5t 6t" to "0
1 2 3 4 5 6" in order to get the same configuration which previously worked
great.
What exactly is the intended behavior when setting RT305X_ESW_VLAN_CONFIG_NONE?
Should I set individual port_map s in the mach-*.c for the corresponding boards
instead of using RT305X_ESW_VLAN_CONFIG_NONE?
Using the old patch from 05/05/2012 (working):
root@OpenWrt:/# swconfig dev rt305x show
Global attributes:
enable_vlan: 0
alternate_vlan_disable: 0
Port 0:
disable: 0
doubletag: 1
en_vlan: 1
untag: 1
led: 0
lan: 1
recv_bad: 0
recv_good: 0
pvid: 0
link: port:0 link:down
Port 1:
disable: 0
doubletag: 1
en_vlan: 1
untag: 1
led: 0
lan: 1
recv_bad: 0
recv_good: 63
pvid: 0
link: port:1 link:up speed:100baseT full-duplex
Port 2:
disable: 0
doubletag: 1
en_vlan: 1
untag: 1
led: 0
lan: 1
recv_bad: 0
recv_good: 0
pvid: 0
link: port:2 link:down
Port 3:
disable: 0
doubletag: 1
en_vlan: 1
untag: 1
led: 0
lan: 1
recv_bad: 0
recv_good: 0
pvid: 0
link: port:3 link:down
Port 4:
disable: 0
doubletag: 1
en_vlan: 1
untag: 1
led: 0
lan: 1
recv_bad: 0
recv_good: 0
pvid: 0
link: port:4 link:down
Port 5:
disable: 0
doubletag: 1
en_vlan: 1
untag: 1
led: ???
lan: 1
recv_bad: 0
recv_good: 0
pvid: 0
link: port:5 link:down
Port 6:
disable: 0
doubletag: 1
en_vlan: 1
untag: 1
led: ???
lan: ???
recv_bad: ???
recv_good: ???
pvid: 0
link: port:6 link:up speed:1000baseT full-duplex
VLAN 0:
ports: 0 1 2 3 4 5 6
Using this new patch series (not working):
root@OpenWrt:/# swconfig dev rt305x show
Global attributes:
enable_vlan: 0
alternate_vlan_disable: 0
Port 0:
disable: 0
doubletag: 0
en_vlan: 0
untag: 0
led: 0
lan: 1
recv_bad: 0
recv_good: 0
pvid: 0
link: port:0 link:down
Port 1:
disable: 0
doubletag: 0
en_vlan: 0
untag: 0
led: 0
lan: 1
recv_bad: 0
recv_good: 0
pvid: 0
link: port:1 link:up speed:100baseT full-duplex
Port 2:
disable: 0
doubletag: 0
en_vlan: 0
untag: 0
led: 0
lan: 1
recv_bad: 0
recv_good: 0
pvid: 0
link: port:2 link:down
Port 3:
disable: 0
doubletag: 0
en_vlan: 0
untag: 0
led: 0
lan: 1
recv_bad: 0
recv_good: 0
pvid: 0
link: port:3 link:down
Port 4:
disable: 0
doubletag: 0
en_vlan: 0
untag: 0
led: 0
lan: 1
recv_bad: 0
recv_good: 0
pvid: 0
link: port:4 link:down
Port 5:
disable: 0
doubletag: 0
en_vlan: 0
untag: 0
led: ???
lan: 1
recv_bad: 0
recv_good: 0
pvid: 0
link: port:5 link:down
Port 6:
disable: 0
doubletag: 0
en_vlan: 0
untag: 0
led: ???
lan: ???
recv_bad: ???
recv_good: ???
pvid: 0
link: port:6 link:up speed:1000baseT full-duplex
VLAN 0:
ports: 0t 1t 2t 3t 4t 5t 6t
On 25/08/12 20:10, Tobias Diedrich wrote:
> Patches in this patch series:
>
> 1/5: ramips-esw-indent.patch
> Minor indentation cleanup
>
> 2/5: ramips-esw-swconfig.patch
> Add swconfig support to ramips_esw.c
>
> 3/5: ramips-esw-uci-defaults.patch
> Add support to uci network defaults
>
> 4/5: ramips-esw-cleanup.patch
> Keep vlan unconfigured by default and rely on uci defaults
>
> 5/5: ramips-esw-reg-rename.patch
> Rename POC registers
>
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel