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 13201A034C; Sun, 13 Mar 2022 13:45:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 98DB440E2D; Sun, 13 Mar 2022 13:45:52 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2048.outbound.protection.outlook.com [40.107.237.48]) by mails.dpdk.org (Postfix) with ESMTP id 6FE1040698; Sun, 13 Mar 2022 13:45:51 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AytJX8/qwk5wxJH9Uqyi5YQQGlz4CZ/yfnaHyE3AimF7SLKibUsz4UI95zuQxaMnLMcvaYlv99ffLhkL9YT1UCELBFZ8gYjJRMWPpTQ3OcKN1qYXchlXQBuNPACheoff2u9dzsLEjHDHTHHudQ0oJhY+BR1pk3Zy6x78OP73z3uBaNUAlA9pdLSZMlbPONmMvE/2xhrJrydtaO66/kfTdtz3EQZ7cSSsqmVDBut01CRFLbmv/yNqrDFOZfotoO+OcLiXPEHAVP/S1o7+0vNYbKjqd3BzaU7PpYLcBnhSL0yMttd3zdfmx3JXtzzpBlo0uXbYcD8NgFGISq9FAm2dwA== 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=SvohbH+HvSjV0CTpaPrn5JbC0VltM+ibaW2wnSy8k+U=; b=Yx6QuNZhJlDYkciuHGAnkZdu6lt25//kAgtVaJieErHx2UA0kMB37nNilHPVK9no0f3e0NIBfbY/sSnOgJi9K/4Q1ZNa90qqDg8tpExlH7inNkX6grPuM6eRX5HUbRL/hypoWmWcEe0UThZ/R7PVwhp6ZJll1bM2J4spoqO6hmdeAUQChgNxGJ5BXG25p1x8mPDfoke21GlyyCmx7nt7AWWcZHMBIQSX9yfjrqv76ZXM+CGhPwcXJVnmW383hADu5eLa/T4R9t5I48UGF6UxLEpkLt6DiEd74nth3D+bdkaBFDvaqITjRCJjwVCU9hhLMEl8RrBqYLetdMfO0ewEIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.235) smtp.rcpttodomain=gmail.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 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=SvohbH+HvSjV0CTpaPrn5JbC0VltM+ibaW2wnSy8k+U=; b=S/Xr2vKe+/gIaB5rwqDNzCsrdtlVxAsfIH4tKrcz+gVIw6zcm02Yz2EIujZfh0q6SzfeeoGtAoNa+M0hBqpG7RUiL4KOj0m5EECC1Oug/8Y6swSKraipQSRV4nDbaB3NSjtPZbsB+aE0Z/ld7YvPIwW8KVRoRzN+a+AqjrJBoAMF8BEifdHIlxW9cLuUiaBczhyf9PwAfjCZoCvdZWp3dSpXks0fXSFJmwWkIzMbVyKTEM8XoAdd8YEpSjWoXniqc9pws3z/+JQQogVFBdOP8BfVDAh4oMyJSk+rtqEO2prou/d18jqPiRcCDOTD2jNQv2F1KZedmvfjgpqetvaUow== Received: from MW4P222CA0029.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:114::34) by DM5PR12MB1481.namprd12.prod.outlook.com (2603:10b6:4:e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.24; Sun, 13 Mar 2022 12:45:43 +0000 Received: from CO1NAM11FT016.eop-nam11.prod.protection.outlook.com (2603:10b6:303:114:cafe::3b) by MW4P222CA0029.outlook.office365.com (2603:10b6:303:114::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.23 via Frontend Transport; Sun, 13 Mar 2022 12:45:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.235) 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 12.22.5.235 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.235; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.235) by CO1NAM11FT016.mail.protection.outlook.com (10.13.175.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5061.22 via Frontend Transport; Sun, 13 Mar 2022 12:45:42 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Sun, 13 Mar 2022 12:45:41 +0000 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.986.22; Sun, 13 Mar 2022 05:45:38 -0700 From: Adham Masarwah To: CC: , , , , , Subject: [PATCH v2] app/testpmd: fix show RSS RETA on Windows Date: Sun, 13 Mar 2022 14:45:19 +0200 Message-ID: <20220313124519.12984-1-adham@nvidia.com> X-Mailer: git-send-email 2.16.1.windows.4 In-Reply-To: <20220310175023.2552-1-adham@nvidia.com> References: <20220310175023.2552-1-adham@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5c71cf08-8767-4c72-fd5f-08da04ef62d1 X-MS-TrafficTypeDiagnostic: DM5PR12MB1481:EE_ X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6m24QEiHPXxczP/SOFbF4xoB86SwV0o/rAaEIO4ClIXPC7j7w8cQdEZsnxiZQZwTjgor0B8T53RqAd1x1jh3bQUBBfPSDzMoQV+TyWsncs/mjpA2MkcxYsMsP/cOeQe5Q83h139fjdEGVMno3h/aEMvuIqAjgcYyzwrsJUeQv4boEm2bpnQsVShNWfHLvz5Q5tWDJZfD4iwo6llag0Wv7aCvBZmY+bw0YSo6CJK0q1CPp+bHKcVX5m/3hVShc5JL9fzYbYZ1fMJwWA+utCT+Ag6cfGsIezi3PdO2UDzLqPKlmRSo/J6O//OppXf27VjNj7U0Wp2FsGhPi5dJKlbgQsDG7pgKsLqnGHWxtvthf96uVJjXRAPC3GRyb3bmmAGw+HjEKE5dDFwGP1F68qDlIN8VWwWoD8P7wevT4OKHn1u22K/LPq7ipr8q7peprPaVmSBip+0OwIsm+8uIcgAesx33sv918c9nLvETSavyfO5IC2gTAqo9R10131YnXL2r3PL8jePW9wTr4lUUdU0wyRPsV65diqKvrLWMxFw/xslo/cJU4iyaK0Jvowbdmh5dGiFCsbrRlB8Yo18FkNqIhgb1PCDr3UaVRhDG73HVBWTqLwlUK32cXDmQvVYIoq/EJlLpmELSz+iAuKbYZRn9HMJnQaZFCC4zNEOsgkjcGH6oPi2lNlJTQrAYdBm61hPmCzjn9UodD0Zb7OQHs48NNQ== X-Forefront-Antispam-Report: CIP:12.22.5.235; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(46966006)(40470700004)(54906003)(6916009)(316002)(83380400001)(70586007)(70206006)(6286002)(8676002)(4326008)(2906002)(86362001)(55016003)(36756003)(36860700001)(4744005)(47076005)(81166007)(8936002)(82310400004)(356005)(5660300002)(26005)(6666004)(40460700003)(508600001)(7696005)(2616005)(336012)(1076003)(186003)(16526019)(426003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2022 12:45:42.6720 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5c71cf08-8767-4c72-fd5f-08da04ef62d1 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.235]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT016.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1481 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 Replaced using strtoul with strtoull when converting to 64-bit mask field. In Windows strtoul returns 32-bit values which cause an issue with show RSS RETA. Fixes: 66c594904ac ("ethdev: support multiple sizes of redirection table") Cc: stable@dpdk.org Signed-off-by: Adham Masarwah --- app/test-pmd/cmdline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index b4ba8da2b0..efa02bd301 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -3127,7 +3127,7 @@ showport_parse_reta_config(struct rte_eth_rss_reta_entry64 *conf, return -1; } for (i = 0; i < ret; i++) - conf[i].mask = (uint64_t)strtoul(str_fld[i], &end, 0); + conf[i].mask = (uint64_t)strtoull(str_fld[i], &end, 0); return 0; } -- 2.16.1.windows.4