Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2907235rwe; Mon, 29 Aug 2022 02:23:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR5qHIF96JSVdN9uaPgoNwZQyXMIhrSEakUSTtW4PHeeiZ+AXdJFrrFAbMC9Y2PlBI6cYn6I X-Received: by 2002:a17:907:1c87:b0:741:8199:a59d with SMTP id nb7-20020a1709071c8700b007418199a59dmr3392937ejc.736.1661765007929; Mon, 29 Aug 2022 02:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661765007; cv=none; d=google.com; s=arc-20160816; b=xjvK9M0q/zB1+GwDlYA6pLdzgEHnysECnk6Y9+DrnVkP6eyJ+9ymTHOdDU6jxybcM4 QwgdyOG9Lu3VQtheSPXRlucyiG/bIpR5+fOdmijXKWhJRqBmCXYhlfdyHRzgS090vWaR 0g+DZm2TCakn2yPXNMc/0F9sAldJ+8tdSIcs9B/FVQjGJuTblermzKrnqKY6z7l4VDp6 FHE9eN75tDTn1bZBYp5WPteWiU3geXQ7Ajmil0xs0/yxVl6RYj9NZaBuqWpbXi9h0+xu 4GaVSHygD+naxkg0G0staeIlvH28SBKUwL+Tuz714ln0Zk8eMmqj+y5olqQhxz5ewW1p l9ZA== 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=2NNHvafX++FyyRnITHQ1PF1LKAfoK7GM352PgfzZKO4=; b=gywJvlfP2EPWKTqFTMqCBZNOTQmZbWwHcR2RZ4zD9dhfws0C8+7xvJbfRV+7/EYxxv x9qoErphNFuhxYPgCa5zEDkgpKfpqtxU1qEl9kt0ZDs4IX7AHsDiaCiLlPvAiVaSD5YV 2qfiW4mihXNrVRdpoAg9uuHtSFNXRgl63SAyRelLZmj++KvABuPDNCFnbpSCWDLG2ds3 yqqJg34kk3JQ8bDrv6sE4HURwEvxgDriDm/i0t892Ua/Ci92I6OhetVjLH5EIyagXIgJ BB4RxtJfQhjnHWLdxLEMJzt2YL6gAHT71riFG1H5wwWItZ3GmsfphHRArVFFyTZPfNF0 +CtA== 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 u15-20020a50d50f000000b004464ae6552dsi6269225edi.236.2022.08.29.02.23.02; Mon, 29 Aug 2022 02:23:27 -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 S229570AbiH2IzW (ORCPT + 99 others); Mon, 29 Aug 2022 04:55:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbiH2IzV (ORCPT ); Mon, 29 Aug 2022 04:55:21 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A11F013F33; Mon, 29 Aug 2022 01:55:17 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 00ECB18848CB; Mon, 29 Aug 2022 08:55:16 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id EC9B325032B7; Mon, 29 Aug 2022 08:55:15 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id DE5709EC0003; Mon, 29 Aug 2022 08:55:15 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Mon, 29 Aug 2022 10:55:15 +0200 From: netdev@kapio-technology.com To: Ido Schimmel Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Florian Fainelli , Andrew Lunn , Vivien Didelot , Vladimir Oltean , 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 , Christian Marangi , Daniel Borkmann , Yuwei Wang , 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 v5 net-next 6/6] selftests: forwarding: add test of MAC-Auth Bypass to locked port tests In-Reply-To: References: <20220826114538.705433-1-netdev@kapio-technology.com> <20220826114538.705433-7-netdev@kapio-technology.com> <7654860e4d7d43c15d482c6caeb6a773@kapio-technology.com> User-Agent: Gigahost Webmail Message-ID: 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,T_SCC_BODY_TEXT_LINE 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-08-29 09:40, Ido Schimmel wrote: > On Sun, Aug 28, 2022 at 02:00:29PM +0200, netdev@kapio-technology.com > wrote: >> On 2022-08-27 20:21, Ido Schimmel wrote: >> > "locked on learning on" is counter intuitive and IMO very much a >> > misconfiguration that we should have disallowed when the "locked" option >> > was introduced. It is my understanding that the only reason we are even >> > talking about it is because mv88e6xxx needs it for MAB for some reason. >> >> As the way mv88e6xxx implements "learning off" is to remove port >> association >> for ingress packets on a port, but that breaks many other things such >> as >> refreshing ATU entries and violation interrupts, so it is needed and >> the >> question is then what is the worst to have 'learning on' on a locked >> port or >> to have the locked port enabling learning in the driver silently? >> >> Opinions seem to differ. Note that even on locked ports without MAB, >> port >> association on ingress is still needed in future as I have a dynamic >> ATU >> patch set coming, that uses age out violation and hardware refreshing >> to let >> the hardware keep the dynamic entries as long as the authorized >> station is >> sending, but will age the entry out if the station keeps silent for >> the >> ageing time. But that patch set is dependent on this patch set, and I >> don't >> think I can send it before this is accepted... > > # bridge link set dev swp1 learning on locked on > # bridge link set dev swp2 learning on locked on As we must think in how most drivers work, which I am not knowledgeable of, I think that it is probably the best to think of the way mv88e6xxx works as an outlier. If that is true, then I think the best option is to go with: #bridge link set dev $swp1 learning off locked on #bridge link set dev $swp2 learning off locked on Then the cleanup side will just be: #bridge link set dev $swp1 locked off #bridge link set dev $swp2 locked off The state 'learning off' is then consistent with the behavior of both the bridge and driver after the cleanup.