[source] ar71xx: fix vlan settings for some boards

LEDE Commits lede-commits at lists.infradead.org
Mon Feb 20 00:33:29 PST 2017


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/3ee793f6011f2364306b843de9d655a02502174d

commit 3ee793f6011f2364306b843de9d655a02502174d
Author: Weijie Gao <hackpascal at gmail.com>
AuthorDate: Sat Feb 18 22:32:49 2017 +0800

    ar71xx: fix vlan settings for some boards
    
    For AR71XX devices, GMAC1 always connects port 0 of the built-in switch,
    as the CPU port.
    
    This patch sets correct vlan for some devices with wrong settings:
    a) mark port 0 as CPU port, tagged
    b) reverse port order, marking these ports untagged
    
    Signed-off-by: Weijie Gao <hackpascal at gmail.com>
---
 target/linux/ar71xx/base-files/etc/board.d/02_network | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 95faea0..e08d7dd 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -305,7 +305,7 @@ ar71xx_setup_interfaces()
 	wpn824n)
 		ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
 		ucidef_add_switch "switch0" \
-			"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4 at eth1"
+			"0 at eth1" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4"
 		;;
 	dir-825-b1|\
 	nbg460n_550n_550nh|\



More information about the lede-commits mailing list