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 6F75D45E41 for ; Sat, 7 Dec 2024 09:07:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 68C3E40281; Sat, 7 Dec 2024 09:07:25 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2068.outbound.protection.outlook.com [40.107.220.68]) by mails.dpdk.org (Postfix) with ESMTP id 492A740281 for ; Sat, 7 Dec 2024 09:07:24 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pWDpxYY3P0cFfWowgMfWjxLsxkFi6/loDL4KvvrcRdeG5nhwt3hnTSZhKqm0npMeCBznax78FR+O3daijTx6r5pffWEUYq3lJ5U4meuM5oKJBP26r9acjybEe15eupIak9O7Fhgr5prphKWmOy/6APiCMbhQbzrP9vR3sACd5TavZTbGeivXN0TgHbOYbGLW1rdli02sno8ptpU199ny6rszhRiJgpNRUY2AnPDcKGSFSEqTNv6RcBfZ9UM1iirwG+Qzb8Jp7rE46q2WUNlBjkAnCebzEwobiXbSB8Feg8JPBiRb4zV1VI0FCUJeJxX/WFClCr0SKjgPEHFim+gGLQ== 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=yHtw5IgQLjWp6DyouOARsWA60LQLN1HZSeqPUTPfiMY=; b=raz43DW3sPo4EtW1PErIDCjH+IVUwKNQLPhwzz+tVy37dJzrxPjnzb1twKSMOiZpu4ziRe0VuKmeXKt+HZiAAj3tU1XA7tg0UJmPX2JDyCFdeDvVF7DIPsssg/ipwTTlkAymFF+gVBENN3eFenf1sUxuJu6zhRhgSfwmYMwtQxjfU3sMWmVIgJggOfpEFeinFArkbtAymvmQqCEX0hEW9810IfkCU2hwsYlP7NCtQ+vHvO0cQ2gF2oJLNxFcKb9scHbXtENqInWtdkA5aHJvRm/l/UTFPW+drqf0vHZ5G7i9PpvDIFmpGQUiwJ1aRvWpbsxv2HAeW5O2++Uwf4kEyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=nxp.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=yHtw5IgQLjWp6DyouOARsWA60LQLN1HZSeqPUTPfiMY=; b=lgodPT+NXVDMMqDqovYVw76JoM/JojYieluDhLcZlRHY2xK3kwg/TPRiXliwPRiNaWcj+TOeEDGvZAcNAe48WZVPGnaJ6K+Yv3LzEEMirYtU+hrz2hXBcFIzV2mEIeQrIPobfiTvdZZbrQv7JEU4ynzFZXRFf6btvackbE/krmY8cY5raPYkSDXvxRhQCvR7FNab+UgAW+bMbqM86fP29tncN/SpQn5UFUZjjoImz4G83lzmH426ddxGbcSElr+Fyer4ieUrQLKI+o/PKr1aTFzmBAdbk9ZfCGU9aTDg4jEBZ00fxRie/sxCZU2doFIDqL8ws5UOFQHsYMdUP+kSyA== Received: from BN0PR04CA0073.namprd04.prod.outlook.com (2603:10b6:408:ea::18) by MW6PR12MB9020.namprd12.prod.outlook.com (2603:10b6:303:240::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.18; Sat, 7 Dec 2024 08:07:19 +0000 Received: from BL02EPF00021F6D.namprd02.prod.outlook.com (2603:10b6:408:ea:cafe::f7) by BN0PR04CA0073.outlook.office365.com (2603:10b6:408:ea::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.12 via Frontend Transport; Sat, 7 Dec 2024 08:07:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BL02EPF00021F6D.mail.protection.outlook.com (10.167.249.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.7 via Frontend Transport; Sat, 7 Dec 2024 08:07:18 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 7 Dec 2024 00:07:04 -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; Sat, 7 Dec 2024 00:07:02 -0800 From: Xueming Li To: Hemant Agrawal CC: Xueming Li , dpdk stable Subject: patch 'examples/l2fwd-event: fix spinlock handling' has been queued to stable release 23.11.3 Date: Sat, 7 Dec 2024 16:00:22 +0800 Message-ID: <20241207080055.488538-65-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241207080055.488538-1-xuemingl@nvidia.com> References: <20241111062847.216344-122-xuemingl@nvidia.com> <20241207080055.488538-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: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00021F6D:EE_|MW6PR12MB9020:EE_ X-MS-Office365-Filtering-Correlation-Id: c813f485-c8e4-4b01-1d74-08dd16962ba1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026|7053199007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?9cMKOsdcuvPiUrJPTiC9j4X3ZWsUSixfcPtbt0nPOufr6t8Bqszv1oKr+m8J?= =?us-ascii?Q?BcqiZYwIHN1eul5SMVIIObkXnh7hE2R0HDRnDFmPHvLOr2QDwrpNukNCZ3Du?= =?us-ascii?Q?nPPYEM47wL4cnqLt8x9U1intiA9cYaN7q5KiS3WTABMv+NosMeELj1RsttVQ?= =?us-ascii?Q?1ZEFHPUZPyk/M39iUAzAzFhzpjCcbWbe/LQE5zKSzm6IEJbnTE6CatRqeoDp?= =?us-ascii?Q?NJwbbAEQc6cE/mSyvDhHKH/t1OUHRzeyPCHmQQZMtrs2reZwSYGhuDyhxsMf?= =?us-ascii?Q?+Ll8/fHK75NRkYht63xUxg6f3CV+YObd8boKlNA0EOPeZY86ecXuCNk0SDVa?= =?us-ascii?Q?+DyjIMtNaLAnbnljnh+ec1RBzK8oMXNH/YoQVLQHPG0j6DqtfVX3yorQUlVM?= =?us-ascii?Q?T5y+CHGba9mbbpLvLQU/YYlwakSsZfwE6WyGHXN2Mp5MMGOdGoFrMSbjxMd6?= =?us-ascii?Q?4/Kbn6Ab1Uq0GIV5GBXV4+fvMDFDMzTPwUuP5a2scASgzay/+oT/QfPxgD66?= =?us-ascii?Q?6OZOTcakkNkDG4Tp/826EqdzaRmQyt+bti1m9FlMEjKPyX9M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yiYW3wwh3/IOkOT3o?= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(1800799024)(36860700013)(376014)(82310400026)(7053199007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2024 08:07:18.7331 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c813f485-c8e4-4b01-1d74-08dd16962ba1 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.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF00021F6D.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB9020 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 12/10/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=da2874dd1fa992acaa1d3deb9b4f5c043e22640b Thanks. Xueming Li --- >From da2874dd1fa992acaa1d3deb9b4f5c043e22640b Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Thu, 14 Nov 2024 13:14:36 +0530 Subject: [PATCH] examples/l2fwd-event: fix spinlock handling Cc: Xueming Li [ upstream commit 1f41deac447d7938198a2acdd1b7862161feef91 ] Detected by pvs-studio Bug 89-93: very suspicious synchronization The analyzer issued a pack of V1020 warnings that a resource might remain blocked. Fixes: 080f57bceca4 ("examples/l2fwd-event: add eventdev main loop") Signed-off-by: Hemant Agrawal --- examples/l2fwd-event/l2fwd_event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/l2fwd-event/l2fwd_event.c b/examples/l2fwd-event/l2fwd_event.c index 4b5a032e35..78f10f31ad 100644 --- a/examples/l2fwd-event/l2fwd_event.c +++ b/examples/l2fwd-event/l2fwd_event.c @@ -141,6 +141,7 @@ l2fwd_get_free_event_port(struct l2fwd_event_resources *evt_rsrc) rte_spinlock_lock(&evt_rsrc->evp.lock); if (index >= evt_rsrc->evp.nb_ports) { printf("No free event port is available\n"); + rte_spinlock_unlock(&evt_rsrc->evp.lock); return -1; } -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-12-06 23:26:46.199157602 +0800 +++ 0064-examples-l2fwd-event-fix-spinlock-handling.patch 2024-12-06 23:26:43.983044827 +0800 @@ -1 +1 @@ -From 1f41deac447d7938198a2acdd1b7862161feef91 Mon Sep 17 00:00:00 2001 +From da2874dd1fa992acaa1d3deb9b4f5c043e22640b Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 1f41deac447d7938198a2acdd1b7862161feef91 ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -20 +22 @@ -index 22472027b9..416957384b 100644 +index 4b5a032e35..78f10f31ad 100644