Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1160832imm; Wed, 23 May 2018 11:13:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqbfg/bs4Vmw/vkYdUNsk27yw1O+oDi9beHpHqRsnexBpEDvzhpvGrdvngb0YBKERFN+TxJ X-Received: by 2002:a17:902:a9c1:: with SMTP id b1-v6mr4029218plr.181.1527099224520; Wed, 23 May 2018 11:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527099224; cv=none; d=google.com; s=arc-20160816; b=xD1y5jofcXvApuwiNmNvgeofWmzVpcdw19imhQrhrGbMcdmcH8c8kSehG9zwV1rt4k zHAZGAAlxAw+Q39074QEBSak81WK0pP4eZKc1ZKQF+tN4nf2TTqBlFyDMZeOOaM0hyn8 23NzFByUBbBGBz/VUnDIL+Hoc0Pj8y0x0+bJRRjpcHcy2KyTN/l/zgpbxLuY73GKsIbc DEocWAehqOXFeB9wU74j5YnFk0ncoObsUTcuWJwVcXNeuT/q5XqbLZ0nDByw2FzuyFig 6RfDiuWs3+NceAPUzEX3wirFxUBlVB2cf9iuFQ34cbYFYLrp7U3fRnx3Q2bgeplbUzGO ldpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:cc:from:references:to:subject:dkim-signature:dkim-filter :arc-authentication-results; bh=ojfmu1l7rDeXa4Y/pAF9tAy2AR0Y1LmicyuFXr5mSuY=; b=lu4D1pN9OdqqMbfBrHMtyYZzasLNwl/o3fyIxPqEbDV8INXFnbc9gcc2gs2MRK+lkt hkY37rVvNVLK0KeNuQufcZgeUfmXb7Ug9DMPFUbexUjxC0o4AiRkqgmPGFwDBBTVIR5f wktMOhmFheKYpyOlrRlom2glntI9j4hPGTxzRcVy3UeaIhKol47PxiH3mjbXsAA6BLO4 gZ+T8VLNnDS2yAtyI22TdN9bFGZIOTVZbJ3kKBmE+awGWPVcygzrwwBITyNHvM8RH5VV FgRmmcD/wlvEO2sAOFvMTOHPMXsLkSkzdut2l/IDALt97CKawM34SMx1ieo9Tt+t2xIb ntvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wiesinger.com header.s=default header.b=LIYPLkpR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10-v6si14822636pgq.472.2018.05.23.11.13.29; Wed, 23 May 2018 11:13:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@wiesinger.com header.s=default header.b=LIYPLkpR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754879AbeEWSLy (ORCPT + 99 others); Wed, 23 May 2018 14:11:54 -0400 Received: from vps01.wiesinger.com ([46.36.37.179]:36164 "EHLO vps01.wiesinger.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754589AbeEWSLv (ORCPT ); Wed, 23 May 2018 14:11:51 -0400 Received: from wiesinger.com (wiesinger.com [84.113.44.87]) by vps01.wiesinger.com (Postfix) with ESMTPS id 0DCB49F294; Wed, 23 May 2018 20:11:47 +0200 (CEST) Received: from [192.168.0.14] ([192.168.0.14]) (authenticated bits=0) by wiesinger.com (8.15.2/8.15.2) with ESMTPSA id w4NIBWMq008511 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 23 May 2018 20:11:40 +0200 DKIM-Filter: OpenDKIM Filter v2.11.0 wiesinger.com w4NIBWMq008511 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wiesinger.com; s=default; t=1527099101; bh=ojfmu1l7rDeXa4Y/pAF9tAy2AR0Y1LmicyuFXr5mSuY=; h=Subject:To:References:From:Cc:Date:In-Reply-To:From; b=LIYPLkpRc8f6qxbZgyL/XOH+ZnTdHAJASj3FBGSVbSAw9p3jHA22kPzMMfnRgdFSA x5fhtizRcCz58PWwQyXaPHI9gmRE5srpqjmUeSSbPfWbHiuVnoRxXrm2QcIHGl6Jc9 kd9SC7t0l4oYeaM3Nxih9cO8aVFcDCXqSYamud7Cy1tY4LdW6AJZottdElsmudOBHO K3vXJL2oBoHokE87lkJHQ1WWes7LK0uyhl7w0Vdclb2I72EC0i11cVhe2ogixvSdJZ fQpvXX16agq9TQCOB8/QJub3u6FLswFjL9UN0BXn1f7gW8h8sjosAEBy6qhe5JTYzt /xn1JGQT+Slj6M85teq2WQdDpmPkizVwbd3wZ8gGN7G5EeAW9QgjbQ7kE69xrwT7h7 FMqUZ5UHiTfajVl3q/3aBvQnKTXFbMF2pR/bpy8cOkbCusYH2E7SD1xw1i+FWQ9089 nv6SHTiOMeaGorcP+3WFch79BZ/tRZYXpy3nGKw2N/EQpik5bDDzR+IgfNzdoCGrPD ib4XXGQyvSvr0QIVpahb12YWH80HYIz24bt2/mYvL0RpZ0zf9dRWi99PWuSMQtdZ0h D4dDRxHhtYb+sgbNUrzMOOepMi05VOTKkqWYGv74RPOIEQWtcc9YQU+Z8Q/lg6Vb3S 2RUaVNbHXcIRHDQAy9hxiGgM= Subject: Re: B53 DSA switch problem on Banana Pi-R1 on Fedora 26 To: Florian Fainelli , Andrew Lunn References: <3bdb712d-38bd-e2ca-63cf-8406a7b5689d@wiesinger.com> <20180522201632.GB4396@lunn.ch> <59d6b55f-d50a-063c-90a9-31a758e01383@gmail.com> <76c3f5ec-0ab2-c06d-98e8-277284bb1a8e@gmail.com> <88af3639-f3f9-ed45-c6bd-b30021347633@wiesinger.com> From: Gerhard Wiesinger Cc: linux-kernel@vger.kernel.org Message-ID: Date: Wed, 23 May 2018 20:11:31 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23.05.2018 19:47, Florian Fainelli wrote: > On 05/23/2018 10:29 AM, Gerhard Wiesinger wrote: >> On 23.05.2018 17:50, Florian Fainelli wrote: >>> On 05/23/2018 08:28 AM, Florian Fainelli wrote: >>>> On 05/22/2018 09:49 PM, Gerhard Wiesinger wrote: >>>>> On 22.05.2018 22:42, Florian Fainelli wrote: >>>>>> On 05/22/2018 01:16 PM, Andrew Lunn wrote: >>>>>>>> Planned network structure will be as with 4.7.x kernels: >>>>>>>> >>>>>>>> br0 <=> eth0.101 <=> eth0 (vlan 101 tagged) <=> lan 1-lan4 (vlan 101 >>>>>>>> untagged pvid) >>>>>>>> >>>>>>>> br1 <=> eth0.102 <=> eth0 (vlan 102 tagged) <=> wan (vlan 102 >>>>>>>> untagged pvid) >>>>>>> Do you even need these vlans? >>>>>> Yes, remember, b53 does not currently turn on Broadcom tags, so the >>>>>> only >>>>>> way to segregate traffic is to have VLANs for that. >>>>>> >>>>>>> Are you doing this for port separation? To keep lan1-4 traffic >>>>>>> separate from wan? DSA does that by default, no vlan needed. >>>>>>> >>>>>>> So you can just do >>>>>>> >>>>>>> ip link add name br0 type bridge >>>>>>> ip link set dev br0 up >>>>>>> ip link set dev lan1 master br0 >>>>>>> ip link set dev lan2 master br0 >>>>>>> ip link set dev lan3 master br0 >>>>>>> ip link set dev lan4 master br0 >>>>>>> >>>>>>> and use interface wan directly, no bridge needed. >>>>>> That would work once Broadcom tags are turned on which requires >>>>>> turning >>>>>> on managed mode, which requires work that I have not been able to get >>>>>> done :) >>>>> Setup with swconfig: >>>>> >>>>> #!/usr/bin/bash >>>>> >>>>> >>>>> INTERFACE=eth0 >>>>> >>>>> # Delete all IP addresses and get link up >>>>> ip addr flush dev ${INTERFACE} >>>>> ip link set ${INTERFACE} up >>>>> >>>>> # Lamobo R1 aka BPi R1 Routerboard >>>>> # >>>>> # Speaker | LAN1 | LAN2 | LAN3 | LAN4 || LAN5 | HDMI >>>>> # SW-Port |  P2  |  P1  |  P0  |  P4  ||  P3  | >>>>> # VLAN    |  11  |  12  |  13  |  14  ||ALL(t)| >>>>> # >>>>> # Switch-Port P8 - ALL(t) boards internal CPU Port >>>>> >>>>> # Setup switch >>>>> swconfig dev ${INTERFACE} set reset 1 >>>>> swconfig dev ${INTERFACE} set enable_vlan 1 >>>>> swconfig dev ${INTERFACE} vlan 101 set ports '3 8t' >>>>> swconfig dev ${INTERFACE} vlan 102 set ports '4 0 1 2 8t' >>>>> swconfig dev ${INTERFACE} set apply 1 >>>>> >>>>> How to achieve this setup CURRENTLY with DSA? >>>> Your first email had the right programming sequence, but you did not >>>> answer whether you have CONFIG_BRIDGE_VLAN_FILTERING enabled or not, >>>> which is likely your problem. >>> Here are some reference configurations that should work: >>> >>> https://github.com/armbian/build/issues/511#issuecomment-320473246 >> I know, some comments are from me but none of them worked, therefore on >> LKML :-) > I see, maybe you could have started there, that would have saved me a > trip to github to find out the thread. > >> /boot/config-4.16.7-100.fc26.armv7hl:CONFIG_BRIDGE_VLAN_FILTERING=y >> >> so this can't be the issue, any further ideas? > Yes, remove the "self" from your bridge vlan commands, I don't see that > being necessary. Same: [root@bpi ~]# bridge vlan add dev lan1 vid 101 pvid untagged self RTNETLINK answers: Operation not supported [root@bpi ~]# bridge vlan add dev lan1 vid 101 pvid untagged RTNETLINK answers: Operation not supported [root@bpi ~]# bridge vlan add dev lan1 vid 101 RTNETLINK answers: Operation not supported Any ideas how to debug further? > >> On my 2nd Banana Pi-R1 still on Fedora 25 with kernel >> 4.12.8-200.fc25.armv7hl the commands still work well, but I wanted to >> test the upgrade on another one. >> >> /boot/config-4.12.8-200.fc25.armv7hl:CONFIG_BRIDGE_VLAN_FILTERING=y > Is using an upstream or compiled by yourself kernel an option at all? I > have no clue what is in a distribution kernel. Typically the Fedora kernels work fine (long term experience since Fedora Core 1 from 2004 :-) ). I had some custom patches in there in the past for external RTC and b53_switch.kernel_4.5+.patch, but otherwise no topics. Therefore with upstream DSA support that should be fine then. Infos can be found here: https://koji.fedoraproject.org/koji/packageinfo?packageID=8 https://koji.fedoraproject.org/koji/buildinfo?buildID=1078638 Ciao, Gerhard