From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AB21B45CE3 for ; Mon, 11 Nov 2024 07:34:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9025F40685; Mon, 11 Nov 2024 07:34:46 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2041.outbound.protection.outlook.com [40.107.212.41]) by mails.dpdk.org (Postfix) with ESMTP id 1F67340685 for ; Mon, 11 Nov 2024 07:34:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JPUb+ny6D9m7kfzTvQz9nbejXYo0wkpb5cNbRcIk8p66uLTPPdSsmXScrM71ilYbsQKMXoSx47pzhwI+lBSF62tW03z42/RTtH3xRCWGVinuXrbhkOSKZoBxKUHfyvfNz8uQoQA9rT/r4WnhL2JkB0am5FNzpK6f8KtIAZhCbCbAmvoMe3rWZp1wmO6nKKO8/omVQITGm5PysgK0fddwKY5TESl6/AHaEpBjIp8GcPeZ0Q06xNtMqjhV3X3bxoTzodziSMjHK4Sw5npzmezkPg9bYG4e6BHDbWT66ApFBmQLthl0WAvLE8iKpT/2bA9Y5SXA2B8WaMWAUWQFqDnX5A== 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=TVgEPO/9gLVYGlffMO9s8+e0uZWH+FzmBaHGYmG/Mik=; b=PXu6ngz1Rjs7UcyoxrvWSLJih7vKU0NZhvZiRWFDhS9SG3lOwH1JXO6fBVza2vgT4qWGdPZ2cOkYFH9IgoeR/FobqrsmS1fVyYQ7EyeC+156ZkF/NM1Ag1FR4e5KBRvmFo/FZd046CxOY5Gr0U6T8pLe/qEiafaTKdAAgBCH6NgqqJC9BGpLGlTHT6EGpP+LzL1+4GhWxt5OttE/cOU5cVkQvlSiLs7QMk5rUOPyBYB2V72AopHYdTQrEn/bzdnKqOKrRU60V1tZLt0dd3RREr2G5mx4OQ2MXT7PasrruzXiVN5Da8ltwkB52boPzRqKuppAWZ69T07t7r3OWX5whA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) 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=TVgEPO/9gLVYGlffMO9s8+e0uZWH+FzmBaHGYmG/Mik=; b=rSoRgJUS3VgnbTNTTd20tI7MO4Nrc0vVUliP19gKzmw21c6YF+JNoyv6FOV+LPQbXbMli+6fyCcVyLgsvVbz9gFjDqWg9W09W8grUwKE1CEP1uTZuF/a9N7U79RdeQmMtyyOu8t0GUGWwb7IomNqa6xcYwOSx237FSEaMGXspHJTdsGC7lVqcmq67GWq511UvI4P82sulDuABmU5P+KU8VLVA//F3ehB3EAggiQ5wby+QbYqQ192HQlGLv25x++ZtcJ5XanMXzVuJhjDuIRObV2Z947jHWvR2gLl+CCM/RZDgwnBh06uEc5Zv/i5Xn7J+CB2Y+qO4aEGzAEH9o52/g== Received: from BN0PR04CA0203.namprd04.prod.outlook.com (2603:10b6:408:e9::28) by SA1PR12MB8887.namprd12.prod.outlook.com (2603:10b6:806:386::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 06:34:41 +0000 Received: from BL02EPF00021F69.namprd02.prod.outlook.com (2603:10b6:408:e9:cafe::27) by BN0PR04CA0203.outlook.office365.com (2603:10b6:408:e9::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.27 via Frontend Transport; Mon, 11 Nov 2024 06:34:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BL02EPF00021F69.mail.protection.outlook.com (10.167.249.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.14 via Frontend Transport; Mon, 11 Nov 2024 06:34:41 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 10 Nov 2024 22:34:28 -0800 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 10 Nov 2024 22:34:26 -0800 From: Xueming Li To: Praveen Shetty CC: , Bruce Richardson , "dpdk stable" Subject: patch 'net/cpfl: add checks for flow action types' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:27:40 +0800 Message-ID: <20241111062847.216344-55-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241111062847.216344-1-xuemingl@nvidia.com> References: <20241111062847.216344-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00021F69:EE_|SA1PR12MB8887:EE_ X-MS-Office365-Filtering-Correlation-Id: 5e6fb6fc-0297-41df-30d3-08dd021aec4f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?OY4Pj0un5rqrDLRFmiHYLjv7uZvBbuqfpT8MwsC5aocJU1DVhcLT13VsPs2D?= =?us-ascii?Q?v29FbObf9tUmKLeRJ8MESrJUgY9d2SR3b08hU6AUB+LyxeJrD91apgvhBpjd?= =?us-ascii?Q?KB/3fPFtcfou3R6GmZ076qVLOHdgiMmKelkztWt+gNKF5gXH7sDrOp0A+ScO?= =?us-ascii?Q?fC5CwtscXHpHjSh1gQDFIzvvdsrJYkEkv4x6TVnwQCZ4nfb8XvDVn53zvyFl?= =?us-ascii?Q?PgleS1nuPGPbJ30LyNjlZTFjoGUm92yQm9kgpNaPiQQD0QGQwZrqoJrT0BG8?= =?us-ascii?Q?AshqFj/kn7Ry4k18XmcXDfrTZoNsqA0lfkhnwvIK11IL/nx44y74IOjtYmEa?= =?us-ascii?Q?/kLIGuA3sdGwclZufbFdw9AuKxc5jfGjsr0eygscieCS+H+UIlYvtlp+MU7H?= =?us-ascii?Q?zLabAU2L+dpGEUkIEkk4PvJYPFWh5IfxkPg5ExN2Hmy8NNo1P2+3KoLU7Wqf?= =?us-ascii?Q?rZfx3oh9Nm3tJLrh0sLBUCi3KBgxqERBv5p0w4dN+yFm5vTcRNCXeABuhkUC?= =?us-ascii?Q?LcSkpzx6SPuOfH4KTx/GoxIlC/XUzxE6ciO1f7W/u1USD8nNRsYRfK+zolo8?= =?us-ascii?Q?6LspvS/g6NkUaAv0l+cwBGHZY7IuQtsJG9cPReOnxqyOV7aFOPbaAypozt45?= =?us-ascii?Q?uSSFRtj27P0SoXriHsF1Zim9sd/SRd9z1GpmOdCKhe1Uu7TceG4iOBQv08lV?= =?us-ascii?Q?lm6FA8HyQQjo+xBab+y0p1i6b5eDJy6o61dyNLhRHSbm/VvBPXHDLhAmJ13Q?= =?us-ascii?Q?SxXsI08mF1PyPjZTmVeaeX5A2KFhLOkpPIMpojpz1CVrgpu85UjS+YTb+mG/?= =?us-ascii?Q?YOpjVzpa/yNZCKOH1kPTG97edbVMvRiJStnUDsUzFAzwq3eoEjYtTBcQV2FI?= =?us-ascii?Q?2trMXdBf3eYV8TVbLMjg3aVFVIPuBx59Sz+3yH2NOfrrFKw8hcqzMeUYLven?= =?us-ascii?Q?oTCDHkA7q75cZJ3MgNBJJu0YpHbScI47slSh/uLlezDKhLcS55cJSWYshHW5?= =?us-ascii?Q?ZWFYiIgi9A45pKwNLnbWwTp5OLe6acDhlco3KlzrYR/Um2aZA6lLcGIaDzp8?= =?us-ascii?Q?4W2L7Rh82vyxvJil/FntFKUOuSDnRZO0howX/alDXP19/JNO+X/TVxbzmkzK?= =?us-ascii?Q?TEFz0THJjKY9BczZdygX/GCVOd6rnbHATYDl8feAhg+rP5xymCNImLxXE8aD?= =?us-ascii?Q?bRNTAFtVc0CjUiq4WiKWZS7nF0NQzRTGskC1yxdVWgn5A85NBhnVXOvAx6vD?= =?us-ascii?Q?5w1B0De6TgajpRs24FMD7TsLdgDPTWdgK4Cy+gFtvKR2vJ5jKDejJzxZnMoL?= =?us-ascii?Q?6edjyQUBca+zDitS2YZs5Zc3e2ukrkLorfvx47ccaxmeVkFq+/smIarhJioR?= =?us-ascii?Q?COYaSYfnefeRSOPEUPeL3Fw1kOgwe0r1G/CC66pBikCEIQsv3A=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230040)(36860700013)(376014)(82310400026)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:34:41.1777 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5e6fb6fc-0297-41df-30d3-08dd021aec4f X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF00021F69.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB8887 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 23.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/30/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=fa3204c299911a82fbcab1b3fac2adf8813e1621 Thanks. Xueming Li --- >From fa3204c299911a82fbcab1b3fac2adf8813e1621 Mon Sep 17 00:00:00 2001 From: Praveen Shetty Date: Tue, 30 Jul 2024 11:45:40 +0000 Subject: [PATCH] net/cpfl: add checks for flow action types Cc: Xueming Li [ upstream commit 86126195768418da56031305cdf3636ceb6650c8 ] In CPFL PMD, port_representor action is used for the local vport and represented_port action is used for the remote port (remote port in this case is either the idpf pf or the vf port that is being represented by the cpfl pmd). Using these the other way around is an error, so add a check for those cases. Fixes: 441e777b85f1 ("net/cpfl: support represented port action") Signed-off-by: Praveen Shetty Acked-by: Bruce Richardson --- drivers/net/cpfl/cpfl_flow_engine_fxp.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/cpfl/cpfl_flow_engine_fxp.c b/drivers/net/cpfl/cpfl_flow_engine_fxp.c index f6bd1f7599..9101a0e506 100644 --- a/drivers/net/cpfl/cpfl_flow_engine_fxp.c +++ b/drivers/net/cpfl/cpfl_flow_engine_fxp.c @@ -292,6 +292,17 @@ cpfl_fxp_parse_action(struct cpfl_itf *itf, is_vsi = (action_type == RTE_FLOW_ACTION_TYPE_PORT_REPRESENTOR || dst_itf->type == CPFL_ITF_TYPE_REPRESENTOR); + /* Added checks to throw an error for the invalid action types. */ + if (action_type == RTE_FLOW_ACTION_TYPE_PORT_REPRESENTOR && + dst_itf->type == CPFL_ITF_TYPE_REPRESENTOR) { + PMD_DRV_LOG(ERR, "Cannot use port_representor action for the represented_port"); + goto err; + } + if (action_type == RTE_FLOW_ACTION_TYPE_REPRESENTED_PORT && + dst_itf->type == CPFL_ITF_TYPE_VPORT) { + PMD_DRV_LOG(ERR, "Cannot use represented_port action for the local vport"); + goto err; + } if (is_vsi) dev_id = cpfl_get_vsi_id(dst_itf); else -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-11 14:23:07.684731688 +0800 +++ 0054-net-cpfl-add-checks-for-flow-action-types.patch 2024-11-11 14:23:05.122192840 +0800 @@ -1 +1 @@ -From 86126195768418da56031305cdf3636ceb6650c8 Mon Sep 17 00:00:00 2001 +From fa3204c299911a82fbcab1b3fac2adf8813e1621 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 86126195768418da56031305cdf3636ceb6650c8 ] @@ -13 +15,0 @@ -Cc: stable@dpdk.org @@ -22 +24 @@ -index b9e825ef57..2c75ea6577 100644 +index f6bd1f7599..9101a0e506 100644