Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1983725imm; Sun, 27 May 2018 22:25:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrgP+ZYy8nkCIGPHpmjTQbkyDrP8NYErIdgHWs924qtejBGt2mqfvArVhS52oso+C3R5Lpf X-Received: by 2002:a63:6a04:: with SMTP id f4-v6mr9497553pgc.225.1527485132025; Sun, 27 May 2018 22:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527485131; cv=none; d=google.com; s=arc-20160816; b=r1HFoZ9LTGewBqTbpFQBbCfnGYSERBayyUktTatKgyVGxARToxgQHejsF0FKmLmiM7 WiR6cIGiUwjmPSFFgpDE6sz1I/p63vGSia6ynxeYv+WEiTIMCdoavndkqDYTcLjAcNFN sKwqHm2PHHBuflcXSqkntYqgwK/+rBGMAMJeFN/XdruBe+oy+lcEG6iFCpyx0l+Fh4dT W7Md3bWWSPh1u5yIXZjN9vUz+xDYwabP0IIy9Ix1yui9dkFF0Xyjghafi0tKagVBMKjI PAP6jY044ILRqqDstwQovmZt0NS9GL9TcXGFjrh/2HsGSG6Smx4GoTaq3xjkEE+EnHPy dJXg== 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=EC7bgISMY4pWTXbsJ2d9WS6k/HDqU5u36zUO3cRvIHk=; b=hf3nFYdgFaLAg126rxOdFK0LAFUb9ICRfLtUhCiTJVU7c3ZY5lAiYMf2AFrusLV7xQ R7VGKC8rA0ktqY4cdyRKDQouWzdAu70z9ebPN6/uErHUXKKBpbhgNnB6jc6Dq1ztS+VC Z8ij7VbPoG6kjM3IxEhRBEE1yfwtHxPpJSjRzIgpy+CcrzfVyLCacgNLKm4gnqOQp5Z/ 9hN5NrCfEQAWWlCD2TPGZ7/C2LQ1zXJa+9g34Ndv23OwmMbxGGiTOJ/aQbinx0NqT/pt A4qEoL4gXlNq0xRqtupLLS5Mk9F5BGdtaLwK5XAOpUr1FejhOnWxprmdjMnmYqCRJrM7 8iXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wiesinger.com header.s=default header.b=Vyd05511; 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 q1-v6si23400969pga.417.2018.05.27.22.25.17; Sun, 27 May 2018 22:25:31 -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=Vyd05511; 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 S1753270AbeE1FZB (ORCPT + 99 others); Mon, 28 May 2018 01:25:01 -0400 Received: from vps01.wiesinger.com ([46.36.37.179]:53346 "EHLO vps01.wiesinger.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753137AbeE1FZA (ORCPT ); Mon, 28 May 2018 01:25:00 -0400 Received: from wiesinger.com (wiesinger.com [84.113.44.87]) by vps01.wiesinger.com (Postfix) with ESMTPS id 6C00C9F2E0; Mon, 28 May 2018 07:24:57 +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 w4S5OqbU008017 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 28 May 2018 07:24:53 +0200 DKIM-Filter: OpenDKIM Filter v2.11.0 wiesinger.com w4S5OqbU008017 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wiesinger.com; s=default; t=1527485093; bh=EC7bgISMY4pWTXbsJ2d9WS6k/HDqU5u36zUO3cRvIHk=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Vyd05511SgfYepfceFn02CzBskJHobMhRvi/yN00PRvFAQo+4Wmbt1x6DSWM1h0Nw OdDPvLUCF7AFHCksYZQDCBIC3WIdmDBits5haxG4h41DkxRG1TSkzZuoNSRBiNFPdX GfK9cq5Hp0qNxoyU9Nb1YI3HtMfvrbvAMPMhIzAdhj8W4xiFhXS6p04kJ+uwlyBycW ZmObSqPXtifi5H23KwamsuspZYDYozwabzJQ+P7rEOZHIaSZT/OjF4o1bI1dmXfx74 Frs2Md2on9X9jjX6XUXWO9dB/z+9eZHxpBI1YitULSCNP/gSrtqjqrCavoMQ1h1qtM vPA3Z5d+zzv3li5nNWZGeEhQ8F13Oz3i6lmneyWZqmoajlr1msn+ViWQfaMuE6X24t nIdJPw7lLLrca869+5pcBi6R/D7YwFEDomDusap7DYVXLbMUS+rPuFyADDZL7cbFDA +WVCO5caNWdAbLtMTPm7R5qZLTFIjQ2Js+QIhBdf5B7JvJWK5GioR9OeW2HsYuLB0D FqIjCBp6HRmas/QtITjBNOqRo5jE+8BG4zVsy90++SW1Zc/Eqx2IIV67rvq861+5/a OVNSkCdLAe2vlFKzgh16c8z+aHlX0U/K5UthJiLD8VAVi8r0iS0Vn1QmsuclqkVpF3 6kA19SW5ejY6oH7VKvxByCfk= 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> <485b3a0e-23d6-c90c-6f41-8d9f33b1ad1f@wiesinger.com> <6c93d27e-66dc-02a9-f8f9-f349f27dfec6@gmail.com> From: Gerhard Wiesinger Message-ID: Date: Mon, 28 May 2018 07:24:52 +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: <6c93d27e-66dc-02a9-f8f9-f349f27dfec6@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:35, Florian Fainelli wrote: > Le 05/27/18 à 12:18, Gerhard Wiesinger a écrit : >> On 27.05.2018 21:01, Gerhard Wiesinger wrote: >>> 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 >>>> >>> >> Forgot to mention: What's also strange is that the VLAN ID is very high: >> >> # 4.14.18-300.fc27.armv7hl, iproute-4.15.0-1.fc28.armv7hl >> ip -d link show eth0.101 | grep "vlan protocol" >>     vlan protocol 802.1Q id 3069279796 >> ip -d link show eth0.102 | grep "vlan protocol" >>     vlan protocol 802.1Q id 3068673588 >> >> On older kernels this looks ok: 4.12.8-200.fc25.armv7hl, >> iproute-4.11.0-1.fc25.armv7hl: >>  ip -d link show eth0.101 | grep "vlan protocol" >>     vlan protocol 802.1Q id 101 >> ip -d link show eth0.102 | grep "vlan protocol" >>     vlan protocol 802.1Q id 102 >> >> Ideas? > That is quite likely a kernel/iproute2 issue, if you configured the > switch through bridge vlan to have the ports in VLAN 101 and VLAN 102 > and you do indeed see frames entering eth0 with these VLAN IDs, then > clearly the bridge -> switchdev -> dsa -> b53 part is working just fine > and what you are seeing is some for of kernel header/netlink > incompatibility. Yes, sniffing on eth0 shows the correct VLAN IDs, e.g. 101. Yes, my guess is that tools are wrong and have random values on 2 calls in different values (e.g. alsopromiscuity ) , see below .... Who can fix it? BTW: On FC27 same issue with same kernel version, but guess older iproute version. Ciao, Gerhard ip -d link show eth0.101 13: eth0.101@eth0: mtu 1500 qdisc noqueue master br0 state UP mode DEFAULT group default qlen 1000     link/ether 02:18:09:ab:cd:ef brd ff:ff:ff:ff:ff:ff promiscuity 3068661300     vlan protocol 802.1Q id 3068661300     bridge_slave state forwarding priority 32 cost 4 hairpin off guard off root_block off fastleave off learning on flood on port_id 0x8005 port_no 0x5 designa ted_port 3068661300 designated_cost 3068661300 designated_bridge 8000.66:5d:a2:ab:cd:ef designated_root 8000.66:5d:a2:ab:cd:ef hold_timer    0.00 message_age_tim er    0.00 forward_delay_timer    0.00 topology_change_ack 3068661300 config_pending 3068661300 proxy_arp off proxy_arp_wifi off mcast_router 3068661300 mcast_ fast_leave off mcast_flood on vlan_tunnel off addrgenmode eui64 numtxqueues 3068661300 numrxqueues 3068661300 gso_max_size 3068661300 gso_max_segs 3068661300 ip -d link show eth0.101 13: eth0.101@eth0: mtu 1500 qdisc noqueue master br0 state UP mode DEFAULT group default qlen 1000     link/ether 02:18:09:ab:cd:ef brd ff:ff:ff:ff:ff:ff promiscuity 3068735028     vlan protocol 802.1Q id 3068735028     bridge_slave state forwarding priority 32 cost 4 hairpin off guard off root_block off fastleave off learning on flood on port_id 0x8005 port_no 0x5 designa ted_port 3068735028 designated_cost 3068735028 designated_bridge 8000.66:5d:ab:cd:ef designated_root 8000.66:5d:a2:ab:cd:ef hold_timer    0.00 message_age_tim er    0.00 forward_delay_timer    0.00 topology_change_ack 3068735028 config_pending 3068735028 proxy_arp off proxy_arp_wifi off mcast_router 3068735028 mcast_ fast_leave off mcast_flood on vlan_tunnel off addrgenmode eui64 numtxqueues 3068735028 numrxqueues 3068735028 gso_max_size 3068735028 gso_max_segs 3068735028