Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4456733rwb; Tue, 16 Aug 2022 23:31:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR4EOR/PhtLoGBUTums8nhjrC+ZvqA3V+wGoZQRBFX7cD4mXmf5jG0MZWCBpEeErC/Da0SlG X-Received: by 2002:a05:6402:27ca:b0:43e:ce64:ca07 with SMTP id c10-20020a05640227ca00b0043ece64ca07mr22578667ede.66.1660717891424; Tue, 16 Aug 2022 23:31:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660717891; cv=pass; d=google.com; s=arc-20160816; b=xoikdsuHdYMO2Aayogzz+4A0Q94LheHnjFSvjR7XCX7JyGWLbB4axmB25yWrvhDVmw GgdTyhB6tQ1i+5QZuP8l6lkM9WJKjsLF+PnxIK/IrBRjZNA+9Oz5N/wkrdG+32RVyTPe AnDoOkGggpBMSOCC4fdlctQctcTKR+lrNvrWpXPQT7CJlMMrbggJIsYHM7CbUhmDWY/F u6y7sI2EDl3NN85gNJYFYtGLyvZ4WGHa5WBwhy0hqK1qoZDYXYxhnNd9jWPJqanlGqDQ wa/OQNjJqtj11H8VKPQ6/s4h1k1aKWOx9+c/ipxlNrTNxng2hIaumUjGP63iiSFSXkd+ hICQ== 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=2G4esfYTxHELQd8ei6tadwaUmwXAofdum1wcfAogHWU=; b=sT+ohlXhc0Ai0gDerYNIAziPwDBx/dB3yLcTanzsb6xQE0Sj1qCjydBG8n3Yp0rhAy UniPV1Zo/YuEW4qtDeFUDmKmo++hUWuueEikDOArIUPGrGYFsSSNEG6nW6sBcSv+WkLD nSRxjt36bHVSxDn/SweaPa8iG7OND/92Rpab8o0GcV/1fjS3WmzQXq8oJXOKEh7Nq7PF XosneViN7JFgvBwlB+iJ4JlKuUWx05oxmb4U3m/ayCyf8TLxTJsAuUWsBG/7/E67rFTx 6cNWgPol+SX/yMAAyB2ZpPpJcN29bYemtwJErhKSkS9Xtxbv7xeGgUlxLmerwsK06/SF HdVQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b="UNz3qqV/"; 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 gb31-20020a170907961f00b00733002330f4si13404359ejc.771.2022.08.16.23.31.03; Tue, 16 Aug 2022 23:31:31 -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="UNz3qqV/"; 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 S238946AbiHQGWU (ORCPT + 99 others); Wed, 17 Aug 2022 02:22:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238777AbiHQGWK (ORCPT ); Wed, 17 Aug 2022 02:22:10 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B7557C1DF; Tue, 16 Aug 2022 23:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SeQHqAZxxd4Unpuw4b+Ie9tSSGO9rfYVj+5wPH/HkfrTS9QkH4y2YPLtXWa1DMUIS0zENyjQj9QuZwLOO0sZbCsS/EmXs/yWWEhDRfdiKxotxCxX1d+rxcoFL7gYVN5DldnIx2I3IHPAn4oujMG613kj8uiNXYn/fjPOSUydAAumhWY2HbUixyqFL0echGczZ/2Ls0OcQ0vcaEMzedMVaLQeKLHd7Va8WnLOjfpmtCl0wIRESFowtPp8eeRcXFgX2pdPsqetb90OL6ayix7gH4XPsCvMwFj6gw2CThs0RwwK1rQrTs+Cg5oSmMJvUYdGUHTLw/qKJvQZIdsflhdqXA== 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=2G4esfYTxHELQd8ei6tadwaUmwXAofdum1wcfAogHWU=; b=BYJErOgmFhsa+jw+9pyBYSpGAlkRk/HoGDCkNd06mjLD+Wtk8ZR5UeCoJSQTxE2trbBo9IaPa+NCmYI9y62cb1qPz5oFJwInJ+84Sx20C69Cv7yuBP3OImynw7kdOkvoT2GBC4ZNRHQMDyaW4m+FDV7b3xY4UF8exwysoqrurRAgl8pp/fRkjHsfhKY8dbycuTPkzGP9pqFO0lZDFwLoPF4CanUny8w4qJUNqch07bvEcg6iFcyuVklu8cJBA3P/GQB/9qIGYx2BX4g/wxDe84dcOtsiCTos7WnAI+2KjtnU4zHCX9hGq4Cc1jqXAWWCMrejNVN3Y8aBW2vNZLm8Uw== 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=2G4esfYTxHELQd8ei6tadwaUmwXAofdum1wcfAogHWU=; b=UNz3qqV/oXl3P3J4mgCzuv2XV2Iy9n8SHRPgEcllHDj078gOKXy7JPMI6Xm0jeoAS4j8nNY4nuyK3iXx+DDhPInqYFjC39ymIO/eYhXsf0PQ8kZKZVw9tj1lboLHrkIJnvBjAuhJjZ9ZjZ5qHAisg5U39klpFNt8XwPLRgU/ocB1di43mLGyCRLBhvCzS8ZY2k8Fg6wsFyTVzcqfSFFLVwHXqCUw9t2FW8uLSkUBaL+Ee5XI+67CE9T1KmnNDBBqMQxraiBD+zNkWBetjwAmOr6cidQYKdf2CpFp3pPpeBWQMNzVHMK0c3zpSNigg980pqVbQTPhwEpnjrojDC9MHA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from IA1PR12MB6163.namprd12.prod.outlook.com (2603:10b6:208:3e9::22) by BY5PR12MB4002.namprd12.prod.outlook.com (2603:10b6:a03:1ad::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Wed, 17 Aug 2022 06:21:49 +0000 Received: from IA1PR12MB6163.namprd12.prod.outlook.com ([fe80::a52c:c6f5:f9f4:59cc]) by IA1PR12MB6163.namprd12.prod.outlook.com ([fe80::a52c:c6f5:f9f4:59cc%5]) with mapi id 15.20.5504.027; Wed, 17 Aug 2022 06:21:49 +0000 Date: Wed, 17 Aug 2022 09:21:44 +0300 From: Ido Schimmel To: netdev@kapio-technology.com Cc: Vladimir Oltean , davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , Eric Dumazet , Paolo Abeni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Daniel Borkmann , linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v4 net-next 3/6] drivers: net: dsa: add locked fdb entry flag to drivers Message-ID: References: <20220708115624.rrjzjtidlhcqczjv@skbuf> <723e2995314b41ff323272536ef27341@kapio-technology.com> <79683d9cf122e22b66b5da3bbbb0ee1f@kapio-technology.com> <6c6fe135ce7b5b118289dc370135b0d3@kapio-technology.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: AS9PR06CA0066.eurprd06.prod.outlook.com (2603:10a6:20b:464::11) To IA1PR12MB6163.namprd12.prod.outlook.com (2603:10b6:208:3e9::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: db89820b-0b47-49e7-eaa6-08da8018c489 X-MS-TrafficTypeDiagnostic: BY5PR12MB4002:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vX6i1aNtNvj2IgXm0CRkaBLWiJqmWhHpM+oxG6AOilkn2j/6Vorer6QBbba3TelgEydj8/SBgdWGnIpSAPHPE1AsGiBv7mc4pNIWtqDEDESSTONfZLXK/OMjzuG/p/F42IEjCT3oyLpWShOme8RIeGwLJhkLxO0SZczH8AdfHOCjpwCjEdZB88fFQrd4vQuR3m3/zK+F7fs4bnOCkNIrBAwtBNl7vLICANg+ax4eVhRMDGUM4DTuPcPJcp3o1p6kb3+78G8fw87uTp1dYeRTbODUY9NBoDi+Ye4vvzjtisPfoW0P7h8/jRDgLpnP3EMpwe0g1PDQbs7e4raETubNZD2YBMRYTFQqeWfQFl7lFJriwuoYj1b9p+7/iOBU5t7WoUeb6HXbc1a51GHEyYAcm3nKDgQo2SrwiJQJAoJOGKMVIgeVZCsPrbhfiYqNBmyAU/8g0ieoBsyxKSUA2OZFefV+YUgSc/VmVwK2dHEbVQFoqZdJ3yFwRX85SXClwuQNTse1xDGOsxnd7A6sic60KG8su/sOQ+sQya930Of+8AUhYWjcVi/OGlnkFMgP9SNbBUz2SKpGWLa58gjEoQq2131eRONszEvkWiZEg6xPZ2Vnrzt0SXOE7tTF2dQzCs6lMtv6rjfb5laNrN8m+4ghLdT/C4mNn5U4gYqzWpNLsFHqUn7qtId5hWHmHGqJ0mus+dl1JfRbCRXlatEJMy6ilwC7Pt/0RsbgKQHkikFmKxpsd76XWPjN1Ucy2pDyVHWzeNchUcUoVn52tzSMoa0r9aZU5EzFTQv3t3j9nzuLmWk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:IA1PR12MB6163.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(7916004)(366004)(136003)(376002)(396003)(39860400002)(346002)(2906002)(38100700002)(7416002)(186003)(83380400001)(4326008)(54906003)(6666004)(9686003)(26005)(86362001)(6512007)(8936002)(41300700001)(5660300002)(6506007)(53546011)(6916009)(8676002)(478600001)(66476007)(6486002)(33716001)(316002)(66556008)(66946007)(67856001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?BclCIUlnXkB28kS+By+MPyJdpnxsoN4lyM0RfHDET+62ZYymw3B/fqHes3Rj?= =?us-ascii?Q?KevMSHkTMlp+tscxg0FYBy2A4TzrufYyGOdw66frQoX1Xin9h7hPCsP/3ZQw?= =?us-ascii?Q?DKvw6+nEcaWeL1NgQimWmNVo3l3Xa5DuKj4e7souO9yzn4OwWZFawKlA4ssv?= =?us-ascii?Q?G5Qohxz/rnZloEi5zhNEd2iAQW1lkXbnMtu+p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E1BaH1WdVknOn/wKWu0eauLXxYI7C0piFSdNUNZ9fBebHil2D1?= =?us-ascii?Q?hbW4x5x2xVDETXHlJ4HobcH5UKDxec65W0oSwW8tYBM5TrF5l47LE7VY/6Ju?= =?us-ascii?Q?vkXSakBLROpHwR85TirqYNhj6ARQ5ThVEjrBfjmRGDzwwmMegCCxNGQjt31B?= =?us-ascii?Q?9hBvIqf+0KI0ahnOGdhawYbk5LtMlmdLO4wOgwyutHIDR+dYuJizOk1WxUYk?= =?us-ascii?Q?MmVee0YX76tDg0qO2Y2/FlkowJA0kJdYjNVKuIcrfh8+DDwl59ntNqAgNOSH?= =?us-ascii?Q?4o1Hx+bLpYAqhsg0NqqrzZtQgnBnaxQYfsYcdyJwIyZGgI/yev/deJxfbaPm?= =?us-ascii?Q?Hb3UfjMFXNIxpouBuBfoXO0Hk9t+gyRj22Jp7F2yhWbKu4HrHvWZ3SXfPv11?= =?us-ascii?Q?XZkP2HOVmbT7mdSqxqcFrWSDd2VlAywqi9ewJ0gQTipuykBzYjEC66cLWEUw?= =?us-ascii?Q?47Tw+CKkCfShmIMFDCl0RqjSj2Ogl3pmzcxgbZ9m?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: db89820b-0b47-49e7-eaa6-08da8018c489 X-MS-Exchange-CrossTenant-AuthSource: IA1PR12MB6163.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2022 06:21:49.3164 (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: eJXvVF9U5rbG8jjrsM8RaM/I0yXuQ/GWRkFaPH4b/GcL7fVZYk235eKJmyknzhwpPP3btL/rIBekVMKW0UP+pw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4002 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,URIBL_BLOCKED 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 Tue, Aug 16, 2022 at 09:51:32AM +0200, netdev@kapio-technology.com wrote: > On 2022-08-10 09:21, Ido Schimmel wrote: > > > > > > > > 1. It discards packets with matching DMAC, regardless of ingress port. I > > > > read the document [1] you linked to in a different reply and could not > > > > find anything against this approach, so this might be fine or at least > > > > not very significant. > > > > > > > > Note that this means that "locked" entries need to be notified to device > > > > drivers so that they will install a matching entry in the HW FDB. > > > > > I just want to be completely sure as what should be done in version 5 with > locked entries from the bridge, as - if I should implement it so that they > are sent to all the drivers, and the drivers then ignore them if they don't > need to take action? (for the mv88e6xxx driver, it does not need them and > can ignore but other drivers might need.) Yes, I think that would be best. At least when mlxsw starts supporting MAB it will need to program the locked entry as an FDB with discard action. To be clear, I'm aware that all drivers other than mv88e6xxx currently forbid a port from being locked, making it unlikely that they will receive such notifications, but if you do it now then we will not need more changes in the bridge when other drivers gain support for 802.1X/MAB.