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 4359943C5F; Wed, 6 Mar 2024 16:02:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F84942DE4; Wed, 6 Mar 2024 16:02:26 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2046.outbound.protection.outlook.com [40.107.94.46]) by mails.dpdk.org (Postfix) with ESMTP id 1834040A6D for ; Wed, 6 Mar 2024 16:02:25 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DPtR+A0QMNw/YGVK4H2gTbWSkPtm5L6WIggJ0tY7G2jGhpMgQhhUXXD0Kgbrr7kJto6rYoOgI3s1B6DDI+DlxShxOE5mkT/o/kNY0ahRW3mqO9xWY3BsWYiLQrM8zxOFDq7vv1i62mi9StG21oTOOhG0zflKcstXLRJ+MxHWZ4rr5Ko5WR6gSee9WAMSrK7YHRPKoR+PiznVMilo78purLj5/JyPlS5EkBIety+kfEZOX7Y5ylkyP6pJAkmxS0TNwQAoXACHveKYkVkJ2VFrArIp05VSKofTcBKc2Rqx3+Kr1w2z1SuBysfjtzgnio9IotoUkkd026YtNVZc7c+MUQ== 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=UvBMjIAc4rIzuCZtq3UDfB628ve/3DxFTa4PfF0Enx0=; b=nvd16D3jLLK1gHHNYocBK/p1JC11MTVgC7HiOVncXCeW3v4ar2afqjQPpDPHkrcMAoeoB0yeq+ob+S15XcZST4M/FI/Mo0DAYlaBc/NOPgGVP4mY2n37dR7dK21gLmDoYO0E6UWXv42UacLoI9LiS6OUYVZ8wf87wC8dm+8oDpnPtLdK9Qwh6zRN7P5StjhA2luIk8z0U5h9NkwViuwmbv8SMjepbk9wbT+XR76GgQ6rMbSn+hP3RKXwBt4dplSQWcrcJuiELxwdceHwi4EzQMBXH046B8kZ9k+Ay8iT1H9uvEqPlkQLYmxgJ8/smgMhy4Tq3YhgMpts2ONLhDE/4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UvBMjIAc4rIzuCZtq3UDfB628ve/3DxFTa4PfF0Enx0=; b=1e5UyumPLBU6J+cUDERbf+lKAgdz36KTD04k0vBkqItoUqZeS5nBfIkdk4yaBjM0kRDAhlK/Lrv7HTJaDWZn4ObUhwN/bK3/OsSvzr954WrxSOoNXRcoPGKQGKyUT+u4jb4CZWGNWFhYYH2akoXGrm/l3MgtGC+YWiQjNSHWCuw= Received: from CH2PR15CA0006.namprd15.prod.outlook.com (2603:10b6:610:51::16) by CY8PR12MB7243.namprd12.prod.outlook.com (2603:10b6:930:58::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.26; Wed, 6 Mar 2024 15:02:22 +0000 Received: from DS2PEPF00003440.namprd02.prod.outlook.com (2603:10b6:610:51:cafe::f) by CH2PR15CA0006.outlook.office365.com (2603:10b6:610:51::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.26 via Frontend Transport; Wed, 6 Mar 2024 15:02:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS2PEPF00003440.mail.protection.outlook.com (10.167.18.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7362.11 via Frontend Transport; Wed, 6 Mar 2024 15:02:21 +0000 Received: from BLR-5CG134626B.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 6 Mar 2024 09:02:17 -0600 From: Vipin Varghese To: , CC: , Subject: [PATCH] app/dma-perf: calrify incorrect NUMA config Date: Wed, 6 Mar 2024 20:32:04 +0530 Message-ID: <20240306150204.1375-1-vipin.varghese@amd.com> X-Mailer: git-send-email 2.41.0.windows.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF00003440:EE_|CY8PR12MB7243:EE_ X-MS-Office365-Filtering-Correlation-Id: e294fa8e-1c2e-4d64-00c1-08dc3dee6cee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: R8KJ9g641r3YGhpqlzgxiKi15sMSThn/C5iKwNCTyZnMbKCM+YMUPLmZeB/ehK3nqqTqp5yPMxaDUSjl7ixgfa/cuCrYVRO0vFL9SwPOl/fiaJmTdLRWMHSax0XgCbjE0k8CIH2f3fa7V8qByfqQEBgMhMoWH4NRvI7y9G64h7ngtfME6xHV4///T8rfuv/48+YnopOLyRRFFPRWpGF3Bc1zBv2TTr+tpLJlbxotlbzZSGF6YYNaiqO8zq/mXuBKTcIjihGrMJ1IGBB+TqUbd7cau7KOethLUp3xdAVS95DWSMndUqvw6iCaKFUaOo1YxDWXMyHB9DL64L2WVolsIqG/GV/sIQwJkl6EXSPpbr2EZI4bAbFBmKp01qsLiRhd1ERAKhkHCZ+7RNQj8K7mi7BfJ2A6ZxNIGuXMQE8fQ8VUxvx8UUyueJBmD1Sjk7GKZgrYnlx8AnfBiN96C1iyg4PRCQZADOSFG1c1B3ZYHcJPSlo0qN2Iyo5YGUWHRjV+7tkeUDjEbUSMOdCqDvuwq/pmDfc2hBrxGVaCGxf03kTeHgq8Qu/ef/IT1Zx2cSTdLql5BPiGSvxC3+/CkzmyCOCOnummehKiynyVzfF3bCVJt8fTlFS+dldM6VszJbYnxDd2Bf3yQ3edQx68MfiJZlZMJ3erXYE3PDIM3N0JAP1vBIG0PkdcZkQT6T32HJxPdK5onXofGHvHAKCpl6EdDUnpjsrVc32kY5+2H+pD9KzC0R5Lfxk1EoxqEqQY0HWV X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(36860700004)(376005)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2024 15:02:21.7878 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e294fa8e-1c2e-4d64-00c1-08dc3dee6cee X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS2PEPF00003440.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7243 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 Current commit decalres either `source or destination numa is greater than acture numa` as cause of error. Rephrase as `Source or Destination` is incorrect numa by checking which is greater than available numa. Signed-off-by: Vipin Varghese --- app/test-dma-perf/benchmark.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test-dma-perf/benchmark.c b/app/test-dma-perf/benchmark.c index 9b1f58c78c..5634ff8bf8 100644 --- a/app/test-dma-perf/benchmark.c +++ b/app/test-dma-perf/benchmark.c @@ -313,7 +313,8 @@ setup_memory_env(struct test_configure *cfg, struct rte_mbuf ***srcs, nr_sockets = rte_socket_count(); if (cfg->src_numa_node >= nr_sockets || cfg->dst_numa_node >= nr_sockets) { - printf("Error: Source or destination numa exceeds the acture numa nodes.\n"); + printf("Error: %s numa exceeds the available numa nodes.\n", + (cfg->src_numa_node >= nr_sockets) ? "Source" : "Destination"); return -1; } -- 2.40.1