Do not mimic the vlan configuration in some devices like R8000 as the 
configuration is to be used with SW accelerators not available in OpenWRT. 
It is not possible to use the switch with vlan port configuration 0 1 2 3 5 7 
8, 
without making some huge modifications. When this configuration is used 
the packets received will be without vlan tag (identified by status field in 
gmac). This mode is used for an optimization which is not easily to be used 
within the current OpenWRT driver framework.

The patch below will modify the existing vlanport configuration so it will work 
on the r8000 with the existing opensource drivers.

diff --git a/target/linux/bcm53xx/base-files/etc/board.d/02_network 
b/target/linux/bcm53xx/base-files/etc/board.d/02_network
index 644d3d9..18958b8 100755
--- a/target/linux/bcm53xx/base-files/etc/board.d/02_network
+++ b/target/linux/bcm53xx/base-files/etc/board.d/02_network
@@ -23,10 +23,6 @@ if echo "$vlan1ports" | egrep -q "^1 2 3 4 5" && \
    echo "$vlan2ports" | egrep -q "^0 5"; then
        ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 5t"
        ucidef_add_switch_vlan "switch0" "2" "0 5t"
-elif echo "$vlan1ports" | egrep -q "^0 1 2 3 5 7 8" && \
-     echo "$vlan2ports" | egrep -q "^4 8"; then
-       ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5 7 8t"
-       ucidef_add_switch_vlan "switch0" "2" "4 8t"
 else
        ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t"
        ucidef_add_switch_vlan "switch0" "2" "4 5t"
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to