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 C845543B86 for ; Tue, 5 Mar 2024 10:54:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C09884026B; Tue, 5 Mar 2024 10:54:46 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2052.outbound.protection.outlook.com [40.107.92.52]) by mails.dpdk.org (Postfix) with ESMTP id 1D3194014F for ; Tue, 5 Mar 2024 10:54:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XO0Ydp1U9lI+I4Vr7i0ENno9mjFpBnre3Bk+PsI1I5K4T7T/BSmMHKhNXc6WryDyOfjc7v9gr4MSjGQ1wJW575O7Z8jLLPioTtLdAPUanmEEH9NWdg27E3geiajDGi7coQrVaG+bMtDUXuRZRNkbOMrUYQvv4mdDjSZ93OaFM6qPhJnfEuWAIHpPQFRHBS45+jgrV08fjLfOD4FK89l3yrTQISHk2UB8+gYdiwetUfUqPyZ68CBNzTDtq1dFSl/WUC8lNEfYYwRLr6e6R3nj6tEBWs1pidpu8y7n7BC/FwiN//Jw9xmsrXCm3dGJD2OlCskFY1u+Wbbxl0xtxHks2Q== 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=iCopHVSG3yspDH+1eqfS8udhQhqN01KHDIehxL3SVZk=; b=L+qiBCQGzoJmh/msylA9huJ5BxEwV+Rvr8hv6rb8VURYf50BKqb5JedLfpwImtQwFgFUqqYPqv8Y0sRwuDMSRzgOnbwDCxMLWjSG7TvaYaaJkWXBFE5CnjPtpNSgxEtC5G9iKaUOTv4CG4SBN402aZ3yGFRi488LFyuEoxmF5BHRC98wYpwf4xWeB2cen0miCKbvUUJtL+341bK/jqwN/iXSwOUp3tBlobPqMMKHaCLeIpbvZfx5Qa9qWHzzbDMlAVkJL2/CaOroZsKmJLc4KuPPRkJ+glGkuDsjUN7kWlJObnwWxHRBEBjm44PeSgEH+FFLhAFxxaWFG6ZjEiuvPw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=redhat.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=iCopHVSG3yspDH+1eqfS8udhQhqN01KHDIehxL3SVZk=; b=rRFDoz0p41xu7SCkI/+Qz3o47wghZ0hkTa++uIVa2W3FIw+9to0l70KEoa5lrb4kFaZsCHpNMTq17lx+SuYXcklWzlyx2d7LzOVFhH51/jrTS4y5CTWX0Q6IJYZULBd/h0f+o27W/+X8P3q+1bKNyc60s+iQZFzJjgTqudpA6MoY4cdjOEU8+zlTzIIFSR2VYnrtCzHCoVfQzye6sMiNkAxo618CHuNH16osdOQtAZ8vUg1TD4y2Cc08ujQ7774cZX0B+lA0I9BLYyUeonyF4wTaVeANqwVOqPkhD4ALA/cqoP+m+wa6Q/l60HpczGYlSKRWqykPpA8qxrnU5xDyMA== Received: from BYAPR02CA0031.namprd02.prod.outlook.com (2603:10b6:a02:ee::44) by SA1PR12MB8842.namprd12.prod.outlook.com (2603:10b6:806:378::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.38; Tue, 5 Mar 2024 09:54:42 +0000 Received: from SJ5PEPF000001D5.namprd05.prod.outlook.com (2603:10b6:a02:ee:cafe::ea) by BYAPR02CA0031.outlook.office365.com (2603:10b6:a02:ee::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39 via Frontend Transport; Tue, 5 Mar 2024 09:54: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 SJ5PEPF000001D5.mail.protection.outlook.com (10.167.242.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.11 via Frontend Transport; Tue, 5 Mar 2024 09:54: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.986.41; Tue, 5 Mar 2024 01:54:26 -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.1258.12; Tue, 5 Mar 2024 01:54:24 -0800 From: Xueming Li To: David Marchand CC: dpdk stable Subject: patch 'test/event: skip test if no driver is present' has been queued to stable release 23.11.1 Date: Tue, 5 Mar 2024 17:46:51 +0800 Message-ID: <20240305094757.439387-71-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240305094757.439387-1-xuemingl@nvidia.com> References: <20240305094757.439387-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: SJ5PEPF000001D5:EE_|SA1PR12MB8842:EE_ X-MS-Office365-Filtering-Correlation-Id: b797b4c2-9f1b-4d0f-c5e3-08dc3cfa475a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K7iyZ+H/QhQzPaxc8Z1zcQT7tmbTWU2RMiRUTG3WbBOTjCngmBGDVUg2BQdZ5mGQIrj8tIM3tipx2c3mPZx9DgQNUSVrqnxP/hjPTCluGTPByNQ/RJaPAfWP0DdikroaNldr0Tm9XX4Y7CX1TDXoyKYTeJaLXbhvg9bQ9cVK43KA99IYs3qJBLQM+f4wk0vEi6dtunjcsto5g/6SM5+EtsAhE4rdJAnDlSeM44ctBloEG7k/LJjQ5lsTpbSg3l9IW0aaoFwBedq2kjJJeFFixejeQsjxP9BfpjU9AdAmvnDa8dyj09Xk8TaTwLNyOJ3Tk3dOQy2/GOp8tsHyU1lQlJSKDaqVRg6MMWiEoU3ReO7vn9N3kauuwL5tm5Co1nlEeBEKxy09uBiO66Zw/QukNar6F+lr56es7Irqh0puhoC+p0fMahOMi8uNqgmatesyjCbbjhdr5NmccQssZb40s1UpcOy5ii5qilvrsiqt7QIvPfjxE5/qLTyUcCE8jH0xeA7KgWiWxK7XEorMJGJ3mrnztWw67gg9YqDwWb83I+2Qlil8iPz8jIaKI/7kJqj7qLjs+7VjxIbqr2C995jvGOiCHMVrLcUzNXnSAMcYYxoeUVf/LfTjzKauCsn6KwK8ZkgRzICwnu+O0de5aDCG/ipHTSFeVYRlCxsW6z6Fl19j5j9ShL/wYyROjp1XprcIhbj1oL5JQ/nWw7mZ/mM+EC/sRezPttKPSY0XecN/8qGYSohVPUkkkiBiNgc6HdDr 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:(13230031)(82310400014)(376005)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 09:54:41.6233 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b797b4c2-9f1b-4d0f-c5e3-08dc3cfa475a 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: SJ5PEPF000001D5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB8842 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.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/31/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=935051346296fcd2075265414e5161b8dbaa309b Thanks. Xueming Li --- >From 935051346296fcd2075265414e5161b8dbaa309b Mon Sep 17 00:00:00 2001 From: David Marchand Date: Wed, 24 Jan 2024 13:33:38 +0100 Subject: [PATCH] test/event: skip test if no driver is present Cc: Xueming Li [ upstream commit f1caf6ff072ad932d93f3d5587c504d5f90d5d70 ] Align eventdev with what other device abstraction libraries do: if no driver is present, skip the tests. Fixes: f8f9d233ea0e ("test/eventdev: add unit tests") Signed-off-by: David Marchand --- app/test/test_eventdev.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c index 71de947ce4..e4e234dc98 100644 --- a/app/test/test_eventdev.c +++ b/app/test/test_eventdev.c @@ -33,9 +33,15 @@ testsuite_setup(void) uint8_t count; count = rte_event_dev_count(); if (!count) { + int ret; + printf("Failed to find a valid event device," - " testing with event_skeleton device\n"); - return rte_vdev_init("event_skeleton", NULL); + " trying with event_skeleton device\n"); + ret = rte_vdev_init("event_skeleton", NULL); + if (ret != 0) { + printf("No event device, skipping\n"); + return TEST_SKIPPED; + } } return TEST_SUCCESS; } -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-03-05 17:39:33.043051268 +0800 +++ 0070-test-event-skip-test-if-no-driver-is-present.patch 2024-03-05 17:39:30.793566494 +0800 @@ -1 +1 @@ -From f1caf6ff072ad932d93f3d5587c504d5f90d5d70 Mon Sep 17 00:00:00 2001 +From 935051346296fcd2075265414e5161b8dbaa309b Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit f1caf6ff072ad932d93f3d5587c504d5f90d5d70 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org