From patchwork Sat May 21 22:34:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudio Leite X-Patchwork-Id: 624885 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rC0811c97z9t3k for ; Sun, 22 May 2016 08:38:24 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b4FTj-00042F-J9; Sat, 21 May 2016 22:34:39 +0000 Received: from smtp.rcn.com ([69.168.97.78]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b4FTg-00041Y-UU for lede-dev@lists.infradead.org; Sat, 21 May 2016 22:34:38 +0000 X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=QcgkhYTv c=1 sm=1 tr=0 a=JPNCCzK+ivcT0U7pFP7F+w==:117 a=JPNCCzK+ivcT0U7pFP7F+w==:17 a=8ndMLmUfAAAA:8 a=FsPJY8yFnk-mOoeuTHcA:9 a=PhvIUrA0IG2YWzqWZOrr:22 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: bGVpdGVjQHN0YXRpY2t5LmNvbQ== Authentication-Results: smtp02.rcn.cmh.synacor.com header.from=leitec@staticky.com; sender-id=softfail Authentication-Results: smtp02.rcn.cmh.synacor.com smtp.mail=leitec@staticky.com; spf=softfail; sender-id=softfail Received-SPF: softfail (smtp02.rcn.cmh.synacor.com: transitional domain staticky.com does not designate 216.15.17.139 as permitted sender) Received: from [216.15.17.139] ([216.15.17.139:42901] helo=dirk.lan.staticky.com) by smtp.rcn.com (envelope-from ) (ecelerity 3.6.2.43620 r(Platform:3.6.2.0)) with ESMTP id B0/CE-32696-362E0475; Sat, 21 May 2016 18:34:12 -0400 From: Claudio Leite To: openwrt-devel@lists.openwrt.org, lede-dev@lists.infradead.org Date: Sat, 21 May 2016 18:34:03 -0400 Message-Id: <1463870043-21947-1-git-send-email-leitec@staticky.com> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160521_153437_066188_CDEE91F6 X-CRM114-Status: UNSURE ( 4.05 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [69.168.97.78 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: [LEDE-DEV] [PATCH RESEND] mvebu: configure switch on WRT1200AC and WRT1900ACv2/S X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Also collapses the three identical configurations into one block. Signed-off-by: Claudio Leite --- target/linux/mvebu/base-files/etc/board.d/02_network | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/target/linux/mvebu/base-files/etc/board.d/02_network b/target/linux/mvebu/base-files/etc/board.d/02_network index f81d0ac..8f633c9 100755 --- a/target/linux/mvebu/base-files/etc/board.d/02_network +++ b/target/linux/mvebu/base-files/etc/board.d/02_network @@ -11,14 +11,12 @@ board_config_update board=$(mvebu_board_name) case "$board" in -armada-385-linksys-caiman) - ucidef_set_interfaces_lan_wan "eth1" "eth0" - ;; -armada-385-linksys-cobra) - ucidef_set_interfaces_lan_wan "eth1" "eth0" - ;; +armada-385-linksys-caiman|\ +armada-385-linksys-cobra|\ armada-385-linksys-shelby) ucidef_set_interfaces_lan_wan "eth1" "eth0" + ucidef_add_switch "switch0" \ + "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "6@eth1" "4:wan" "5@eth0" ;; armada-xp-linksys-mamba) ucidef_set_interfaces_lan_wan "eth0" "eth1"