Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3338312rwe; Mon, 29 Aug 2022 09:44:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR5bj9nNclEMUHc+AH1SK6iy993UO4kLjLKfG3LcDTJi8uJVfE7B9iHcVyYo47cW2zbV6n95 X-Received: by 2002:a17:90a:94c7:b0:1fd:81a5:48fd with SMTP id j7-20020a17090a94c700b001fd81a548fdmr13441126pjw.97.1661791452640; Mon, 29 Aug 2022 09:44:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661791452; cv=pass; d=google.com; s=arc-20160816; b=ikRdfi8EcvIgV7yB0IsFx+6AZHY47WcLHppcwztfigA2BKAtGPB92WN5JRjMrocioe ZkxyQ2vgxYTF4m2aKwg5oLxjInQEkIOSB/tfOEpN9/JTVSM9btZaaukDq0uoVChVYDeL 1DUARf2hqH12i7SXnSDZQPh9rNwLUG55mb5uJDNPp0KU+hWmJkUG2v5zWH/bmO6seW2V ZXqfy2YAMK0gU2AqPdXCJ0aSkpwy3vO0LEyA1XUx9O/DArKbQLRzqabPNvhEDkUxUBLn hqBS9Yji7o+7Cml80NUkR2bC5Pqd9cQcuBDCBLRcvQ6KtABYgwihJQR8nBHYOxKe0IU0 NMDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uUO+SBbyTPwDYAvd5O3Zia1JgmcyUAvEUfLW7ShsisQ=; b=nhh+HlbrcoZaBfm0+0dFUvO9Df68XrY+bHl75OhiUr5scuNJmuJ6CBpxB/VAtso+lO QYhnH8UBW4PW/ohNHUOZ0TnBP8BlEnHvBTy8oDma+xYWNNI0SNhYF1mKyxqZ4z5B/Gyi WMpfyMOUOaLskwaK8NmthpQM98fTmn6iw9VfZj4zOptinn6zLPhCQFjDBzjHxu5zeAou FB03u139vV0FohMijgM9e8Xgsjl0ID1Y78QSDTiDEKQ3wJT5jsVRxh2VRWfAikoLeIL5 ovTC5x46C8rpmscPmY776RLrD7mdgRTTTsjFj6H8xcVgEw16ZXTH0g5k1CVZd1kZjXVc CEbA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=cICpxOeD; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb12-20020a17090ae7cc00b001fb541989c6si11766838pjb.168.2022.08.29.09.44.01; Mon, 29 Aug 2022 09:44:12 -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; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=cICpxOeD; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230201AbiH2QDX (ORCPT + 99 others); Mon, 29 Aug 2022 12:03:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230140AbiH2QDT (ORCPT ); Mon, 29 Aug 2022 12:03:19 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2057.outbound.protection.outlook.com [40.107.220.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03FA697B24; Mon, 29 Aug 2022 09:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=StfSkWuUrE59QAcybNKgSxjXX2RYS+IxymNcXLdVyk8pMDQw2QXtKYuO45rxPnY/ZQPaJYjSEAYgUEOSQtdO8eVNPXtc2EJ2Mv14K9jXk2ZuwCN4z7ID6FHCYI0evEluzMROX8H5NSq7QAknyMLRs+8zbvXVKIkGWpP14KZNwc/bXR7MkdOroSkIyRc0+q5KI5a85n0rx0czIraU0kkKhm1fVPHYoJmi+w/+qBvSw74bUXtTtMLz+LfBbXDC+nKnLnFkC9LQYHQc2WCE6XnjMVkJc3nU0X/o1N6FEPsnIgcBezu5/9gvd/hRkyQn+DqyiCfrOwxRMnOZik5lNHWqJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uUO+SBbyTPwDYAvd5O3Zia1JgmcyUAvEUfLW7ShsisQ=; b=Bm6Nz5pM9q9h7P8wURlsxf4SK+BpVeRBgWrOxOrxgiD68rbJaBAX4zSfVrxV3Sk8JW6Dmh28vCc8lPo4zlNo7pTmXUaE3faqVsFRnCNh8ykgH1FH7KuJbcgr9eKPefbc4ExCdKPkK4kC2KBVbb/00MknE8WYZBVmd1cnvnwsIBUAc4W5Z8n13xEeZ4acN2cnGHwHfsMxz/XpcUVz7qJ11Qlf0dvbhuAI0jn4UnHgkV58mY2BRlKvfFamzPYOpqsjHZzEfUcrcBw3bfa8S6WNYKcFg/s1Tt9GenetzxVq6yEwn4f4MijtnWolXGTRpxzb1ujj+DaSPWUslqzRGU3f3w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uUO+SBbyTPwDYAvd5O3Zia1JgmcyUAvEUfLW7ShsisQ=; b=cICpxOeDiAUKEP5upyh5ViAnkc82nxwdhSYAGNHzLWRm6z6WE8si516PEhlf3PbU56HS5ZahgZMt1xRAqyLO7imWDUhF2AQQKmol++HfYnVDzSl6Xx1xG7VCnE/LvUW70lz0fCQTmkwUHBaGPEu+vuxzuoPidVoCIzz/hk57XC+pc+GZIU3ni+6rUOtwTM01WypaJtj2PhZ1i7MF7FNa344Qph41+3QixPPS//Xuyd27WCxStJ4Yo0nJ1/+TBEl/dFvjkrtQZ3IeQvoOZsXFiQ3dMECKLhPWa6cI6dsq3yaYa+N0HT4VaVO2X6thk1H9rzdbCDQMrKpPcYiQ3YWe7Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from PH7SPRMB0001.namprd12.prod.outlook.com (2603:10b6:510:13c::20) by MN2PR12MB4048.namprd12.prod.outlook.com (2603:10b6:208:1d5::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Mon, 29 Aug 2022 16:03:15 +0000 Received: from PH7SPRMB0001.namprd12.prod.outlook.com ([fe80::3ca6:ba11:2893:980e]) by PH7SPRMB0001.namprd12.prod.outlook.com ([fe80::3ca6:ba11:2893:980e%6]) with mapi id 15.20.5504.025; Mon, 29 Aug 2022 16:03:15 +0000 Date: Mon, 29 Aug 2022 19:03:09 +0300 From: Ido Schimmel To: netdev@kapio-technology.com 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 Message-ID: References: <20220826114538.705433-1-netdev@kapio-technology.com> <20220826114538.705433-7-netdev@kapio-technology.com> <7654860e4d7d43c15d482c6caeb6a773@kapio-technology.com> <2967ccc234bb672f5440a4b175b73768@kapio-technology.com> <9e1a9eb218bbaa0d36cb98ff5d4b97d7@kapio-technology.com> <69db7606896c77924c11a6c175c4b1a6@kapio-technology.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <69db7606896c77924c11a6c175c4b1a6@kapio-technology.com> X-ClientProxiedBy: LO6P123CA0060.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:310::20) To PH7SPRMB0001.namprd12.prod.outlook.com (2603:10b6:510:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cfa6fc54-bd98-4e3f-e47c-08da89d7fb2c X-MS-TrafficTypeDiagnostic: MN2PR12MB4048:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SGX5iAxvuswvzzIboVJfmlcV4xLFtzVNNAY8FhTUnYUhzNSkHdC5twkj/0y2AeIapEnMELu7qTCTr6NFj8QABOjVCM5nNofGI5XSiap0qg0BygP4G9yqWCa1J1hlTrLeoI4avaEfaWbJePXD9KssAfy/T6Bpu5qCMJfGgEVlBKSmr01bV7b4S9t8bTO6wEIanHp8Mg00zBCSl3roddgpHmUzdpV83JfR+nra/C3S82iHJksWJolB2udnXrtFv5CFA8NPkUlp+MZ2bhAqZUzyZOolDj5kKs01CEzipKINaWimAHew2Y7wcny0yVtTBe219R9aUPjElA9RRxF3HnUQHKPM1HonZ2i8kPNfNsusi6SZ/USivrWJ9lNrdNv5nKxRwMSwl8yOnCOQBv2/Vx/+9TdFAFV69bV34Ulq8zareRMTB5iIp/tSHVXcVN+zsbVV3AGDnfilocqG+U4m6eb6H/SYrNRzAPJp+7IxoxUA2/0ks80l35mH4PEeHR6EGsvRaDcrIj17Q4Gc2GnETcGg7RlmQcvV22noh9StQZCqMU329TjQWRfq2I1TCdIaH2Qc3+76rAE0Dp0XT3HIOm8tn0jiQmnCtUihrb1dtX5HvJCDAryH9+YVYQKjR8ID/k3k6iN9f7lZxOiXlpIftGAdhBFJcGVjCp7BZov6szxfWHR07e7bo1/K+tXcops1yyouMFS7mm2V5SyZsdwN5Sk89g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7SPRMB0001.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(7916004)(4636009)(39860400002)(136003)(366004)(346002)(396003)(376002)(8936002)(54906003)(66946007)(66556008)(66476007)(4326008)(8676002)(316002)(6486002)(5660300002)(86362001)(6916009)(478600001)(7416002)(41300700001)(7406005)(26005)(53546011)(6506007)(38100700002)(9686003)(6512007)(2906002)(33716001)(6666004)(83380400001)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?QMb3Z8b4ENTUaFb6MlDVejxRWceqI7ELZeU9f1Qs13OhI8zc1n/KrvXTonKh?= =?us-ascii?Q?u7leJ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Oad0GBo?= =?us-ascii?Q?821Wa8SIfTjJY0+sB3VsxocowHvRh3QqvDSt6L20vYsd4f0DnQ16iNe5YvzM?= =?us-ascii?Q?W/TsMZAB7dBVQ7EK7vfdNgrIZ8mxo3uTPLbnMEPPQTN7/qnK5ZzuhcBsacZX?= =?us-ascii?Q?h53YXDXTlMMX031m65eIAJzMMWgrqxvsio3+PG4f90264CDWnv6zmIncVKKC?= =?us-ascii?Q?rR0G2oxj5pQfXTEWSYLgGtwOnvtrUmHRFgtFgzNpxUF5or6pvSfgMhIZgOi+?= =?us-ascii?Q?fNSH1dPtSNTU19laEm8yNaKbnGfNkBr2IoJPhQPdsLLBxDUTXXvNJYjZ5gnL?= =?us-ascii?Q?KAKl1S3V/wMqdQdhvaObfIsdnPt2yg6wL8oiE9aBprE0iSY18B0mQCJY5I5X?= =?us-ascii?Q?2wrndeKnK8126D4ONVLUkT4hV/YkhCLCfXcTHBkK61tnc7ddTwLyyZLcncrg?= =?us-ascii?Q?8n8xOf6Pdxvc3hlUZIY5bSJGSFGPutGYxEQ3ITln06vpemIYKR1gACtzEBFZ?= =?us-ascii?Q?vNN4c9Sc8h5SKy0TxOJxDNI67YIIOUeTf7xocBOLGNhTbRLfLZQHMFzf5jaG?= =?us-ascii?Q?beCXfDRvCt54aClmT8JgQJLdGWhv3yZoOpQniryxNjCMoalbGYDvMrG0To2W?= =?us-ascii?Q?QPeO9XIgBpK8oNqJ5IpTRa7XxU78HeRsKVTeJWhE?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: cfa6fc54-bd98-4e3f-e47c-08da89d7fb2c X-MS-Exchange-CrossTenant-AuthSource: PH7SPRMB0001.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2022 16:03:15.2437 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 29d9G38BIbOkDRD+ZBODP9mSv8eigm+bv5gW3JuiwhoFfatD6DNxwhQwbVyB/1zkv2VD/DKhU4DUEzguuBkGxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4048 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, Aug 29, 2022 at 05:08:23PM +0200, netdev@kapio-technology.com wrote: > On 2022-08-29 16:37, Ido Schimmel wrote: > > On Mon, Aug 29, 2022 at 02:04:42PM +0200, netdev@kapio-technology.com > > wrote: > > > On 2022-08-29 13:32, Ido Schimmel wrote: > > > Port association is needed for MAB to work at all on mv88e6xxx, but > > > for > > > 802.1X port association is only needed for dynamic ATU entries. > > > > Ageing of dynamic entries in the bridge requires learning to be on as > > well, but in these test cases you are only using static entries and > > there is no reason to enable learning in the bridge for that. I prefer > > not to leak this mv88e6xxx implementation detail to user space and > > instead have the driver enable port association based on whether > > "learning" or "mab" is on. > > > > Then it makes most sense to have the mv88e6xxx driver enable port > association when then port is locked, as it does now. As you wish, but like you wrote "802.1X port association is only needed for dynamic ATU entries" and in this case user space needs to enable learning (for refresh only) so you can really key off learning on "learning || mab". User space can decide to lock the port and work with static entries and then learning is not required.