Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5513180rwr; Mon, 24 Apr 2023 05:29:26 -0700 (PDT) X-Google-Smtp-Source: AKy350bjnroFyAAgN9IWb3KLcutu3EFxDjCo8vaDF9AUXyEzfP4spuWj//X5kcY0geD/r5RExs0d X-Received: by 2002:a05:6a00:138a:b0:63d:3a18:49ed with SMTP id t10-20020a056a00138a00b0063d3a1849edmr21063899pfg.15.1682339366445; Mon, 24 Apr 2023 05:29:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682339366; cv=pass; d=google.com; s=arc-20160816; b=CVARLBlTtXmMKGx8+VTAAvRikz7u1VPqXwrTezJKNaVdReVMUtajDoIlBYeC1tHWt7 u73jWbdHfn5c52hP7JHODBwLaBcd8u3SGwxfkFQNTWMEPjCaN23MjDUu4RLn8A6fYLc9 5xXt4eiXYboHSb2g9zCv77JtlUT6V32+Zql1sBL0qoEywoRczbVGsUYUlrK2wKT3iknR gXZKq2WhWQOv02/D0dION4wpkkCt6kYvpDK7ad2R1oXS8B47ZVVCs4TfL41r08ETIa9B oamrKmBrf0o7qWZCG1nMHGi8XKtRb3TMi8AFiumXla8zJ5Wd5G5hGXW0mYa2gpSxxP3p lwMA== 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=orsDDOKKh9G4ZqtA+JbrZ/6al1+u8m6mVsti6x2RSZ0=; b=YSEVjTdQfDmBAFxWPAe4mr8xCiO3afBLJM3uQQtwp0OLLqn6/ogX/wN05VepvqbWNO wZw+RNv5MszehWEk5tnVm4PcMW2KqCIUizlwr2+Tx5qqNT6HkcJWdi7s6mcZCIIKyvcP z5nskY5S3rHFVUCkQ8aNjKD8602Y/0HzYmyvrSjevaOVHxGsu7chuT0WMDv2FJZ4IY6j dPy11Mw6637slvwlHjARUIAD8ptMSFbIEOn+oaOuJxoaECuZOqFn41E0+ZKl2KBVOX/V SLpGAniyRKT7KEve/DMMKMcAKyimmLJ6IaWABWovCHfGeRB+5+Bzx5a/oTLEg6UldyI6 3n/Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=FdFeaLFb; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y3-20020aa79ae3000000b0063b89861ec1si10869984pfp.361.2023.04.24.05.29.15; Mon, 24 Apr 2023 05:29:26 -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=@nxp.com header.s=selector2 header.b=FdFeaLFb; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231207AbjDXM0p (ORCPT + 99 others); Mon, 24 Apr 2023 08:26:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjDXM0n (ORCPT ); Mon, 24 Apr 2023 08:26:43 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2085.outbound.protection.outlook.com [40.107.8.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DA3830C1; Mon, 24 Apr 2023 05:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vw4pidcMSYGiNgU8AsBaQOlVUo3CIFyDcefzg+GwQpEs2ivmyYyO1P8ndZ5YrV/xomeM4s/6WXClIEU1WQE3lM9c54Vszx+89AIRgavxg8yi53QsqMf3htPnJ+FqJC7dircXckUZOsjqOiHmMIx8zamiM3bR3NVuw9iiH2Kk7GS13O33nwhoXIsO/VQoX1Ljzii9lzPG9FNNRliD2xeQteBPjZa5HtjoCxIF1WkqbGoeg6PWsJDUTAvfDmVKwQLajxvMyD3qNnAuUsg1L2VxZqdqYDMadR/k8ITHtf/0Wi6Lzb5858v7E2QItcANpz4FCtsOSVy8lX2UL0C570GdDQ== 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=orsDDOKKh9G4ZqtA+JbrZ/6al1+u8m6mVsti6x2RSZ0=; b=mXIuQEBGM9ggQGDVhcm1lRE1HNYLGhebyj5TohJ66hd74ZRwsr9fz0xUJeL6bpllpqHw/awugkJJ8vnOvpWQ8LMxGQXz/g1GMAzKavGgdQFxzCf/cY8/yAR0YbWm5D2IsyU3jQVjdR3neZbHYRFBC7koVr3St1oeUQWiqBKR0MlhTr83zK8oESreE1PcikQEUMaCh61+7g2NnB+q5V1fYLZ3Sf9mECFzgx4GSvNygimIFS8HjARDeKGr0Ci+HfTP3Z/AXx9luQ/RQE64UDTLU4LsqZ1+D4+ZF+S1acA+ROZeEpdttHVAlvH43zzlRDjn7hDeOJGZZVVmAXn6GVNKlQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=orsDDOKKh9G4ZqtA+JbrZ/6al1+u8m6mVsti6x2RSZ0=; b=FdFeaLFbWNRS344QZX/4ayM8HEiU/IlgU2qNeF500NUHQrGDDXJY7bVd0fCzp58zaAdf4tsDDigANHDgqJFCugNHXu1KVFzQPfm9du/U0lsnK5Zx7Gp7qkbr+4ZnkNWLWd4a4UQr2N1UE7tfmVVziJ6gDF4ROscU5gwTE6PhGZ0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6454.eurprd04.prod.outlook.com (2603:10a6:20b:f4::20) by DBBPR04MB7898.eurprd04.prod.outlook.com (2603:10a6:10:1ed::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.33; Mon, 24 Apr 2023 12:26:39 +0000 Received: from AM6PR04MB6454.eurprd04.prod.outlook.com ([fe80::fb31:f749:38c8:4e87]) by AM6PR04MB6454.eurprd04.prod.outlook.com ([fe80::fb31:f749:38c8:4e87%6]) with mapi id 15.20.6319.033; Mon, 24 Apr 2023 12:26:39 +0000 Date: Mon, 24 Apr 2023 15:26:31 +0300 From: Vladimir Oltean To: Hans Schultz Cc: netdev@vger.kernel.org, Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Ido Schimmel , Roopa Prabhu , Nikolay Aleksandrov , Ivan Vecera , Jiri Pirko , Jesse Brandeburg , bridge@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 net] net: bridge: switchdev: don't notify FDB entries with "master dynamic" Message-ID: <20230424122631.d7kwfwmlwvqjo3pz@skbuf> References: <20230418155902.898627-1-vladimir.oltean@nxp.com> <875y9nt27g.fsf@kapio-technology.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <875y9nt27g.fsf@kapio-technology.com> X-ClientProxiedBy: VI1PR0902CA0026.eurprd09.prod.outlook.com (2603:10a6:802:1::15) To AM6PR04MB6454.eurprd04.prod.outlook.com (2603:10a6:20b:f4::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6454:EE_|DBBPR04MB7898:EE_ X-MS-Office365-Filtering-Correlation-Id: 882edc58-a67d-46d9-fc10-08db44bf2488 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QxrnpEAmxjBvprUjd9nSQpHayeBXAEX84trlBiLqsSOZUydfWVND6EH2e1cDjYUCsfL/wNL7Y3xFCgKKjt2E+pJTd3Suz2dkcXYR/YQFrMZBn69hYgeJyMsCn0yMArh0XQz3k/hDCjkXSRvWIB/+xYcXr/MRjlJSKZP/vYlhJqAzAlDVY/o3QoO6cgsJl5rGBQYRwGLqQLURFxEbw6bhN8Rhz3iOpbWkqhoRIwcvjOWAeG3eekeLq2f8+KL2L1U7aw4Q+yNg/ltbe7RSW9wI6iYRW3VeAJ9saeBg/S6xFgBUgA/Ov3ui0GxeVIGNAjBig6GRNDDb/rQR33UI+8+s0tUenPKyNjKKZn4Q+6eoiA9EPW7QTjT/OxP8KOiahbVuMJLusgI/QGBgmyHaKRR89xe3y++j3HSi/k47KRECl//iCJPbDikQdw6t0Xy5U1znb+mlTYU6ShGaB27aU8ixZam0C6i4gu/ePTmhaSY9nUxva1xab2wYqxUFtHCxOaqo4AGnL5Y0GSdxBUw2Y4E+wLKV8TX28j+Rjpd/19OO8Fo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6454.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(7916004)(4636009)(396003)(136003)(376002)(346002)(39860400002)(366004)(451199021)(38100700002)(966005)(6506007)(6512007)(9686003)(1076003)(26005)(186003)(83380400001)(44832011)(2906002)(8676002)(8936002)(7416002)(5660300002)(54906003)(478600001)(6486002)(6666004)(316002)(4326008)(6916009)(41300700001)(66556008)(66946007)(86362001)(66476007)(33716001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?f2HCd5LTtF/4xvyics0tUIkRscaNrCS9Ho4dVsKCsvmDwWXGMRZOzo1gVKkB?= =?us-ascii?Q?ZS+Np347MLAI0s1ZLNJ0mSA7UqFkhk9Lg9x4C0bczwe7MhhhnaIWJ2eNgAbW?= =?us-ascii?Q?FUi/CoBjOVFil30VAo2aCGm6EeyjqXDcaKcDT+ZtKyUW9upPqlxRwYNFpxCF?= =?us-ascii?Q?6SFGx/grpcul3HTS1sUGa9R+ex90PO/U/o7oQQtuF4Jmr5neawvMMytmzSSw?= =?us-ascii?Q?RkWLXas8UZbxgB5QTDS4mMpPqMLwYxQnRpjhoYusTvZwsLxdHEJtJOZUfFJZ?= =?us-ascii?Q?zgTNC3G/NbEQMmFtpBTEkqvOP/2x//kyNLQuZoRMlINLlzzqo6XdwmhGTDqY?= =?us-ascii?Q?ozQcTzU16iI9Kc7KtNwc4NrvhddeDR5HuXqzhajCIV0HUCnK4YOprpgO7h2Q?= =?us-ascii?Q?5KhD5CaoRCLXYIH8aMjEsLza2gesKyFwOOO7AC9b5Njek9M7vJ6hhEy2qLh5?= =?us-ascii?Q?zsHEXMZV3EkOdULoaUWpEyLwcvImbB2okFDCUqAKQAhujdjLqxSIz9zWANfu?= =?us-ascii?Q?vrygS88vPsiIs986V7PLlAs6o40yETcGaK5tfcQ8x9Ujr6MJYxuMmPOIoQC3?= =?us-ascii?Q?sMvSyGnwp4vWUnoj+PGV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Q?qaiipKLs3OgWWSXxNO1rF51CntH/qZ25c37vlKwyTpzhE46H0FO1Dta3YORz?= =?us-ascii?Q?35uQi49wtMj3foyr38Fyh84z3srPdj/0OBd26c02x2lCEDpKj32JrytY181s?= =?us-ascii?Q?6A=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 882edc58-a67d-46d9-fc10-08db44bf2488 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6454.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2023 12:26:39.7461 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2ywN5bp9fgALwm0jowJLPHoqNBdfgN7r6Dnb07UO5jgd0q8NEpHSq0brmmhUwhzOB/7cMqM33BJu790AZMA+ww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7898 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,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 Sun, Apr 23, 2023 at 10:47:15AM +0200, Hans Schultz wrote: > I do not understand this patch. It seems to me that it basically blocks > any future use of dynamic fdb entries from userspace towards drivers. > > I would have expected that something would be done in the DSA layer, > where (switchcore) drivers would be able to set some flags to indicate > which features are supported by the driver, including non-static > fdb entries. But as the placement here is earlier in the datapath from > userspace towards drivers it's not possible to do any such thing in the > DSA layer wrt non-static fdb entries. As explained too many times already in the thread here: https://patchwork.kernel.org/project/netdevbpf/patch/20230318141010.513424-3-netdev@kapio-technology.com/ the plan is: | Just like commit 6ab4c3117aec ("net: bridge: don't notify switchdev for | local FDB addresses"), we could deny that for stable kernels, and add | the correct interpretation of the flag in net-next. Obviously we have not reached the end of that plan, and net-next is closed now.