[source] ramips: tag the CPU switch port

LEDE Commits lede-commits at lists.infradead.org
Sat Oct 15 02:06:36 PDT 2016


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/bbdf2ac305b797545ee0f663b7815c116e276b63

commit bbdf2ac305b797545ee0f663b7815c116e276b63
Author: Mathias Kresin <dev at kresin.me>
AuthorDate: Wed Oct 12 19:04:08 2016 +0200

    ramips: tag the CPU switch port
    
    With de5102651501e51c036f88fe9c4dbf6974e5158a the explicit tagging of
    the CPU port was removed. This leads to a not working default network
    config, with vlans enabled but disabled CPU tagging, for boards where
    all switch ports are having the same role.
    
    In case the ports are having different roles set, tagging is is set
    implicit for the CPU port by ucidef_add_switch().
    
    Signed-off-by: Mathias Kresin <dev at kresin.me>
---
 target/linux/ramips/base-files/etc/board.d/02_network | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 7eab5f2..b884373 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -24,7 +24,7 @@ ramips_setup_rt3x5x_vlans()
 			lanports="$port:lan $lanports"
 		fi
 	done
-	ucidef_add_switch "rt305x" $lanports $wanports "6 at eth0"
+	ucidef_add_switch "rt305x" $lanports $wanports "6t at eth0"
 }
 
 ramips_setup_interfaces()



More information about the lede-commits mailing list