Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp344722rwr; Wed, 19 Apr 2023 23:33:55 -0700 (PDT) X-Google-Smtp-Source: AKy350YerHjIy3Mrsbwz12UVjs3cH9hsGGOPGjnnsA3jXvKlWR3ksbFZU07biYsmuekWUnPMfyWT X-Received: by 2002:a05:6a00:2291:b0:63d:4752:4dad with SMTP id f17-20020a056a00229100b0063d47524dadmr90992pfe.31.1681972434812; Wed, 19 Apr 2023 23:33:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681972434; cv=pass; d=google.com; s=arc-20160816; b=SnZ0mmh4OD0i7ai/zSv7LuocZwPU9PH4DIf2DxEF20FBjXKeYCi1g/ywrQDwHHMKfP btmlPbafFjRv9pl40kcmsMLm/9uenQ9obulcmaQE3pRXuq5rQR96iqfP9MxOKH07okEl ZSOJIK0SCXo7wsPVilfRLEuY1sISymsj0cw2ioRlHK1qAlk1oyf+YxvCW2F23RJnd/dr edwOWpWaLMIUjV3n4KzoXfEebvbByXmazaQUHpMwlmCPHp5+EPzWtqELxNj8tfa7sKQA nFAJjuMWyaAh7c6GvWxxQXHKSezW+leBP4lauYnCgeLxv5MGRcjEl9miVTUq+bJkfOmQ WC5A== 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=IjBVh9FjHVYSSz8aul7WM9OpX6cO86Kmf8GjigMIvBg=; b=FUMlU3DwVztm6hSzYbYFhrv3HFtYkorWzqXvKcNY23Ap9ZpQNSgsAQCDkv3UpHpxs3 JJpjrUby1SeiLI/WkdYXRRa1DRJF+etnW4uo9LtBIaMK4gS8P4PmPd9kzpcwK7OdVEfD +8GuMYjlILB12JuUPN41ljzK7bFg9JQ6s6lmtozD+ABPqFdD43AKx3Q0mcGZbNNcxvly 0mr5Q4+XgwXKS/M4mYBVGlCTXCI1+s3gJt5IDqUW7ykCx4rE7kWFKKhgmaGQhJmMYlzw vxcItlqYBjBWFygIMoHKom6Chy5G1Q3oXG+xt41wg531Y0T0Wy7ZtKCHtpBMA78amJI9 uHWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=gdBxf9qV; 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 f16-20020a63f110000000b00524ba819b3csi612163pgi.443.2023.04.19.23.33.39; Wed, 19 Apr 2023 23:33:54 -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=gdBxf9qV; 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 S233890AbjDTGXu (ORCPT + 99 others); Thu, 20 Apr 2023 02:23:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233869AbjDTGXX (ORCPT ); Thu, 20 Apr 2023 02:23:23 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2074.outbound.protection.outlook.com [40.107.223.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC2CB4C13; Wed, 19 Apr 2023 23:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TXRpRES/ctZRZyDYzk9KU/zwqGusLNrrHWNNlTCLrxOgwDWsiyAtH36J6HThagAbKB8LtYrZVXwvnoH5/SZJk/fdkLLdu3tmjG6W9nakUFeTLVnO38edMG9LC8g41Xp2jUofMTbuwphbQ49v8HfOTmkWnyT+9O6qFAHiBdt/daKWTWg07LRqZOeQRNTKYcZ6uxspmVnkvDVXnYQRd2R3vw+sxQraJTXMcrBAC6X7JDlsUfPTlUwp20WPQrCnwthKBlwG1IFoJAioyITfJtQwZu+sXvkVoEYprfrwSX6mJD29va6dtVMwcOa6JAwYEXwzz4ypdGcMhF4Gq0R5kTHAdQ== 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=IjBVh9FjHVYSSz8aul7WM9OpX6cO86Kmf8GjigMIvBg=; b=l/LEZ7jvKX+LqHT7eoER/EYr0VVZJXU0fqHvkRdB8853MGNnEIqFy3cTKUYw8eAFbrfJ7qgvg+wv0TqMJPsr9s6YADNwVDruVh6jwxulAhvde2+7l9CCR1k5U1SN/S7xrnT+LZ2SfZS+mUiWfnukAAdVb1mWooioNlUYjxatMoHEsKrz3PgZHckBK3TVRMsmCpxvfKhEc160vhWEX53v7ql7FVMCk9PKRQxGC9DOUeXfjiw7J86NA/p6Kx5k7Bmvob24MJ38st2qKt7SDdyMKPG3OjdIJZDCFdILPmYJuRu/VCAGFv3MaP5mwfKZX7gvzTfeyoibzYE9gWpkZjVIbg== 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=IjBVh9FjHVYSSz8aul7WM9OpX6cO86Kmf8GjigMIvBg=; b=gdBxf9qVukuSHhACZ+V+XqErmKpmBHrbD7mca5722mRhcVW6b0l1TnOQ0uxfGqTI5BkAQDaaecV1+xVuv9KRPPlSneAswJRUJY2AgbpVoywrqQqP/rHJn7VafW/U+KWxAQpy8/qOsCAZKLKdbTQiHP/lb3wqQcHGN6VNzIwoiLnpadQlc1vW6+1MZ2/OX87A71MR/o7ehd2W+8KBH7XXuCOZjbzgoeL0rYZbrf1HQec8huwhA9kLwCmzfuZhhd6Ddm6s/8AqPUYB/z/jR1XoExyUpZLRHBJ0tOZ+LbnAGT1Z+S/Q993af1PZdxcyxE4LWr+wISKQYl9XPlwKIBaaeQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from CY5PR12MB6179.namprd12.prod.outlook.com (2603:10b6:930:24::22) by PH8PR12MB6865.namprd12.prod.outlook.com (2603:10b6:510:1c8::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Thu, 20 Apr 2023 06:23:19 +0000 Received: from CY5PR12MB6179.namprd12.prod.outlook.com ([fe80::66d8:40d2:14ed:7697]) by CY5PR12MB6179.namprd12.prod.outlook.com ([fe80::66d8:40d2:14ed:7697%5]) with mapi id 15.20.6319.022; Thu, 20 Apr 2023 06:23:19 +0000 Date: Thu, 20 Apr 2023 09:23:12 +0300 From: Ido Schimmel To: Vladimir Oltean Cc: netdev@vger.kernel.org, Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , "Hans J. Schultz" , 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: References: <20230418155902.898627-1-vladimir.oltean@nxp.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230418155902.898627-1-vladimir.oltean@nxp.com> X-ClientProxiedBy: VI1PR04CA0067.eurprd04.prod.outlook.com (2603:10a6:802:2::38) To CY5PR12MB6179.namprd12.prod.outlook.com (2603:10b6:930:24::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY5PR12MB6179:EE_|PH8PR12MB6865:EE_ X-MS-Office365-Filtering-Correlation-Id: 46254599-6327-4454-59ef-08db4167bbed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6HUQ/4stwyuupBiyiic6i/6lfeopGptdcTiQjmsxGFLtbBAXnxHflfhu6isYo4Z76l2lrhSWxbNyF//dV1icgFM7aZnbdb4aPqdEUN/jloGR+lncPz6eVpgVHm3NNvbfiRuF0tviiAV12AXOGTfWwo6r/yg38o6N63uDeyC1co79p0c9VuEye/mjCIvAGUp5m19TwPRvANkJWJgOTZ4QHO/vtfqeqe8Aunix5/7Gi2T6b/DJ16CxyQ/tya1gHOjdaH+9sQi1JWLIP14oR/ugXCuWNItG6kOr9GONwlJZeVFpMeNbW5W88T2bowaxH7f6jZr1HCwKuFeDisYQEyI36RFdrks1k+WCisib2Zn5qv4qp5C8w71N8aswy50y5bg4g6cBUse6r0+aGvaRRafeu8u+B2BY0DVABZy7c25mkmcamr8WtInwzHae1LO8Qa6mjvhBXrPLQa/CiBSmTxKXS5yKL6DWE4Av6n9fO8p9QNO780rfpm3MXvJf56nnqIiZ9Gk4sp8XKRGbUsP8+eAqDOiTGpKLdGqL29aG0pi3SlKTBON0FcbFKICMH0SF9PKAtlGG0ajPFJwBsKCtonDgWNi7GEI26x4cjXqatP1qHH4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY5PR12MB6179.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(7916004)(4636009)(39860400002)(366004)(136003)(346002)(396003)(376002)(451199021)(316002)(54906003)(6506007)(9686003)(6512007)(26005)(478600001)(41300700001)(186003)(966005)(4326008)(6486002)(6666004)(66476007)(6916009)(66946007)(66556008)(38100700002)(5660300002)(7416002)(8676002)(8936002)(2906002)(33716001)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?8Vy4BHc1532HisbyFSQcYIJJ2rAJ1K82nfffgLT4Gykt3k5WE3jNBzZ1TmDs?= =?us-ascii?Q?UhLHp+By/2xPmj4wqMK3Ay3njtr3X+O3R2jJ81ER/RKpl5gw4uWG8uY0at/n?= =?us-ascii?Q?Cw4/bjtNs/Gq2ZAt4v2ZC5Ac7rtx9nCyCCqqZDnakMS5PediyU5KubGjqURg?= =?us-ascii?Q?KyUGBn5uhBg3/kGLzdlnReNNjEFcjKygV2k1nZDa3y7EDUDDB4IrKscZ1V6F?= =?us-ascii?Q?y3d+OK/ApKwN8AY5wp84+BdOYfdupXNAsFTvo2CZ+ikqEFmiX+QvntrrlwFk?= =?us-ascii?Q?i0NdlGFPtOwh6+K5txSpyLSWtgfy5Fme18QRMj8QhfhPam+lQjrW/xQYnkLK?= =?us-ascii?Q?sH+wstuaatUoavZW2DvrFTQ2FBr+mWVD40J5ul8ag3QTaNkRX93wrrQHNfAs?= =?us-ascii?Q?FdB5M6eoDQbQgIT33JVzLBk7vfbFC2EnlEHREWAWLSL7sGW1WojRyJDvaxOG?= =?us-ascii?Q?cMweiadhViRUetaBgr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RTCFFVQa1p74XjL?= =?us-ascii?Q?xjER18TnkzYHpsADahz5OGfR7ExK+svLVRB7T2f/BiiQBzHgx2SfnnxQ1XZA?= =?us-ascii?Q?Aec2QnDzCITz2hyTJckE//PYMUSGQh1K1rVVErgqGY9gGRh3VUHF+5J3c1kB?= =?us-ascii?Q?xdQwRrrBe9KxLbQ+XkXU4jm11tY1u4PVoXSfmWc48BMhIJGHYMDw/l6USELL?= =?us-ascii?Q?W+AaZFMxxfrJzqkLB4l2hlgv6tYwCITzBkf+L6uq?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 46254599-6327-4454-59ef-08db4167bbed X-MS-Exchange-CrossTenant-AuthSource: CY5PR12MB6179.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2023 06:23:19.5747 (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: Am+OlPJTfPTPIg7pquXi+x3xDjYgHHpUnWVXjeMXTdfqcvTHKrwjCdE6+aS8eLV6mQNAlRRYYPJaJFF+TB7R2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6865 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 Tue, Apr 18, 2023 at 06:59:02PM +0300, Vladimir Oltean wrote: > There is a structural problem in switchdev, where the flag bits in > struct switchdev_notifier_fdb_info (added_by_user, is_local etc) only > represent a simplified / denatured view of what's in struct > net_bridge_fdb_entry :: flags (BR_FDB_ADDED_BY_USER, BR_FDB_LOCAL etc). > Each time we want to pass more information about struct > net_bridge_fdb_entry :: flags to struct switchdev_notifier_fdb_info > (here, BR_FDB_STATIC), we find that FDB entries were already notified to > switchdev with no regard to this flag, and thus, switchdev drivers had > no indication whether the notified entries were static or not. [...] > Fixes: 6b26b51b1d13 ("net: bridge: Add support for notifying devices about FDB add/del") > Link: https://lore.kernel.org/netdev/20230327115206.jk5q5l753aoelwus@skbuf/ > Signed-off-by: Vladimir Oltean > Reviewed-by: Jesse Brandeburg Reviewed-by: Ido Schimmel Tested-by: Ido Schimmel