From patchwork Tue Oct 8 10:46:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 13826191 X-Patchwork-Delegate: kuba@kernel.org Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012008.outbound.protection.outlook.com [52.101.66.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A52B618CC07; Tue, 8 Oct 2024 10:47:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.8 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728384433; cv=fail; b=HudayDHPkXSDERRBds5TMZSEQLuT6IgsIiZxPv5zMNejXsCfmnTI5UE9Gb7qVKL4J7/RIGs0UhlhgvLYvbMEz3Kodf/1dPLKrMWwrVvIDOGHtXHQs6MKqPlCTKEm1qGzsQBtzEqUoRB8BczWfDALpCFie2HbdiyUuuBUxGEiGYc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728384433; c=relaxed/simple; bh=T/q3ddQK3mVBOCaIfWDeOqUk0EEGhMxmegbJItua4Pg=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=ribX1qBOi1m4IETna4fUi+VfU8I8Dn5CU6gd9QLfqhQZmKzLnPmHSBhzMexM+TNwdZK1yS9teZEdHC12q6HbVkxP6E685lMocCDwyZ7DilLwPutF9LJlrO1nHKiooOeDweDcKvFxhdf7h89zx3QYA2LZ3uWpCwKC4CoiRfl9KdU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=nCKqZ/yk; arc=fail smtp.client-ip=52.101.66.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="nCKqZ/yk" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gNZokYyuWtSKu3NWpbjSWiwexQOXXuXke4lXkQuO7c8pHot5WzpWiUiaQZIF3q402VyRH6S0UEDmLhDDK7pCmofVAEWDsshOSPayHGj92Uce7B05DniHua3qZLVFrY7T7bjIkUnt4MDPoZNJr0LWLkuxqqBjfy4ATvM46GxwzJlLIyeZkhxScxCy07ygwHA6M4FBxt1P0q2gFS4omuA/JlyEPZsCz/wNROmMWFuQGzZIYvjTPhFH2eZkDDKOETNQaq1zA6pC8qRmYr9GQKek+FArUpmzpsmQLloyCIm+Lyn/tDoyZ3cMO2AxVtwzJGg/0CyhWuv3GjErg2dZXEtNIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=9TMqdxhwbFWmSfktcRRhsG8w+km3b6cP9D4MHcWfKHk=; b=Umo3XegXluRn18m922PwQjGNuUDUerJX4euhLqkx6SkhlE2uElqqKHgUzKIRnnUBQiaesfugIc+s9bMfWSYr0qy91Ep7C2pSb/ejLN8B/dekFhDJlTIMHsoFHqhSGlcrjX+3HY0ZCGu2BfL9FHbEYvPVdbXqXoLITLmZpEnxmZ/zXNFZ29XoREpFURgZErV2Ru341Uo2qvXKKY23fLAhEtDKa9Enc8+X/8HSjMFD75Giru+R7PRqNFgiv8a2/Wqal7md4CtrpPpzyXFN+RRbYwWUrtve1nA+q/p5BBc8ePzawob7VKUaJEcxsUdmp2uhUB+RQnB+mMGUrZWpxWNG+g== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9TMqdxhwbFWmSfktcRRhsG8w+km3b6cP9D4MHcWfKHk=; b=nCKqZ/ykxA6HRSqFj2ve9rFj5BBquPKjA1SOkTEC3uFs2xy2WKt0bryrwNcF8Rg2437MlghotnY/5nOBugvIeom2CgYPXYsGnnhd3tSvNW5XunzLLmZ0OK2f4aksPVBe9bcBMMPiWFYue0QLD7zjIWs4sbudWMDtLexJY6KkZ0+eq2drSZiJ1a7KOTcwltAevw5xhdR8K+kNf0iU7Ag/8rSrZI1kNnsynsZYFgHjkF0ofStjoz0CfMcKg0fxmmhr6/CEa3CzUftEZJCOEzlTuWMBTi0+FSqIRJ4x4KLzgtp7g6kcKzN9fds9ReKZPej3bBqcN4bVA6rOzLdb0PxTMQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM8PR04MB7779.eurprd04.prod.outlook.com (2603:10a6:20b:24b::14) by AS5PR04MB10044.eurprd04.prod.outlook.com (2603:10a6:20b:682::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Tue, 8 Oct 2024 10:47:08 +0000 Received: from AM8PR04MB7779.eurprd04.prod.outlook.com ([fe80::7417:d17f:8d97:44d2]) by AM8PR04MB7779.eurprd04.prod.outlook.com ([fe80::7417:d17f:8d97:44d2%3]) with mapi id 15.20.8026.019; Tue, 8 Oct 2024 10:47:08 +0000 From: Vladimir Oltean To: netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Florian Fainelli , Pawel Dembicki , Linus Walleij , linux-kernel@vger.kernel.org Subject: [RFC PATCH net-next] net: dsa: vsc73xx: remove ds->untag_bridge_pvid request Date: Tue, 8 Oct 2024 13:46:57 +0300 Message-ID: <20241008104657.3549151-1-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: VI1P195CA0032.EURP195.PROD.OUTLOOK.COM (2603:10a6:802:5a::21) To AM8PR04MB7779.eurprd04.prod.outlook.com (2603:10a6:20b:24b::14) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM8PR04MB7779:EE_|AS5PR04MB10044:EE_ X-MS-Office365-Filtering-Correlation-Id: b3fc4acb-9463-499e-c611-08dce7868e4e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|52116014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: tr0IiMXMGidhmaNnozkh0BkzTzAbH2mA9WZlozuFS09b2syVYnF7UmC69+8NEDGhOr0QojYODjTOtMc0lKk/Qyvbn4PjllbHIscCBL2xODa5FBqm+AYfIMlmdvOxV0JxZHM9lmX/luS7AEezGTa8HSCJsTxiL0wgfds1iytG6NqG3DrxScOhvMfiKWuEgRFw9DoRkjsxEGZS9nVqWi2sG0I7yJdD1g98DiRrr7BWxw2LAQwKm7PwhTKStdyXWNp4Lxv3Sfq02gVClccGiiPhSI8k0mINDEVGEGwZGelrsxb0zE/Y76TVk09ilpAL7pEsm4Uj9cl6HZzEoNc4z2VjklS/rMBQTz5De20IzJ8ZBUqHXU0QFT7NgRjko+qQ9cSIhKrLJUZSBrNeXgIoWCq+VM65pE+HFspwBtnwSV4rPnpgKcLMYGNQpEuIeqKmX15/NiHqUrPDeK2gCu4wyEOx5bEDd8io+/17NNbdaJRQ3ty+q+4XpodRswoDs56ebNuxAmvUJ5NKc3LNq6EBGs7fiQNDSjJPrzl7fhHyLU2CAuLxqiL6rBDfz8jAi/dDjsjw5gd2ibyYxE0S3r3jS7XaKKWg7nvR3vphH8TRuz7BmsG5QNr5vgq6KId/P9m+AHJYtbsDn/AQtlGv7n4uyXU6WkGJVWCWUfSOLj6TjMEhUvoQYOnEt4WY5Uju72MPnIL7oxzG+yiVPTxvFevGS1uh2cxmrppQW/x4W9EjM5ZLTI7GYEzAYnAnGVHsz1tP0jZzEb1gy9rbGdMfC8FMiWe/qINcrmEbrdmi2WPm89KHkm9fD3PbERBxOh/gVJLnN78FQH941Lccl81teiF64gGY52xnept3+ZqLHX5GWlHagv6jYF2bthVJXJvzG4F+JSpeNax4HrF64aTV406N8dw6dtoTzw7q/ZS4WqIefNWRW3QolS0bOv0rZOIkt8sNThM5kX9nIlHsqmyiSfLjKMfR7BKy6IGPTa7xGFbQjp+cHk8EShSLVV/EfXeI7w8dqxDcw6njJKbP6tGxmPjklZJzGRwMhAXoUC75nlQenGt2DKfdqp1YmC/pVxGhtZLvjNY0aXeptdP39VV8ezLSIZc6VqGIWR0EXxjWvcTY2SZDN7MjHF1MBrD/A+MCKqmBoYL36jFhumUNT5vIHUh4OZ9bNPxfjfpmSPElvll3touD14W4kzVeUwbKNXxiswCvCfGSnwHuNrpLtHbKCpmkIEbWfMOOlGX/8SAZMti3PdT0zdEP1/fWU+xFXeTaVJNCCNqG0vUU6vpwTGDIPcmu+4hvSGa4O2siEq1EWmTtqgBzDHNbS13bfWjMyLod4wRTgABM0Y0eQbBUST9xl3eg3JL4FQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM8PR04MB7779.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(52116014)(7416014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZDoKAxjn56vUuo4wL8uMA0BfIaMmi0uDENnXuOUpCWEkidocP3vlyNo81urt+H8pQYrODKoUh0h5nvFzBE7qIGZqSqcY2nn3yphGVoWz4SGJyUxfZSX19qWRthFzi/jiJgINf6QuSOArpQEToyAnVWR8WJuP9tvD8txot2ZWPqsL+itLrdTp3THNuDqA4/9b9EEguiOlJ0iVfT5yrWHphnrcYEtry/tlIF7Ug7XsLrroeooPHco5TlKJW/ph6/RvMnzeC2W/nx9LctEGoxKSk89dtzISfJ035eUwS1duby4dw9k5SE1ziA1BFDX4OYtNxUTXxAcnfLPw9FL5VF/GPiZiL6YmMEvEH4Mf6CZ8PdbozENstccORzr2dD50TQriIVKg0L/MWJOLw+KyqBcjWmqkmrqxb0oR+t68TnJVcAk7TYdmWjggDTIIYHQoIvlAwA4nhOBQbIFn8A9Hg4ROe1676rATwtQiBBmEYurVsOkaAxIHomFOylCFj8Bcgg4XZKSfkMhVeoGpQhIcPe58dszn9fyLjhRWmqCWRit9gBga+T+FknRrmO0CsIPwdFlBsj0qJv1LEB6GhPcgof3cZoUVTiQN34jLZSoRfjvGBi8AlT+oJljANz2JneYctXEvHUIgZyzWBitsdSy3QffA998aSQGtF5J+t4fAD9zmxo/E8qvGHtuN3YD27KIxRFRzdyFnfyKbY0q7X880QERyoAd1iyfdFkSwQ7nGxMBNnCOzZipRM8Yf5653vLxr4ts9anTTk/yJiXrzGpA0Q2hm4/byOCB/bwPe/UhsVvIIwfj3QCNxxntc/wJHFbTesWtVXnype87aFax1huKSx/yVeKS4JmZ4G17qZzhUKDl1SRyOVbvdTFcvB9Xy+wSX3dEDqvjI8tOb8nPqubFC3PhbgYWRtzxyRYMzurFS5G64EAcXpMkl2iTWYnOXp7Vp+cOJy9cotv/v5GuJYgYdzY/5zTTIJN5jJRVUw1ABYAklc+7Do4BZygliYFw6dP8SLqlHGI47tPoR1lp7mWx5debaW3HtsF7AJd72Cv5a+PdRc+Ul8pxruUwKnmAzGMy8oGsm8WVh5sZ2So3mEUMlDUv274DKIVcYTFVbiTbNYY7YRF1TPR6Jb24umluoD8gK5lEobLxTP/b/Wh38dPnxtBHnb2TsOGpSgoyuQisgULDfKH2WwI9mVHlwREuDEHuLvsCMN887hXs8LCCn97TgDP/tx7sbpuXVeIOSSFoqJmu2eTvhpaDWwhQaMOQsBXdA5aNhGWnl4ykdFp4ZSxv4lbrVm4nqzgS5OqDIBFdCj9asgih4y4iN3n4Ejf4BIStA2r4Bwuylnahx57bn1uyz1viO/FuXG27QJH2gXVD4XJM1hU1OZdFgVZ4PZD6PzPueDXtX5sErJiAiZdX+DObDZiY0TkZfXvYsX7TQnIYJ9bzlGgw/8OH1EC/Ha0gNl8n6lDwd6IkQ6hbjMBktIiNyQ6h0ishh24ELaHG3eLA+j1AwfXOhrZgr80Dzkdhapp8pfSBsVEWR6SFMbByNcNtcsP0QwPs0wvsfYnFNYB7EWhvc9gXOKq5sJR6SzxzFtRO3XQcS59zEz6maj3+S1x5eS214xA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3fc4acb-9463-499e-c611-08dce7868e4e X-MS-Exchange-CrossTenant-AuthSource: AM8PR04MB7779.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2024 10:47:08.1074 (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: mZcJPzQ8hGrQBFNml9+Ivu25NNeWduUknji6i8v9TIcQ+b1OIw2UCn2+E89ppGrMR6JcmqpISNhAC091wjKnJg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB10044 X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC Similar to the situation described for sja1105 in commit 1f9fc48fd302 ("net: dsa: sja1105: fix reception from VLAN-unaware bridges") from the 'net' tree, the vsc73xx driver uses tag_8021q. The ds->untag_bridge_pvid option strips VLANs from packets received on VLAN-unaware bridge ports. But those VLANs should already be stripped by tag_vsc73xx_8021q.c as part of vsc73xx_rcv(). It is even plausible that the same bug that existed for sja1105 also exists for vsc73xx: dsa_software_untag_vlan_unaware_bridge() tries to untag a VLAN that doesn't exist, corrupting the packet. Only compile tested, as I don't have access to the hardware. Signed-off-by: Vladimir Oltean Tested-by: Pawel Dembicki --- drivers/net/dsa/vitesse-vsc73xx-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/dsa/vitesse-vsc73xx-core.c b/drivers/net/dsa/vitesse-vsc73xx-core.c index e4b98fd51643..f18aa321053d 100644 --- a/drivers/net/dsa/vitesse-vsc73xx-core.c +++ b/drivers/net/dsa/vitesse-vsc73xx-core.c @@ -851,7 +851,6 @@ static int vsc73xx_setup(struct dsa_switch *ds) dev_info(vsc->dev, "set up the switch\n"); - ds->untag_bridge_pvid = true; ds->max_num_bridges = DSA_TAG_8021Q_MAX_NUM_BRIDGES; ds->fdb_isolation = true;