Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4203687rwi; Sat, 22 Oct 2022 06:39:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7TkZW8SPduMizwCXbLoNvYJrQjd3KUWqlGMOi/5j7uNnaKQYwn1/Tesk3pPG+j1hQz0CCy X-Received: by 2002:a17:90b:286:b0:20d:7a3b:df56 with SMTP id az6-20020a17090b028600b0020d7a3bdf56mr63927995pjb.156.1666445956114; Sat, 22 Oct 2022 06:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666445956; cv=none; d=google.com; s=arc-20160816; b=OzV+qyP1ml8wDfQwzccGbWyv5l4oQYLGXMVol29M35OII27oJFqZwR+qqN8PEj9FxE Kt042aKzR+sWT0DmIwWh/YvXz3mXFyST0NDomBaJ5HqO2/sEGU1enStNcpCjnHEri/Tq bJGR0tn9DXTgLCp//MS9ppdyEERkcm+z3CsaxuBiotVJCGTy+29isPAUnFf3KHYNDDao 3sHklQP5io8HLXyZ7S78AN2AlbBVQ79bJalvj+SCWwAX5p2b2Rrtz4efycEsUVO1s5uh ZGoPYqWnn6mW/0AZU74YkuYf2vUUc9dxX7z//fUMA5onDdO6F1h+oDl8wITqsYfToaUr RZSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=YUqgdk8b8TM0QZbQqaZTq+OWO+F7LKI4LMbJVW5QLx8=; b=x7AlqKxu/z5OxQ+bJSx4Jx2LRQQnFjRv2LW7jyK2A/jYzNtV+htWgTMfncX616/8WG ahI7lgmplhnAvRq5umKRF0iL56lBBSZCcDLqy8Djp1/00LPOA64wRWEVRlMN5/NsIYAI g8TbslZMUzalqriqJVXgyfTpuFYtAlX1JEQC96dQwu29vzdfRGYdJDSd9QTVe25nFNOM 1jgZAtynxXAjLlolaTV4bUWhBmfMxnsk3XdfUGmfK2ZP/GXul55HWvBTcBcX7dnKNJ9W hdOoKw3/L2p2jKr0E7TXL4ixwjCGYuaUoQq+Dse3vpIpDuJ+dH8pm7UgnF4NjL9JRo/7 D+tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d16-20020a056a0010d000b0053f52794b23si31854471pfu.88.2022.10.22.06.39.03; Sat, 22 Oct 2022 06:39:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229583AbiJVNPQ (ORCPT + 99 others); Sat, 22 Oct 2022 09:15:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbiJVNPN (ORCPT ); Sat, 22 Oct 2022 09:15:13 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 546CF4DB12; Sat, 22 Oct 2022 06:15:05 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 71136188440A; Sat, 22 Oct 2022 13:15:03 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 51EDC250007B; Sat, 22 Oct 2022 13:15:03 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 2D6B09EC0013; Sat, 22 Oct 2022 13:15:03 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Sat, 22 Oct 2022 15:15:03 +0200 From: netdev@kapio-technology.com To: Vladimir Oltean Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Oleksandr Mazur , Florian Fainelli , Andrew Lunn , Vivien Didelot , Eric Dumazet , Paolo Abeni , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , Claudiu Manoil , Alexandre Belloni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Russell King , Christian Marangi , Daniel Borkmann , Yuwei Wang , Petr Machata , Ido Schimmel , Florent Fourcot , Hans Schultz , Joachim Wiberg , Amit Cohen , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v8 net-next 10/12] net: dsa: mv88e6xxx: mac-auth/MAB implementation In-Reply-To: <20221022120200.no5pl54bcfa3wcnd@skbuf> References: <20221020225719.l5iw6vndmm7gvjo3@skbuf> <82d23b100b8d2c9e4647b8a134d5cbbf@kapio-technology.com> <20221021112216.6bw6sjrieh2znlti@skbuf> <7bfaae46b1913fe81654a4cd257d98b1@kapio-technology.com> <20221021163005.xljk2j3fkikr6uge@skbuf> <20221021173014.oit3qmpkrsjwzbgu@skbuf> <20221021181411.sv52q4yxr5r7urab@skbuf> <37dc7673fde2b8e166a5ed78431a2078@kapio-technology.com> <20221022120200.no5pl54bcfa3wcnd@skbuf> User-Agent: Gigahost Webmail Message-ID: <871cd2930adbed99d351da0864aee340@kapio-technology.com> X-Sender: netdev@kapio-technology.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-10-22 14:02, Vladimir Oltean wrote: > On Sat, Oct 22, 2022 at 09:24:56AM +0200, netdev@kapio-technology.com > wrote: >> I will not say that you are not making sense as for the mv88e6xxx, as >> it >> needs port association in all cases with BR_PORT_LOCKED, MAB or not, >> and >> port association is turned on in the driver with learning turned on. >> >> That said, there must be some resolution and agreement overall with >> this >> issue to move on. Right now port association is turned on in the >> mv88e6xxx >> driver when locking the port, thus setting learning off after locking >> will >> break things. > > This already needs to be treated as a bug and fixed on its own. Forget > about MAB. > > You're saying that when BR_LEARNING=on and BR_PORT_LOCKED=on, the > mv88e6xxx driver works properly, but the software bridge is broken > (learns from link-local multicast). > > When BR_LEARNING=off and BR_PORT_LOCKED=on, the software bridge is not > broken, but the mv88e6xxx driver is, because it requires the PAV > configured properly. > > And you're saying that I'm the one who suggests things should work > differently in software mode vs offloaded mode?! Well :-) To be specific, I am talking about how things work from a user perspective, where I have kept to BR_LEARNING off before turning BR_PORT_LOCKED on. I admit to a weakness in that BR_LEARNING off after BR_PORT_LOCKED on is a problem that from my perspective at this point would be a user error. > > Why don't you > (a) deny BR_LEARNING + BR_PORT_LOCKED in the bridge layer > (b) fix the mv88e6xxx driver to always keep the assoc_vector set > properly for the port, if BR_LEARNING *or* BR_PORT_LOCKED is set? (a) yes, I have thought that documentation could handle this, but maybe you are right, maybe it should be enforced... (b) BR_PORT_LOCKED ensures now that the PAV is correctly set, so I have basically distinguished between learning and port association (which I know mechanically is the same in mv88e6xxx), but still I have adhered to learning off while port association is on for the port.