Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1476475rwe; Sat, 27 Aug 2022 09:00:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR45Nk8Z0UH6WjemBXDleHIVbh3Tpjq30PXaJIOlZulGGfiFaPELFANiTI5Lzto04uXLkgon X-Received: by 2002:a17:906:9c82:b0:6df:c5f0:d456 with SMTP id fj2-20020a1709069c8200b006dfc5f0d456mr8792339ejc.287.1661616029288; Sat, 27 Aug 2022 09:00:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661616029; cv=pass; d=google.com; s=arc-20160816; b=xSn21fUzRbP3DApqmwS77bqTkFm8jvqabjOLHgs68ncNXto9aDikPl/jAOQPlWXoE/ pV7Y5n0ytn7TdU5+Xqn3EEPIyMHtvQlBkRFV5JwvXkcWVU8bK7t3mWBnvu/HaKYuvmfY tVFf4L+xbaro2onMlHe9bWVOHBDUuNqhvKxq/ESwx0jepnMV1OFGrpx6JiG6cgtISoVd xitUQCkQHLh2I59hBoETwymIFkexKdnEs2CgzML+U7JBCOdfAcxVeXuZCJu/62YRDiy4 8tmbNhpZ2kpwoc/bsb0Lkynrk8gMYMW0fjeP68Wtb8DUI7Cx6xfhi5BiBE8EhHrdY9kb yVpA== 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=1M2HrqLpQSUZ6FrdfJ2qAbOLMtoL8Um9KiucawV4qNQ=; b=f4c2M7H26uzdV4S8VEyMQY096kWwPSe5nv0IiJZSg6bJLENSe4eFSfKFex0rTfONy4 7R54EMlk7djqTDuPhITlqIBiSA7okfHl34v+V6EehMRfPUFwIVjon4EFcjYR9Io8hxqE OEsZkSilrTQyhprp/CW4gh9WbdKG44jIhOw3MxpfL+47NGNWwpf09KoPrkJsdsJJFRea jmbu3derzXv0O6GWfZTENsDrko2Ox+cfsCumcr6KjXwV6Cyu511mjncUtC+Bx0VdHIr/ ethGDVWljU8ZmhaTcYPk0sfyr5x2Cj79HBth4/HndanDD5Yj8HIBzkDRF1EeowXeqaha 6ELQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=asEsIQRo; 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 bo15-20020a0564020b2f00b0043df9ca3ff8si2872665edb.50.2022.08.27.09.00.00; Sat, 27 Aug 2022 09:00:29 -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=asEsIQRo; 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 S233555AbiH0PqR (ORCPT + 99 others); Sat, 27 Aug 2022 11:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230144AbiH0PqO (ORCPT ); Sat, 27 Aug 2022 11:46:14 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15C48696C6; Sat, 27 Aug 2022 08:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YkqWvtTj8JgrAWHY5AGj2qRP/maBfEnA/FmkcI/Br4/+YQ7r3dGnPQf213CcVq8SPwUJ06BPKTTixjHCvpFyjyJKp9DMqVFp9mN+sm8b+94XWRabdy+HqCU1WC/zPXBBLQsV4arRnXrDCZWIWWDlWLGGpZMxf8t81Hnk/yQpCXyQLf9euHcqG3vebuzotMShfHNXgZ6Od2Fn6nCcyJr6l/4TDuWMz2E/lKacdniUYYkkbPAYlWIKj449sKeg3K8B8EHn9bxlDlrzz4kPKgwhwW2q1eR/0mG98KwoplH4Rf/wTRmb833qwTtLvtjO33XCpOEvHdsWmy3EnKjP9yGIvQ== 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=1M2HrqLpQSUZ6FrdfJ2qAbOLMtoL8Um9KiucawV4qNQ=; b=VTbOVOi/E6wUKtZfD9FzqcnObK1kysT+7JHPkqK3BsvJ+dTKUJhFEF/vYU1wCgVO4KkfVGy7UdTDNT6rJ67X4Tx3VHsDp6Ts7QnUp+qOHJXNm36JJ5pSe0vJV+utuL1peqDpg+ofUjO5FyFvGFND7aIek+lkIBaOQzeNfhPX++R5dvwluwi2vY8ML8VVUjZWxYX6fGuVJPHf2v8lS+R9OV+4VjlhOiaOAUTgn8B35tQWeVYTanAGtwX3Ilm4+CxkNp+3peU44b0FJHXkL+FbktxSSl57+y2q7UVTAU8FYypw2a94gd0aAHiY7RkxXatOPuRTXVpq9wF948k0PpPtbA== 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=1M2HrqLpQSUZ6FrdfJ2qAbOLMtoL8Um9KiucawV4qNQ=; b=asEsIQRoq5KZncpva0RB8kkY66U6tRsrJOV0Gr6Z3HqF3jzEoIgh+pSiTijBuxfjFOYrjPe+XNavqcOcUlWEXINsMJOOJc68fBxAwpAsqaP88L1H8yIYJSGZ/JM/r2wOHYuqBLcgI7oKZ5T8hEz0UKWTJkN4Ivb7xb19Bjle/r6b0DgCHhjqCBJ2Lu/ldCqah8sngvURP4eLm6sbpDvDa7zi2hMmyavtn8P+gwQ/EAAKs2KzLeae/MouE9RCGuENk3xLrNxzwOvuAzRV1E5oXdN0RobKVVDn0whynoftc6zelqeztZmejowAcgJZvE+V55ZOJQJJuui5C8bSPqdRkw== 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 BN6PR1201MB0017.namprd12.prod.outlook.com (2603:10b6:405:53::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Sat, 27 Aug 2022 15:46:11 +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; Sat, 27 Aug 2022 15:46:11 +0000 Date: Sat, 27 Aug 2022 18:46:04 +0300 From: Ido Schimmel To: Hans Schultz 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 2/6] net: switchdev: add support for offloading of fdb locked flag Message-ID: References: <20220826114538.705433-1-netdev@kapio-technology.com> <20220826114538.705433-3-netdev@kapio-technology.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220826114538.705433-3-netdev@kapio-technology.com> X-ClientProxiedBy: VI1PR07CA0271.eurprd07.prod.outlook.com (2603:10a6:803:b4::38) 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: 9a3feee7-eff7-49e6-d452-08da884343de X-MS-TrafficTypeDiagnostic: BN6PR1201MB0017:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yKBn72tHZc2l9sIX319NFZU2P1wl3LlFtdA68SUDvRJU2phnZ5LNKpuDtoXpjMrbaCzouHUuxMXWySu0sP7ZDairqtAjjlZMjaf1cTBOeIWOioEv9DovcNuTuApQZ8igG5xTZbQh9kGuo/A/7voWi8bbEQOkhrdlx6oju1VJSnYPgiPU6bh/01NLfKLtwj222bfj2T2pnHPXMH0ctooXwSMxIMRkWi4UEoWoP9xOnws8oFMewQ9vnxW8aI9kXgJJJcGn129I8ZvOGpN5//J0xikyofT3QNnhV1oajUlTX9kZMPJ4ySeHcDXD/ukc4xGbp/pVUIMgEKla8mJUcpfWTDwog3Hsfwllh/lrtm/QRke3W0OVoduA3dnRm2bEA4YiXRTxebYJyjXZDo0p41QttSbwTg6YCP7nkspXhxlibXnOcmkHEcBk5YroB0CdC/RlblM4v4KQeVfIydFs/bzN//5/gjwOw7YyFheVUM9P5JUM3NsYeLIBrUkJxIhYQbrvPxB9xt5seTw3MrLqiL8157Zy86ILVXDVyAQAtE9ORZb27/mUaJi8aKksFF2qOpPzjJ5zbX0/wAF67Nogt2leCOVdioPyMEKaPaB3pB+xY4h+sJNbDtxouRccNZF7LGvwQOqKY4MmyYhGAd4NrUYcVBqIHxiN+51FB/AOSNEwTbzqCalhq1Ssw0mW1udNgXdQUetoyLN2StrLbAQBdg7XHX1zgBa5v9DuTxQYUkxXNvR3S7Az2JbKogFj5xEh3JUUDd+exNY98HdkCCOGMKwacO4t4Vh9JSWmk8jh/9du0vw= 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)(4636009)(7916004)(376002)(136003)(396003)(366004)(346002)(39860400002)(7406005)(41300700001)(6666004)(4744005)(6506007)(2906002)(54906003)(6916009)(478600001)(86362001)(4326008)(966005)(6486002)(8676002)(66476007)(316002)(5660300002)(8936002)(66556008)(66946007)(7416002)(83380400001)(186003)(6512007)(9686003)(26005)(38100700002)(33716001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?1UtIJVvGyukyhuZgfpec8cDVFMWgdafHa7aToWDQJWnvg+cljQD/A9k+agaS?= =?us-ascii?Q?Wlo/Rt+DxzKaZ+HlkC3h1JSrEf/RVl7dpQn+MOgzEevoM17o5484kwfJx4UZ?= =?us-ascii?Q?ZSDFc3FW2x4tTYXw1lkUElfwTXbi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?= =?us-ascii?Q?9Oq2/hpeYyUDZPxEWjW4tEZ2ZubS42phqhGHkAB1zFrDWfoYUrCaGH8snuaq?= =?us-ascii?Q?EM70FTHtTgoy4eGJZkv3ZF5NULDKPPu+m8y1jOmJmLF5zoDrbV9emAp9Qkg3?= =?us-ascii?Q?QvC1E3hBTX/Pd+Q5PqxLqO3huoizbt0dTLYHQCtimqVO7QhPMLbsm1RFnwbt?= =?us-ascii?Q?MJifPEKzSp8SJV11/oaTltSXGN6KPujCXjVASZagMjH4mJaL3wCN1gQXkLhH?= =?us-ascii?Q?7HGVhPhPL7TOcHuIbWgqhdzLl/7zjWJlc1ZkgBGQ0pRzW4FUfFyp9dOJUg/v?= =?us-ascii?Q?Iy6o1QL3ukWCfT1detIvWCtwTnLZZWkC0exL+lSDeJSm36RPtFq8U2ixJ83Y?= =?us-ascii?Q?+A+g6b5KNPxV4IJU4DZuDUSOtzLe+FOG0EGazW1iXSkVtQh5yhzFTv3tYmMH?= =?us-ascii?Q?QV+tyU2i7fiXozYls/pARcMw0y78cbR49SvAMm1fd2K0OWBxES98mk7GK0iH?= =?us-ascii?Q?MSNBP3wdWu03kegD/DphSeefX9v8SLu8aJniyULjSCI0HsU75cwCzNmrwdcL?= =?us-ascii?Q?HqSu/70MGP+c4ob67QxielnZ6Yg87/s3DsIjGKIa?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a3feee7-eff7-49e6-d452-08da884343de X-MS-Exchange-CrossTenant-AuthSource: PH7SPRMB0001.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2022 15:46:11.1083 (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: 1hEfdPQFV0arqRAHuZ9McMCcLhfkacXaTbvsefUWtnLntj8EjEm3kehV9+zji2aujIrpvoKRFRPsuKY1Ga3CEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0017 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 Fri, Aug 26, 2022 at 01:45:34PM +0200, Hans Schultz wrote: > diff --git a/include/net/switchdev.h b/include/net/switchdev.h > index 7dcdc97c0bc3..437945179373 100644 > --- a/include/net/switchdev.h > +++ b/include/net/switchdev.h > @@ -247,7 +247,10 @@ struct switchdev_notifier_fdb_info { > const unsigned char *addr; > u16 vid; > u8 added_by_user:1, > + sticky:1, If mv88e6xxx reports entries with 'is_local=1, locked=1, blackhole=1', then the 'sticky' bit can be removed for now (we will need it some day to support sticky entries notified from the bridge). This takes care of the discrepancy Nik mentioned here: https://lore.kernel.org/netdev/d1de0337-ae16-7dca-b212-1a4e85129c31@blackwall.org/ > is_local:1, > + locked:1, > + blackhole:1, > offloaded:1; > };