From patchwork Wed Feb 16 16:47:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 12748798 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE1BBC433F5 for ; Wed, 16 Feb 2022 16:48:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236604AbiBPQsZ (ORCPT ); Wed, 16 Feb 2022 11:48:25 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236580AbiBPQsX (ORCPT ); Wed, 16 Feb 2022 11:48:23 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80072.outbound.protection.outlook.com [40.107.8.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71C3627FBA6; Wed, 16 Feb 2022 08:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bfFOppCktEebESWFbuIHYJ56BRPzYpvJs4P7Jk0697IgUWmqfhmc9txtSyaWKBiISJ7kL7vgu78TgIU1cMYxI+Mion2+4+iWKBGU3ebXFF+F985Noby9yyiOFPIKOWvEFRVax4XvkRsdp7iMKeMnFFpCU7uOAIyzFyYRRa3WcC/o864NdCGEKCc0NkoleN3qciaBPpi4ZyXiwthQ0RcQPIuXORMH8/nmhSBOsgKldIPgi7NMQAUEPjSISk9mRH+njO66wGbf5ahCBHEGASBsKnvsyovDrPZj7iZ25ba0jfOQrYpjgVT5N2xbZkVqVTmQ+wiD4t8r+Bq/EJzkuzCUWw== 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=OppAk68F1MgUtj6bgqjPfOk3WTkgLDTHksS8X3drSJg=; b=j/U5gRC20sWY45AniMaAQS5+q0dGTX+j//p/XLR3Q3oZyNHVJ+/GXN3NhpkOSHWyaCeXwbMqx18NWG0LpBEYX5IRsw09Sk8la3dNmBcBKy1PNkB1QufkDq5EEVX88JaAZN6/ePam0HWzgoYe3PQB8u33g313vMeDxVbJiobBIzKhR7uNzxw5+DCKvPF0ZyiEKDiPYuyQmVRXCblG8p6gvD+m1lkLn87vLKwg+LXmPUCC6vjMvsLDLgT8ytPzXs+55apIl70o4VctJScc9si/uLEhTzEo09B1L5ARhBYCQJcxVQi5byAHTOPEev/4kMtxQl9dzwgbUPv0wtlGmU66GQ== 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=OppAk68F1MgUtj6bgqjPfOk3WTkgLDTHksS8X3drSJg=; b=fujv2/sQr024RA/vu+BjllLOyyXToDLspr6Xtvny7xa/CCAYPdYLswcFGWeJvHm5XmNFj+P0MYQpQ35N44EMDhFyCgo4t0nTcxQ/+cymytW7SuJZw38GdSXkWgWPyjUaOwqbWcwKZurK4zlPAyivM7c81Uvd9u25Vdby007ZCCQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by DB7PR04MB4091.eurprd04.prod.outlook.com (2603:10a6:5:1e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.14; Wed, 16 Feb 2022 16:48:07 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::95cf:8c40:b887:a7b9]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::95cf:8c40:b887:a7b9%4]) with mapi id 15.20.4951.019; Wed, 16 Feb 2022 16:48:07 +0000 From: Vladimir Oltean To: netdev@vger.kernel.org Cc: "David S. Miller" , Jakub Kicinski , Ido Schimmel , Petr Machata , Horatiu Vultur , UNGLinuxDriver@microchip.com, Lars Povlsen , Steen Hegelund , Grygorii Strashko , Karsten Graul , linux-omap@vger.kernel.org Subject: [PATCH net-next 0/5] Remove BRENTRY checks from switchdev drivers Date: Wed, 16 Feb 2022 18:47:47 +0200 Message-Id: <20220216164752.2794456-1-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: AM4PR0302CA0009.eurprd03.prod.outlook.com (2603:10a6:205:2::22) To VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 481402cb-6f8b-4059-95f7-08d9f16c1bbe X-MS-TrafficTypeDiagnostic: DB7PR04MB4091:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MnMOx7XTvziFQ3OQ9KGZkscYp9ExrMNwmcyRzfCulSfpvOmGLuqvdcSnkDMmW1c+jEJvF+zH0a4rShv9FatfL5uPpJI6VMDTK50UNs3e3HtoOG2182x8rCWUV3fjM6CZ3fQgchn70esrQJPvd4yYU0netVRLgbh05ckkHviaINy+/FNvOIPGdFu5TkSatYu8UvCINpvzLv1SLCaxJl+GB9ckmIRqZcSngGe0WawvGV3MWxh9tFjMSFozaj4VU3VhVKxj/Qc0zCs/9OqKF508K7kxYHE46Hyi3A+WM7U1ZOlE96pfU+oIy+MZbSGmpsL29Z4ANKvNJFBRws+U8p07tVeC985NiRpJK+RsD87mQ9bCISq3yZf7pL/Suzlt/l6uzG20VkYg9IgzECG42uFOvSTZhghXFlQBdxKd7eYNUh/dPTPCgryo1FK6NJnKlFhKwjiv6ffVy2QA84AQxk11OMdKc+BDOuPx00R7BLCIBBUab0R6eW3MBrxzgbYkgiN3VZHczgtTBmh8Bw0YAyrLLWfbDUpCNaU7xVOOreOacrwQRrsPHfq+ZBqwgpLEwN1f6QUK5ljg2nE4uQa2hH/O3gO/wPKAhdayylKfZDvDhNkvv7Sy3xDmY3qLR5JOYfNDSk6UlQxUF5j9wyNffFoAFNFjldsKgHuGSu4W40lV/m2yBKCWSUc4065BEvKR/LUtAdb86A/cEeyY1pUxAim8RuCtJyF33GM6IWETWBbQKWYbDfJRKrBVGDhkOU5xTv3++skWWhYt1BUkt9XOl5ACYg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5136.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(4326008)(44832011)(6916009)(5660300002)(8676002)(52116002)(186003)(7416002)(36756003)(26005)(66476007)(6512007)(1076003)(86362001)(2616005)(8936002)(38350700002)(6666004)(83380400001)(316002)(38100700002)(966005)(2906002)(6486002)(66946007)(66556008)(508600001)(6506007)(54906003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: R641XOU3g8eET7DVSAnacoMdJOxmKtKKu1EhF6rHi3dXXn2jTJEres9aTwhM7QkwQDi0Vtx6bn9P9iQ/+RvX3coSKPxVbwvGfmitG/+tTu0GnoZII4iTWdQ2A+YjCZZb5+OXxlZOJ3RmgEyuNcgI9CK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4h63lWk0GRA+E9AG6GPZHNy5T/ZqPSPOE8zq4FsGp/S2lDlEQoaFWYEEage0bbblGfzZEybXogi9Fg2vsLw+2VX0RgtUx4N7R0Vcs3k0iAkzeuVS8CGt+oSmY899CDq1GO30PDg69wPWOufb+iaVdOry/UshKO5lb99WtIru4qfytuDNL3CBJGPKr4RAhwQPEjFotjNqCp6HlryT0nkiphWakgsHH06LoO3Gctf3KvDqJbVU3Zy3uNqMnQrYmRnusFPhp/tEqbwyeZlPG74viBRswvYN0wqijwU4HkdUQv26fcTAs3zn16/BUSVsnmWx6sSla5dDpgd64wLnmKPI85tf7roH/3HM66uUyZThFWMcqEk3mj6K6FZ6Z+HojcOFH4Gugd2bvQF5pe4XztdwoGHxpRVjbil0= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 481402cb-6f8b-4059-95f7-08d9f16c1bbe X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2022 16:48:07.6216 (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: kIu/XGQVr3X3R84JOWa5RxmaJGauEPQuuTeB4CkxX9xRb263oy2SlxmyTM1M5LVFFTu/SnTN5Rvg/j4q2qzCpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4091 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org As discussed here: https://patchwork.kernel.org/project/netdevbpf/patch/20220214233111.1586715-2-vladimir.oltean@nxp.com/#24738869 no switchdev driver makes use of VLAN port objects that lack the BRIDGE_VLAN_INFO_BRENTRY flag. Notifying them in the first place rather seems like an omission of commit 9c86ce2c1ae3 ("net: bridge: Notify about bridge VLANs"). Since commit 3116ad0696dd ("net: bridge: vlan: don't notify to switchdev master VLANs without BRENTRY flag") that was just merged, the bridge no longer notifies switchdev upon creation of these VLANs, so we can remove the checks from drivers. Vladimir Oltean (5): mlxsw: spectrum: remove guards against !BRIDGE_VLAN_INFO_BRENTRY net: lan966x: remove guards against !BRIDGE_VLAN_INFO_BRENTRY net: sparx5: remove guards against !BRIDGE_VLAN_INFO_BRENTRY net: ti: am65-cpsw-nuss: remove guards against !BRIDGE_VLAN_INFO_BRENTRY net: ti: cpsw: remove guards against !BRIDGE_VLAN_INFO_BRENTRY drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c | 4 +--- .../net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | 3 +-- .../ethernet/microchip/lan966x/lan966x_switchdev.c | 12 ------------ .../net/ethernet/microchip/sparx5/sparx5_switchdev.c | 10 ++++------ drivers/net/ethernet/ti/am65-cpsw-switchdev.c | 4 ---- drivers/net/ethernet/ti/cpsw_switchdev.c | 4 ---- 6 files changed, 6 insertions(+), 31 deletions(-) Reviewed-by: Nikolay Aleksandrov