Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1988975imm; Sun, 27 May 2018 22:34:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZru6GSCSdUEatCLHO2LEbZ2wV5sgJWlDSe9r6Ix9leOKJ8WARi4Nj7lulqImFftZo1qkjgX X-Received: by 2002:a63:83c3:: with SMTP id h186-v6mr9232008pge.298.1527485643775; Sun, 27 May 2018 22:34:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527485643; cv=none; d=google.com; s=arc-20160816; b=Ruadke9Txp9+szWadwIrcPc4hZNX7Q3m4kjcXxBZJEwFXvYkNstPsBAmWBGZ6s+FPk Od8KU4H0RvdV4eYLVeIxPvzEycpWdyR5SVIc1tLzKfgbik9+3jaaz5mzODr2HU4PaOlJ +OGX5Fe3tKIa77UULp26NhmQWugk153492jQxct0G8KtQ+HMeM9xT1ZxXUJ9Bu1gH/TR HKOXR1mA+GOQ3qUN3wk/TjNA35wfm2i80QJ9IQa6T8T8s3zphOBoxicY8mN/U5NA+zDF AHImU3+A/QTIfvI5iVoTTAFM8r/Bon+inrRncqraZgf7KTMlXxU8cAO2BeZdDJPNusYB qG9w== 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:from:references:cc:to:subject:dkim-signature:dkim-filter :arc-authentication-results; bh=PwFfWlGq1s5rDXXbPcmONsaPmWD6DA9bSwWdAuXKpkU=; b=tSiP8kH4SC7GTXriGHAQlWb43FSj+A5sNSoU9SzMaDT5knBGdsepk8DjYOUmmN+fC+ 3K47Gj5VndQTLxlOt7k2Kk9QM6E6pTjSV95nzyKsH1PHzlpM75txA2YQES+vz6An0uvU a7G0tr5KWIcorMz1yRU5egaJikQlQ81KmcSRaWJqLSLIKqHAhaiyQ0AoPWcCWW8tSEBr OGJ2grtEnE5f4TJySoIB0jdMfMx8lnp2y56EILIDqYS9hD9HftKDrOdcBywN/2Lfu4Fg pyofDc37PporioYUdLxtETkUrKln4N0oE+p4h/3xScr5WToX2T3FxB50X+gAcpI0JWY1 A5yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wiesinger.com header.s=default header.b=rpZmkGkA; 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 w10-v6si2022477ply.482.2018.05.27.22.33.49; Sun, 27 May 2018 22:34:03 -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=rpZmkGkA; 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 S1753240AbeE1FcT (ORCPT + 99 others); Mon, 28 May 2018 01:32:19 -0400 Received: from vps01.wiesinger.com ([46.36.37.179]:53374 "EHLO vps01.wiesinger.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750765AbeE1FcP (ORCPT ); Mon, 28 May 2018 01:32:15 -0400 Received: from wiesinger.com (wiesinger.com [84.113.44.87]) by vps01.wiesinger.com (Postfix) with ESMTPS id 9A4549F25E; Mon, 28 May 2018 07:32:13 +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 w4S5WADJ008891 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 28 May 2018 07:32:11 +0200 DKIM-Filter: OpenDKIM Filter v2.11.0 wiesinger.com w4S5WADJ008891 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wiesinger.com; s=default; t=1527485531; bh=PwFfWlGq1s5rDXXbPcmONsaPmWD6DA9bSwWdAuXKpkU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=rpZmkGkAxAcijRRBkHjnXnlDIHLn2UERqSUT+xinn1rVMEq6SvAmHDEy5+s4S/4Vt aW/3XLREf+9TQppb9R1QanfPDLYT7GTOuPXzw4S3LkWLdFeCMa9sgVcMZZMX1vrAJ5 PsrgN9xAM1zymHRUhOArjdYMpkssHapOwG9NZmMVtK/qfOh7GuxaNvihx7o0Ic09/b g7MemI0kb06wHdICbTyz3HOAu+jc0Re554mzydRQV+zkT0C0RYts28UxaFWZzE/x12 8OS6+f1Yx8h9MMzrC6NDOPsKJWIgMjFX+73AxV8Kd8nwWjXpbks3X7f4LU4wjP/1ln UO/8V6I19sHLxmahwsp9f5EkNWRroN2GbaWzgc6QLxYGJYiQf2c9u/d8EilF9j72Gm m7uo1Ms/EL0u9RaExR2JTAeXOfy47umlJf7MOUvPk4CZE+//8mNU5K8h+W3FPrsxyk h8nOa+DuGwFPpzTpVbmyVkexO2P5+sY8FaBjd3Je4EF2H2XGhGZ+9xIJneJp5lrfMX tqhdDxIKlzrMPySOiRwFj4I+r4SViX2S0+t8atJfMAYSkXeSUrRNt/COAcXxQAdAGC /BQpGrzvTiRrCFq85YE/49Ou0CcqM3isPWSMm2iHfw9+nOyiKukL7OgHtXhsb3Q4/n 6KoqQFiGxHXhgPy73aQlmWkE= Subject: Re: B53 DSA switch problem on Banana Pi-R1 on Fedora 26 - systemd-networkd problem To: Florian Fainelli , Andrew Lunn , initramfs@vger.kernel.org Cc: linux-kernel@vger.kernel.org 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> <779f2be3-3e74-e650-5240-efaf1003d77c@wiesinger.com> <4f7c5173-019d-ba0e-70b3-addf64a6a9fa@gmail.com> <53c9272a-0e1a-e8fb-a3e4-b4e23e77be10@gmail.com> <18ca17a1-4673-2ace-7142-d4aef6854bc4@wiesinger.com> <219eaac0-3d76-005a-f8d6-c54ea21f205e@wiesinger.com> <80a5da81-0ed3-14bc-2e62-bd25f05de792@gmail.com> From: Gerhard Wiesinger Message-ID: <8ffb6309-3d08-3043-43d9-49aa3a686bf6@wiesinger.com> Date: Mon, 28 May 2018 07:32:10 +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: <80a5da81-0ed3-14bc-2e62-bd25f05de792@gmail.com> 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 27.05.2018 22:31, Florian Fainelli wrote: > Le 05/27/18 à 12:01, Gerhard Wiesinger a écrit : >> On 24.05.2018 08:22, Gerhard Wiesinger wrote: >>> On 24.05.2018 07:29, Gerhard Wiesinger wrote: >>>> After some analysis with Florian (thnx) we found out that the current >>>> implementation is broken: >>>> >>>> https://patchwork.ozlabs.org/patch/836538/ >>>> https://github.com/torvalds/linux/commit/c499696e7901bda18385ac723b7bd27c3a4af624#diff-a2b6f8d89e18de600e873ac3ac43fa1d >>>> >>>> >>>> Florians comment: >>>> >>>> c499696e7901bda18385ac723b7bd27c3a4af624 ("net: dsa: b53: Stop using >>>> dev->cpu_port incorrectly") since it would result in no longer setting >>>> the CPU port as tagged for a specific VLAN. Easiest way for you right >>>> now is to just revert it, but this needs some more thoughts for a proper >>>> upstream change. I will think about it some more. >>> Can confirm 4.14.18-200.fc26.armv7hl works, 4.15.x should be broken. >>> >>> # Kernel 4.14.x ok >>> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/log/drivers/net/dsa/b53?h=v4.14.43 >>> >>> # Kernel 4.15.x should be NOT ok >>> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/log/drivers/net/dsa/b53?h=v4.15.18 >>> >> Kernel 4.14.18-300.fc27.armv7hl works well so far, even with FC28 >> update. Florian send me a patch to try for 4.16.x > So does my patch make 4.16 work correctly for you now? If so, can I just > submit it and copy you? > >> I got the  commands below to work with manual script commands. >> Afterwards I wrote systemd-networkd config where I've a strage problem >> when IPv6 sends a multicast broadcast from another machine to the bridge >> this will be sent back via the network interface, but with the source >> MAC of the bridge of the other machine. dmesg from the other machine: >> [117768.330444] br0: received packet on lan0 with own address as source >> address (addr:a0:36:9f:ab:cd:ef, vlan:0) >> [117768.334887] br0: received packet on lan0 with own address as source >> address (addr:a0:36:9f:ab:cd:ef, vlan:0) >> [117768.339281] br0: received packet on lan0 with own address as source >> address (addr:a0:36:9f:ab:cd:ef, vlan:0) >> >> And: If I just enter this command after e.g. a systemd-network restart >> everything is fine forever: >> # Not OK (dmesg message above is triggered on a remote computer, whole >> switching network gets unstable, ssh terminals close, packet loss, etc.) >> systemctl restart systemd-networkd >> # OK again when this command is entered >> bridge vlan add dev wan vid 102 pvid untagged >> >> brctl show, ip link, bridge vlan, bridge link commands, etc. look all >> the same, also /sys/class/net/br0/bridge, /sys/class/net/br1/bridge >> settings >> >> Systemd config correct? >> Any ideas? > You should not have eth0.101 and eth0.102 to be enslaved in a bridge at > all, this is what is causing the bridge to be confused. Remember what I > wrote to you before, with the current b53 driver that does not have any > tagging enabled the lanX interfaces and brX interfaces are only used for > control and should not be used for passing any data. The only network > device that will be passing data is eth0, which is why we need to set-up > VLAN interfaces to pop/push the VLAN id accordingly. > > I have no idea why manual vs. systemd does not work but you can most > certainly troubleshoot that by comparing the bridge/ip outputs. So is that then the correct structure? br1 - lan1 (with VID 101) - lan2 (with VID 101) - lan3 (with VID 101) - lan4 (with VID 101) brlan - eth0.101 - wlan0 (currently not active, could be optimized without bridge but for future comfort) br2 - wan (with VID 102) (could be optimized without bridge but for future comfort) - future1 brwan - eth0.102 (could be optimized without bridge but for future comfort) - future2 Ad systemd vs. manual config: As I said I didn't find any difference in the bridge/ip outputs. As they are broken (see other message) maybe something else is broken, too. Thnx. Ciao, Gerhard