Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1174767imm; Wed, 23 May 2018 11:29:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqSmFylD5hnFjQ+Vp6lrSjf/Nv9KwoOTiO4Mj6z5z7MtsQW+IPft8A17+dPT7uuNCGeoJHG X-Received: by 2002:a62:d352:: with SMTP id q79-v6mr3969955pfg.45.1527100142234; Wed, 23 May 2018 11:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527100142; cv=none; d=google.com; s=arc-20160816; b=W5lcRH0Ga88rLqZr02f1sNSTdhFwJoembpoYULm6NAfEzMtOdLUNX+gTEaHdGFgTm9 4HOTFQjfazdd3gUqf1qdWXKjNEepTEgGcwrOF1ggQiayslhNUfuxWeCnAuhFMIdM8N1F UfPtRc1s9zveow5fMzm17ZukZCnbnPIF76XKGnGecMugEz0q6k6JpMLrh1msU4vGnswd rGaBMNyjB8DIBfH/GzdKkMRD0KPmibBrdfPDiBQC/SwZsK719fEn7rT4A8U+R+MldUaH 212mc0+Yt/ZtfJo3e8Wol1C6lATap1Lcds4+M6OJhK0FKVKmFbIVV+jVXJFqouK6jw/i yVxA== 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=f/+z9oaccZxQbIFlyakhnJ+foUfB6tBVJE03DTDZvY0=; b=CWhBFZv0diWm9SM87Hu1u5El/XLt19nUOrG1oY3awVuRnIae8FybeVfPe4yojwLl1R 7O39pFfIvEDVbXkvYfSyhkSbc1Kc+oqm0bgQ4O+PAR3PCteg3+H09eghl9YTnI1QiXaq JfYNsc5Db3Y8jAlO3M/nnPOFcv1JVg0CqzD/uN1K4Xq5OilKsMpo9vo/B3gRti6MD2lo ELI8v+WXKUrF0+iM/BZ3k27mo+sfPdLgphgGAxjc+G2Xt2x4g8HoWgAoh+Sk5DQhXI9x wexo6/vj6TXcHBHiLY791ohwx9cn+F7YC65M9jZKnAj/EKS4jMAr9yraWvYY4YSi/l2W FSaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wiesinger.com header.s=default header.b=CW5OBcQP; 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 g2-v6si20660719plm.181.2018.05.23.11.28.47; Wed, 23 May 2018 11:29:02 -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=CW5OBcQP; 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 S933929AbeEWS2F (ORCPT + 99 others); Wed, 23 May 2018 14:28:05 -0400 Received: from vps01.wiesinger.com ([46.36.37.179]:36222 "EHLO vps01.wiesinger.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754759AbeEWS17 (ORCPT ); Wed, 23 May 2018 14:27:59 -0400 Received: from wiesinger.com (wiesinger.com [84.113.44.87]) by vps01.wiesinger.com (Postfix) with ESMTPS id EE12B9F1DD; Wed, 23 May 2018 20:27:56 +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 w4NIRsD8010143 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 23 May 2018 20:27:54 +0200 DKIM-Filter: OpenDKIM Filter v2.11.0 wiesinger.com w4NIRsD8010143 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wiesinger.com; s=default; t=1527100075; bh=f/+z9oaccZxQbIFlyakhnJ+foUfB6tBVJE03DTDZvY0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=CW5OBcQPZg6JAWl/1jheUEx34ZNyTYZ1+kPzNJqVs6Xr5kFso+1od5sBG0da9yPzv +2zsC7zkJ/+fO6+0m4wmTS5Dm05JEYUaXtUOeaRKQoJhGwepLR7rBT4sB8VRxONZ11 vXLJmMhnjvC1ccOUM2HcKMXQ4SpahlI0bA/r/wTE79Ac2GLWI5BPkWkrI4QaZF/aA8 2T9zDux35WLf3P6ciaGBuYTBhsc5sBMDzzY8ydGFSt4WKaJkqPFElhacYlHhQeiWeY edzHKJ9ZpOMxOC8Yac+Fgt2WZTwlNpc8Y94PKXurvcTySM8t40WrResO+utRRm85Ml KQoCy3BkQZSeTfH+uJfOy6puIr/rDUTyA7//qUR6AdxdEXeaVuytkDP+KUYw7lCJQ5 O/C1Hty1gHmb7tzppvs6cRFqCzE2eG8x11SftP+xhM/XDEEJHJhtTN71yzFK6PB23Z JNgjXpFGW14/bwSZVOPciXDimP1I8iHThX0GwIEK8mUwTlIMiPy0qk7JEFXU6WXLmY McrH3qz9u6m0/I52XDg5/A6LWKa3RUspq9mtLr1Wu+nZ0yjE9WfwjdPldBOFahqmcm Hy4Bt/L3bg3hKvr+zY11OrtZZTPOnGvogQOndw1rPsFAUrlbmu+jJrJ56zK8oHdeLF KjXlMXxw7BPlVAs4qJMvwSqw= Subject: Re: B53 DSA switch problem on Banana Pi-R1 on Fedora 26 To: Florian Fainelli , Andrew Lunn 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> From: Gerhard Wiesinger Message-ID: Date: Wed, 23 May 2018 20:27:54 +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: <4f7c5173-019d-ba0e-70b3-addf64a6a9fa@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 23.05.2018 19:55, Florian Fainelli wrote: > On 05/23/2018 10:35 AM, Gerhard Wiesinger wrote: >> On 23.05.2018 17:28, Florian Fainelli wrote: >>>> And in the future (time plan)? >>> If you don't care about multicast then you can use those patches: >>> >>> https://github.com/ffainelli/linux/commit/de055bf5f34e9806463ab2793e0852f5dfc380df >>> >>> >>> and you have to change the part of drivers/net/dsa/b53/b53_common.c that >>> returns DSA_TAG_PROTO_NONE for 53125: >>> >>> >>> diff --git a/drivers/net/dsa/b53/b53_common.c >>> b/drivers/net/dsa/b53/b53_common.c >>> index 9f561fe505cb..3c64f026a8ce 100644 >>> --- a/drivers/net/dsa/b53/b53_common.c >>> +++ b/drivers/net/dsa/b53/b53_common.c >>> @@ -1557,7 +1557,7 @@ enum dsa_tag_protocol b53_get_tag_protocol(struct >>> dsa_switch *ds, int port) >>>           * mode to be turned on which means we need to specifically >>> manage ARL >>>           * misses on multicast addresses (TBD). >>>           */ >>> -       if (is5325(dev) || is5365(dev) || is539x(dev) || is531x5(dev) || >>> +       if (is5325(dev) || is5365(dev) || is539x(dev) || >>>              !b53_can_enable_brcm_tags(ds, port)) >>>                  return DSA_TAG_PROTO_NONE; >>> >>> >>> That would bring Broadcom tags to the 53125 switch and you would be able >>> to use the configuration lines from Andrew in that case. >> What's the plan here regarding these 2 config option mode (how do you >> call them?)? > Broadcom tags is the underlying feature that provides per-port > information about the packets going in and out. Turning on Broadcom tags > requires turning on managed mode which means that the host now has to > manage how MAC addresses are programmed into the switch, it's not rocket > science, but I don't have a good test framework to automate the testing > of those changes yet. If you are willing to help in the testing, I can > certainly give you patches to try. Yes, patches are welcome. >> I mean, will this be a breaking change in the future where config has to >> be done in a different way then? > When Broadcom tags are enabled the switch gets usable the way Andrew > expressed it, the only difference that makes on your configuration if > you want e.g: VLAN 101 to be for port 1-4 and VLAN 102 to be for port 5, > is that you no longer create an eth0.101 and eth0.102, but you create > br0.101 and br0.102. I think documentation (dsa.txt) should provide more examples. > >> Or will it be configurable via module parameters or /proc or /sys >> filesystem options? > We might be able to expose a sysfs attribute which shows the type of > tagging being enabled by a particular switch, that way scripts can > detect which variant: configuring the host controller or the bridge is > required. Would that be acceptable? Yes, acceptable for me. But what's the long term concept for DSA (and also other implementations)? - "old" mode variant, mode can only be read - "new" mode variant, mode can only be read - mode settable/configurable by the user, mode can be read In general: OK, thank you for your explainations. I think DSA (at least with b53) had secveral topics. implementation bugs, missing documentation, lack of distribution support (e.g. systemd), etc. which were not understood by the users. So everything which clarifies the topics for DSA in the future is welcome. BTW: systemd-networkd support for DSA #7478 https://github.com/systemd/systemd/issues/7478 Ciao, Gerhard