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 8099CA00C2 for ; Thu, 10 Mar 2022 18:51:40 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7AB4741148; Thu, 10 Mar 2022 18:51:40 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2061.outbound.protection.outlook.com [40.107.236.61]) by mails.dpdk.org (Postfix) with ESMTP id EFA4D4113E; Thu, 10 Mar 2022 18:51:38 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XrQl/y2zWAfAyXjlYkhF/VBx0URQWF0GSnZXcFQgAvPW6TgGKexEj+matzYqJrMhWdLPzXfqzJ0owsjraNmB3lK9wBAcGYeZiB0NsBrg8K8nazHo5dOhWNmVl20t8mVLEHhTMkYnhXArM8W3X5Q5yzuMPl4p0tzte1TtFtz/A46xfcJcragflo9FQMgNnVABaU/loi8MnXApDRkARyeTTIyksCcjSc2sHiLnqrkUhWWGSZ51xZ2Sq7GX7CyNdBllWPTrmzCTwy4qCrFEOmcK1SiqqikW0UlQpHIVRaAtIXLzVwCZnwNHyqXXdKjnpVcxPop3MpcDMTFUUTxONOP/Kw== 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=CLDKvWWS3ASh/LdZeHFY/ipOhlXbE8VBH7ArtANR3cI=; b=UvPmfVfCM3VaXTY4RqFhJLJj88BuSY7WjbvD+YXdibUoiYn7XyhrlpaoizusnMj9X3O63DZsVcHFtaRPRLqYcK38Gz+rkwKqWDURrFevCuM4LchaXzZxHBa1fbdFRbDxNvaRCkWdmzFAKVhUEphoZZ7FVtmbUxpYZIeaRlkAfNkDSsI0kweK/Y53xI+vPw8eZMX05AKx99/dBGkYnFpPwkDYmH52/vMx7JQmpEGssv3VSgxggbwoIJl9DspowZ8PvSiHA+YEIeVydWPO6gMmP5ZOBF6+qgyU+GeolHi58dxX/lRnq2xZWKL+PzHbo6vG/cirEHsBWiHL4S843IAbhw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.234) smtp.rcpttodomain=dpdk.org 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=CLDKvWWS3ASh/LdZeHFY/ipOhlXbE8VBH7ArtANR3cI=; b=XGB2Ssa6dmGZvV4kng2TN3pTH4VZrsvcyjt1MGDG4llkVGytB+NjCIN3GgndifKWQJhNV7/eDC9TWWn8Z1ml8wMntjxey+uHe162tE0bPiYAvr5bZRtA86EzRmbTan/CqkkCOyc6x4scUeCJXUN12v2/LYNB0yCX0OUaOwTELL7ud4+5WdbPCtT7RsCf95ROlBCLqH4Pj8ZLZVxsw4pCEfBQc2q0XE+JsrdpxaPkfgKN130tdwky53kac5yf6jzAtPNHxiyPrdvKEVeBiLymr7RtOUvPw6KYd9I6FUKu3wS6BEOBDKaY38zWZJb1uO5M67W+Fn4V5z5bZoMf2g8EqA== Received: from DM3PR12CA0090.namprd12.prod.outlook.com (2603:10b6:0:57::34) by BL0PR12MB4690.namprd12.prod.outlook.com (2603:10b6:208:8e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Thu, 10 Mar 2022 17:51:37 +0000 Received: from DM6NAM11FT057.eop-nam11.prod.protection.outlook.com (2603:10b6:0:57:cafe::a0) by DM3PR12CA0090.outlook.office365.com (2603:10b6:0:57::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.27 via Frontend Transport; Thu, 10 Mar 2022 17:51:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.234) 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.234 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.234; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.234) by DM6NAM11FT057.mail.protection.outlook.com (10.13.172.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5061.22 via Frontend Transport; Thu, 10 Mar 2022 17:51:36 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL101.nvidia.com (10.27.9.10) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Thu, 10 Mar 2022 17:51:35 +0000 Received: from nvidia.com (10.126.230.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; Thu, 10 Mar 2022 09:51:33 -0800 From: Adham Masarwah To: CC: , , , , Subject: [PATCH] app/testpmd: fixed using strtoull with 64-bit variables Date: Thu, 10 Mar 2022 19:50:23 +0200 Message-ID: <20220310175023.2552-2-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.230.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-Office365-Filtering-Correlation-Id: 87d37e75-52c1-4e43-ad86-08da02be9f65 X-MS-TrafficTypeDiagnostic: BL0PR12MB4690: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: Gfn90u462001gGM/CZzhz0jsr6o9+x/MpSvNPh488bEWEQ/1+k5lOn8hjJaYfM8I3gVLPXcvmd9u9zxWIgY3NhT07bQLWgvrJLUphffkH4HN3XH8Wf6YfJwTTqqm85dSjNAAox794zbj2qF5IM9Bk7hlrpOgdwZI3993LQOZcX+iQWPnDOp35kEmI1cJXVTlQD7NvPd0fH6NRXzy4PbduTdUFXLIDADb+3XH77Sp9QRu2HBByZCy2PaedzgnRsNkJVaa4dPuc4BfZ6XE/Ofh36ZUj1ZDC8IUPj367aXcjl0sBT43Yjc0+RC+dqyeYUCcbWBk8xuQ79Jk7TKJS18twTjWYqNOt3E2nvP5vQqDtFZrQuV4pD6kXOtUfow2j083HZTCF1JGvqePJrV5y19wgWATpXv+dMRNWtFTa/+ZPHmjzd72IqKr+jGz7J6AD+jPv/nJMQSQgDVOlnjvCh2mM9aSrN61lfnsG5jylfbx7mrocIQwnw3SEHeF9n6YKc08MMVLgqek/I/2uh1DSEkni9VM3evflMmtMZ0dN1LUU0rRNZxE0dxq0DmFWWQgFkcqb4nzYJiEBY9nW9mdjdyoi4QTqKv0QWzKAZ1HLTX1nxA44Bbe9NLG9w3RcdA7oMODrfz1F2pWE9u+ZQegwO3f6RxkWGfuvnBjtxwokeHr8casKjcNz1gbzfcqEs5sI3PgqPX18LZFhggx3r+LPJ3ekg== X-Forefront-Antispam-Report: CIP:12.22.5.234; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(6916009)(55016003)(54906003)(40460700003)(186003)(36860700001)(508600001)(86362001)(426003)(336012)(47076005)(316002)(83380400001)(36756003)(4326008)(16526019)(8676002)(82310400004)(5660300002)(81166007)(8936002)(356005)(70586007)(70206006)(2906002)(1076003)(6666004)(4744005)(2616005)(7696005)(26005)(6286002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2022 17:51:36.6379 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 87d37e75-52c1-4e43-ad86-08da02be9f65 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.234]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT057.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4690 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 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