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 2F0A7A034F for ; Wed, 10 Nov 2021 07:37:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2586140142; Wed, 10 Nov 2021 07:37:39 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2041.outbound.protection.outlook.com [40.107.237.41]) by mails.dpdk.org (Postfix) with ESMTP id 5F00440142 for ; Wed, 10 Nov 2021 07:37:37 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D2Bb1CKr/+0y0UwA/Y6FynxwhYUAY6VSX5UBPptygyDEJMp/l2CZUN1TIClITFGtQ5CWGGi6d02naAW8NTWklz48Y+pQoFaEPAul6Fb47monxgqTMTazcU2SML7npwowe5P+lr8mVJ2iwC3/MnpoAlm4scxXqYbLimG8xelFhbR71HhX4DsG08YlFuW4Vpl+yTwRJm2ZsIR93ISIYSBmRLZMRp0Cby3a4cPDwl7FNlaApxq3W8ACyy1rqekkgezTgB2jZzie7U8M6RNScFdKIzC1cUzPYJ7Pl9QM2Of0pJho6h0J0SVNobgG5nsZ3EK83C5OE8+2xncHlL4dtyZndA== 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=u4K7+H21BhiBr422VV75XUX2OofaM5qnbGJkutcEPGU=; b=OKWTdYQSy1WZk7mEbp9zZvOHMuGD/15xdJpmF+QOUdkJ/SEAZDH7TaYAPQCpudmEWodO2gHD6d+JQ+j6lGvlJTpANWj6rAt7xQWwbcWTdzUnHFjskeaKVEsVXp+hRONh3ZqjlDtbxKf66hCc54Ocw2COz/nPXYBuvdjzt3ET+PNSD9IBZntg8T2rkYfM+8p8t6hcBfOr7jy+MX7DJcMSN3trr7dUEhdvRlY33tx9VRPNwWIf67GK90Uc9kFD1oLfH51zr5R8E85stlGeHBftxYmJ6OwRVuOkIwxmoJMCAqgPWOYH5aZj7IYSZ0Dt8HsIqGRQ3PMTKp+uzGkFhrumeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none 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=u4K7+H21BhiBr422VV75XUX2OofaM5qnbGJkutcEPGU=; b=igIVjit4p7AZ8yJQoOypnh3AKu6EAE76FWZZaJJZz+w4bADu2KrETccQEo0t2cmFRy2JxyQ/94vLF7mpXOwMjX6H6AWZ2+ikWZzitPXnnYSjE3gZrjuBCj6K62bdXt5OGgYkNBdqwB1SCd8Ya88WuHgSTWEaRVcODNdGoUUb0NMeDeJJCEXHBLabiq2O5/zqzTPY5Y8rCcAgvZyZvY1QkGSHuheAlmuJgsRaOTfgO2iF22LNOzR/Xxbsgpd3lG+teiV6ch2lePeilR9/+msbIN4haT4D0QJXLg13L/W/YlMnVAP7G+t5LUmBCCwEUq6KaR3U+zwx7uIr89R6dNgYPA== Received: from DS7PR03CA0146.namprd03.prod.outlook.com (2603:10b6:5:3b4::31) by BN6PR12MB1140.namprd12.prod.outlook.com (2603:10b6:404:19::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.15; Wed, 10 Nov 2021 06:37:35 +0000 Received: from DM6NAM11FT041.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b4:cafe::e1) by DS7PR03CA0146.outlook.office365.com (2603:10b6:5:3b4::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Wed, 10 Nov 2021 06:37:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT041.mail.protection.outlook.com (10.13.172.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:37:35 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 10 Nov 2021 06:37:31 +0000 From: Xueming Li To: Ruifeng Wang CC: Luca Boccassi , Harry van Haaren , dpdk stable Date: Wed, 10 Nov 2021 14:28:49 +0800 Message-ID: <20211110063216.2744012-46-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b35fd34a-a404-419b-6df8-08d9a41494d9 X-MS-TrafficTypeDiagnostic: BN6PR12MB1140: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZVrt18VTmq41V//cSL/OAmqsN7Im7SFFjvdxhMZyCml0Kd+qFGBswS8IshTsV2XROGugJ1kNhNljzy9pT1hIm6LBch262SuPeIJhRpY78ih3+pD4jIUHH7jXWNAJhhTof77rMBm4K0LF/HmMh2eWLpR+fyj8EWnsApVHamABaVOBW3oflpRZYk9hU+2Za9uZe2EApOx9JuWqGef9f+scw6/CGm474XgmyhDTaSt6wGAtVVjWo1HwmhE5aH4vryPhUZ8RARXtvJFFWWdPndiwY87ttjSfYJh921eAVPnM7cLsDQ7/fJv4h3wOmemDw+fu4+cSd7FpFH2dEyyWZeWm6FbApADPTey5Pnu3jswEvkvZGxuLj4mC2C66EFvCXTGtKRvi3aqfI6oQFvI4K1UsgH7+l+67/pAM4US5Q1wvWLxob3Q5uX/9QsXzA7sW6A8wAfnp+IB6wTf86tn8/RO/E+DQoQbluNekR8X5gbLBUxscyVzxwDMeBIAAD7GiVEJPcQU+nGV5k4/GVBkVDnH92FhmViaQfoW5B0ZQb6JKzMf4h4SMtcnMcL2tLtb9cxqXqnr6LJSQiUDgw5S6VDmZFcO1Yl/fayYuT/IUPHtLKesVmPdhR7J0DFEDc37vOgJTwjgFKdnROu+GTVU0vBEhYsUW/87g2Tue9lRpe9La/2ci2M44VRy4POi0yFcJNWlr+RtrSVIi+Tg8R5z9I4fqCG2OS5U+TqkTzpzvHxmnGkpHMmAY2uWwl/yMI7fIGYL+gJHpwxym9hzN7g7vcrB5W6Jf1X1VPhi5Oo2nUohl+gJRFgxk01LYe9ycBms7XSnsCQJVmaBuQGs1N3wAIfHMMg== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(16526019)(186003)(336012)(86362001)(966005)(7636003)(508600001)(53546011)(8676002)(8936002)(36860700001)(55016002)(2906002)(426003)(26005)(54906003)(7696005)(6286002)(1076003)(47076005)(36756003)(5660300002)(6666004)(83380400001)(6916009)(4326008)(70586007)(70206006)(82310400003)(356005)(4001150100001)(2616005)(316002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:37:35.2025 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b35fd34a-a404-419b-6df8-08d9a41494d9 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT041.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1140 Subject: [dpdk-stable] patch 'examples/service_cores: fix lcore count check' has been queued to stable release 20.11.4 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.4 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/12/21. 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://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/64c6120185910f01dcf36fe8f42f94c4aa7ad995 Thanks. Xueming Li --- >From 64c6120185910f01dcf36fe8f42f94c4aa7ad995 Mon Sep 17 00:00:00 2001 From: Ruifeng Wang Date: Mon, 30 Aug 2021 16:04:12 +0800 Subject: [PATCH] examples/service_cores: fix lcore count check Cc: Xueming Li [ upstream commit 328720c594f235aa44c78fe360e8e6f31b5e989f ] The example has various profiles to run services on specified number of lcores. Due to incorrect boundary condition, service can be dispatched to a core that does not exist. This puts main core into endless wait. Max available number of service cores is all detected lcores excluding main core. Fixes: 7f6ee6aee717 ("examples/service_cores: check cores before run") Signed-off-by: Ruifeng Wang Acked-by: Harry van Haaren --- examples/service_cores/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/service_cores/main.c b/examples/service_cores/main.c index c5753cc52d..e0cb4f9acb 100644 --- a/examples/service_cores/main.c +++ b/examples/service_cores/main.c @@ -118,7 +118,7 @@ apply_profile(int profile_id) struct profile *p = &profiles[profile_id]; const uint8_t core_off = 1; - if (p->num_cores > rte_lcore_count() + 1) { + if (p->num_cores > rte_lcore_count() - 1) { printf("insufficent cores to run (%s)", p->name); return; -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:04.118375010 +0800 +++ 0045-examples-service_cores-fix-lcore-count-check.patch 2021-11-10 14:17:01.797413358 +0800 @@ -1 +1 @@ -From 328720c594f235aa44c78fe360e8e6f31b5e989f Mon Sep 17 00:00:00 2001 +From 64c6120185910f01dcf36fe8f42f94c4aa7ad995 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 328720c594f235aa44c78fe360e8e6f31b5e989f ] @@ -15 +17,0 @@ -Cc: stable@dpdk.org @@ -24 +26 @@ -index 83915b9a53..9f52082254 100644 +index c5753cc52d..e0cb4f9acb 100644