aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-04-12 20:11:25 +0000
committerRafał Miłecki <zajec5@gmail.com>2015-04-12 20:11:25 +0000
commit77c75e6fa3a6b12ffdb5e14f6b8357c0d0e99aa7 (patch)
treebba308beeffb875350e3b81b8b7e0ca10173e57d /target
parent06ac2f5c74308807f9222ee43f2c81c341792072 (diff)
downloadupstream-77c75e6fa3a6b12ffdb5e14f6b8357c0d0e99aa7.tar.gz
upstream-77c75e6fa3a6b12ffdb5e14f6b8357c0d0e99aa7.tar.bz2
upstream-77c75e6fa3a6b12ffdb5e14f6b8357c0d0e99aa7.zip
bcm53xx: try to handle Netgear R8000 VLANs config
It seems to have few ports connected to CPU (only for CPU sending data?) as part of "SMP dual core 3 GMAC setup" feature. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45403
Diffstat (limited to 'target')
-rw-r--r--target/linux/bcm53xx/base-files/etc/uci-defaults/02_network7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/base-files/etc/uci-defaults/02_network b/target/linux/bcm53xx/base-files/etc/uci-defaults/02_network
index 5886bd2d98..9ffb427d1c 100644
--- a/target/linux/bcm53xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/bcm53xx/base-files/etc/uci-defaults/02_network
@@ -20,7 +20,14 @@ 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
+ # This also handles some funcy (e.g. R6250) configs like:
+ # vlan1ports=3 2 1 0 5*
+ # vlan2ports=4 5u
ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t"
ucidef_add_switch_vlan "switch0" "2" "4 5t"
fi