From patchwork Sat Jan 24 01:27:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudio Leite X-Patchwork-Id: 432353 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9C9131402A1 for ; Sat, 24 Jan 2015 12:28:04 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 9987F28BE14; Sat, 24 Jan 2015 02:25:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 1752D2800E7 for ; Sat, 24 Jan 2015 02:25:26 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .staticky. - helo: .smtp.rcn. - helo-domain: .rcn.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=1; rate: -5.5 Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 24 Jan 2015 02:25:24 +0100 (CET) X_CMAE_Category: , , X-CNFS-Analysis: v=2.0 cv=BrEfMPr5 c=1 sm=1 a=HrgCcJyu4PcbcS2xnSUKnQ==:17 a=8ndMLmUfAAAA:8 a=tdbsUNeBCQ-zhZsBOVYA:9 a=HrgCcJyu4PcbcS2xnSUKnQ==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: bGVpdGVjQHN0YXRpY2t5LmNvbQ== Authentication-Results: smtp01.rcn.cmh.synacor.com smtp.mail=leitec@staticky.com; spf=neutral; sender-id=neutral Authentication-Results: smtp01.rcn.cmh.synacor.com header.from=leitec@staticky.com; sender-id=neutral Received-SPF: neutral (smtp01.rcn.cmh.synacor.com: 216.15.24.249 is neither permitted nor denied by domain of staticky.com) Received: from [216.15.24.249] ([216.15.24.249:48311] 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 87/68-13177-115F2C45; Fri, 23 Jan 2015 20:27:45 -0500 From: Claudio Leite To: openwrt-devel@lists.openwrt.org Date: Fri, 23 Jan 2015 20:27:42 -0500 Message-Id: <1422062864-30133-1-git-send-email-leitec@staticky.com> X-Mailer: git-send-email 2.3.0.rc1 Subject: [OpenWrt-Devel] [PATCH 1/3] kirkwood: drop port-based VLAN setup X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Using port-based VLANs depends on a non-standard swconfig parameter, which compilcates things like LuCI that don't know about it. This patch changes the default to use 802.1q VLANs internally in the switch, but without tagging packets since we have two Ethernet ports. iperf3 tests indicate no difference in performance versus port-based VLANs when the CPU port is not using tags. Signed-off-by: Claudio Leite --- .../base-files/etc/uci-defaults/02_network | 25 ++++++---------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network index 994d7e8..540c8c3 100644 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network +++ b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network @@ -20,19 +20,6 @@ set network.lan6.reqprefix='no' EOF } -add_port_based_vlan() { - local device=$1 - local vlan=$2 - local ports=$3 - uci batch <