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 3B3C745EFA; Fri, 20 Dec 2024 15:30:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B2F7C40144; Fri, 20 Dec 2024 15:30:11 +0100 (CET) Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013061.outbound.protection.outlook.com [52.101.67.61]) by mails.dpdk.org (Postfix) with ESMTP id 7C5804003C; Fri, 20 Dec 2024 15:30:09 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=u6HNYob5idiL6NqHUMTadkHOL+OXMF58KdpcAuEWHQFb7u3DUtAzRFRscamSaY2Dk5ehrRPZACwqmLZYIebZZDkO3PX/qY3odgG5+sBFjHPLSBujRpD407nEpiLhRteubTY46kBfwWBEHpSvElq48E05+Rz04N5Y5K/bIvP2Xjl4WsYkban+RJ83TkWXxsS8ad94J4FY586dTXx/iqQC3lqqrrFG08EtstjqI+tHczPUquCgBxXpmBp1XY0+sFNdx/0ERvoRZ+7QpzL6xB8XxJSkTyOFJ+7bLhk3/PQ+glaB5JN8vFk+aQ5Dptc09uJ8mWVXOxWV0i29gSZxC+GT3w== 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=TYacLwY7UgfP+vJui/OuA5pH8Mpjlu+MBYtEPJa3BmY=; b=NqGbNZzTiHuluMvuyY2hvhZkJ9IfHpi2XNHIy+KQg/q/UT6FE/aXZVM1GznIxOsoAV2R+dL1W+xyasqAHOxJiKGNwfijW54P0Y+US4MwDzTVL4VrY4SZVMGj6qedbw2AF3B730Hl/a07g3/TAd8a5aF84mMTBK9PIiuPnbrozjKBy67FtindGWtbEE99Z77sA5zdDL2dke8sJUkyqPo7HPKpZFrjTJM01uHRj96Y0kceaJ85VvWcNa/Ilt6ZMPupQKAHFhYbp21mmRAeI3msWzSh8fb3h7VRpShuZCHbL+q5hxnSGhCWU1WEjSCAivy1L3xvFCTV6CuOEy58Sk6F1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.176.1.74) smtp.rcpttodomain=dpdk.org smtp.mailfrom=ericsson.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ericsson.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TYacLwY7UgfP+vJui/OuA5pH8Mpjlu+MBYtEPJa3BmY=; b=mrQ+jeatgFb/j3rwRX0aZj7pByhnMuTynNvPWrqqChZWGuW1rYnBo9mZ+PUSHDK/L+nXHMOjYjXRPgQpH9J93w9dk4l1k2DcM4ZyEJO9yGHSvVLF/uPrm27Pqf2PMYk+6D73cU8Epzd2VmXDgZJo4F7Z3lwqtYmuCNjp7/LFQk/waOInTIIRTuT2wOYNRGu95mHLOiaFSamXd76kuEE1H9w/UWfztisYZS6v6OcLwKJkPn1+liwDVIGfaT58wOtSANwQOZ2Yk6vSEu5gLTzT0EIebH7p4gYAjiU7Vw+VbtshIoOekpDa/nR8AkeiCD2zdBzeodr73xSjMCWq7/+qOg== Received: from AS9PR05CA0020.eurprd05.prod.outlook.com (2603:10a6:20b:488::34) by GVXPR07MB10085.eurprd07.prod.outlook.com (2603:10a6:150:11f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.15; Fri, 20 Dec 2024 14:30:01 +0000 Received: from AM3PEPF0000A794.eurprd04.prod.outlook.com (2603:10a6:20b:488:cafe::76) by AS9PR05CA0020.outlook.office365.com (2603:10a6:20b:488::34) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8272.16 via Frontend Transport; Fri, 20 Dec 2024 14:30:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.176.1.74) smtp.mailfrom=ericsson.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ericsson.com; Received-SPF: Pass (protection.outlook.com: domain of ericsson.com designates 192.176.1.74 as permitted sender) receiver=protection.outlook.com; client-ip=192.176.1.74; helo=oa.msg.ericsson.com; pr=C Received: from oa.msg.ericsson.com (192.176.1.74) by AM3PEPF0000A794.mail.protection.outlook.com (10.167.16.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15 via Frontend Transport; Fri, 20 Dec 2024 14:30:00 +0000 Received: from seliius19697.seli.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.14; Fri, 20 Dec 2024 15:30:00 +0100 Received: from seliiuts03667.seli.gic.ericsson.se (seliiuts03667.seli.gic.ericsson.se [100.77.109.197]) by seliius19697.seli.gic.ericsson.se (Postfix) with ESMTP id 15CB94020B64; Fri, 20 Dec 2024 15:30:00 +0100 (CET) Received: by seliiuts03667.seli.gic.ericsson.se (Postfix, from userid 125215) id F377E60FE98A; Fri, 20 Dec 2024 15:29:59 +0100 (CET) From: Piotr Krzewinski To: CC: , Piotr Krzewinski , , Subject: [PATCH] service: fix getting service lcore attributes Date: Fri, 20 Dec 2024 15:29:38 +0100 Message-ID: <20241220142938.1300646-1-piotr.krzewinski@ericsson.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM3PEPF0000A794:EE_|GVXPR07MB10085:EE_ X-MS-Office365-Filtering-Correlation-Id: 94e0b83b-931c-465c-ffb0-08dd2102c96d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?4dXom8VRV88BxzM+yDJm67Aa56nrgk/wRJRjqfvgILepXeuPt9rl6Q1v7B5o?= =?us-ascii?Q?LM+zItkJVT07yfAZUisg+VNcf9mgIQudMppHheOKqv/chFQKHJP8nAx1Id0K?= =?us-ascii?Q?BMpD0a3QEVe8PYP6dg1DNYhR/9r2A/v3HJlANPiPMF1fhvbgPQYEinC/w9tg?= =?us-ascii?Q?kk/eP37AZxw0Tx7ayGCIdpVQCcCDq2M5Pf0PKLs/xz/S4lTpLrJZczj2BBKe?= =?us-ascii?Q?Lr/38Z+fuPnhh31WTBFVvgrI2rZBYzx5bLxwySJQDh0t88kNJ74XbcxZEP+r?= =?us-ascii?Q?lFqkkpjSceCALlvjSivPRO+z2oy3GxEVVej39VmAZho9J3kapzDaE7jdhyda?= =?us-ascii?Q?7QJMm0NvY8we1lATKK/471Vbv+niGi8/tX09vbOBAGiKtTEl8NPPV3wBcvG7?= =?us-ascii?Q?s5qeQNC+o6cMMw3ns5BwcO/xzAQx0iqzCPLsyuNbBNZ4yIgwhU1NFqYX9/76?= =?us-ascii?Q?S+yXvKSrGde4ZtFZMDM/DAeBUtUJL6GqvxK7xpRaAkpsyei7WNEBAu7FY6hd?= =?us-ascii?Q?n9qx4aKpQRie7dSP4YTQlAfbXtOpZS5PhwvDJtDk+xRQZuZL/USvOKZl3ctl?= =?us-ascii?Q?sdvbBLvCl3Hb5YktqT1lybuTSkHhwvqbP1rkiiEjSl3YdARJ9RVdUoe4WyuO?= =?us-ascii?Q?0i1iH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-Report: CIP:192.176.1.74; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:oa.msg.ericsson.com; PTR:office365.se.ericsson.net; CAT:NONE; SFS:(13230040)(376014)(36860700013)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2024 14:30:00.9090 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 94e0b83b-931c-465c-ffb0-08dd2102c96d X-MS-Exchange-CrossTenant-Id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=92e84ceb-fbfd-47ab-be52-080c6b87953f; Ip=[192.176.1.74]; Helo=[oa.msg.ericsson.com] X-MS-Exchange-CrossTenant-AuthSource: AM3PEPF0000A794.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR07MB10085 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Perf test service_perf_autotest was failing after introduction of lcore variables. Fixed getting of idle_ and error_ service call statistics. Fixes: b24bbaedbba2 ("service: keep per-lcore state in lcore variable") Cc: mattias.ronnblom@ericsson.com Cc: stable@dpdk.org Signed-off-by: Piotr Krzewinski --- lib/eal/common/rte_service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/eal/common/rte_service.c b/lib/eal/common/rte_service.c index dad3150df9..1821746337 100644 --- a/lib/eal/common/rte_service.c +++ b/lib/eal/common/rte_service.c @@ -879,7 +879,7 @@ lcore_attr_get_service_calls(uint32_t service_id, unsigned int lcore) static uint64_t lcore_attr_get_service_idle_calls(uint32_t service_id, unsigned int lcore) { - struct core_state *cs = &lcore_states[lcore]; + struct core_state *cs = RTE_LCORE_VAR_LCORE(lcore, lcore_states); return rte_atomic_load_explicit(&cs->service_stats[service_id].idle_calls, rte_memory_order_relaxed); @@ -888,7 +888,7 @@ lcore_attr_get_service_idle_calls(uint32_t service_id, unsigned int lcore) static uint64_t lcore_attr_get_service_error_calls(uint32_t service_id, unsigned int lcore) { - struct core_state *cs = &lcore_states[lcore]; + struct core_state *cs = RTE_LCORE_VAR_LCORE(lcore, lcore_states); return rte_atomic_load_explicit(&cs->service_stats[service_id].error_calls, rte_memory_order_relaxed); -- 2.36.0