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 1D435A00C2 for ; Thu, 10 Mar 2022 18:51:13 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 098B941144; Thu, 10 Mar 2022 18:51:13 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2046.outbound.protection.outlook.com [40.107.223.46]) by mails.dpdk.org (Postfix) with ESMTP id A393E4113E; Thu, 10 Mar 2022 18:51:10 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AiVyECAGpqzmVfEGLda7KEOirI2YI3Cep4NKVSUxTJd84dMtCgCCzcXHQx/jocO5LaJJd5s8B+bH3llINZFeJH+saItKN8JbmtXHl3obqomqN27l6x8HO6bxIXeuSOy9Q3IbdxjUQLcaxbjmzivFFzFTZebStnS8Wmfao/qPxaN3qyVi5o6dKJkLDjWDfhfEM8BYJ/o2/fdL4awkRXEplM+6OSDCsKJ2H9Y37ov+Wn04and8biJZ0Qm0IVRDs08FWLSdI07z95824CtGwpwr4JZ3KmjenptnmIegL+UKhOz5PRruI3hzLm7wYVI+AFQn3NwwlukMqZlYKHmbPCFYlQ== 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=YkZmXfLU40LstBa0eJj8ZvQiwToDJ1GjPpZ77Z3i49+U7bbGJD3dIhzh1mex12qm5HKmH+KPFV67xCItoC3aQ6BR1myNweZ32kuDjjC2aeFUTh9VEYTdE1gbHL2pnivGdmz+9hp3cr/UoavWj9ZORP4aAUUqcwyMeROcbEaT13w/o/bghzmXR4TcKixa/DXSlEzm5AbDecpfvfNi3QE0YW4CIUCZlt23s/C0DYdFPjCWwGkqDV67U+HVEUj+44PaS9zhK9QROA04uYARU0HSyLjLpj6o99UtcNBiSdBhyzuAVqW3VjmlbVBzf5cN1DRe+5P8hGXQHi0aizRUadP8jA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) 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=HkyoCA8nE/o1tQppf1nQWe1h608+/Hfz29k3CoTI1ZZHp45+3sSp4cKL4le91RY61nO9+vUsLMAa9Xha2gxcjRki826srnYCFA8BWI8jOXPlUDB50AKYiA5TNmrbQpwxsGpRFskHeefxmJOhniJhmlwTHWPFLbCJzdZieN8n6PsTvp97JteGgjAm5GMPlH2aETYFhB3UNl9LfYbw7mUf8Vz+Htt5WdZ+Eau3FBBhaMF+wKyfLZZZliYa5Jw2IMNBaP0lUwMZfDe+OMHfnyrgWKipqVmoMQiRALQj12fFlE+0F5jb1YG9nRxqol1u9Fa2FN7+0Or0YdJhsDvotD48UQ== Received: from MW2PR16CA0004.namprd16.prod.outlook.com (2603:10b6:907::17) by BL1PR12MB5730.namprd12.prod.outlook.com (2603:10b6:208:385::9) 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:08 +0000 Received: from CO1NAM11FT067.eop-nam11.prod.protection.outlook.com (2603:10b6:907:0:cafe::4c) by MW2PR16CA0004.outlook.office365.com (2603:10b6:907::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.22 via Frontend Transport; Thu, 10 Mar 2022 17:51:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) 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.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.236) by CO1NAM11FT067.mail.protection.outlook.com (10.13.174.212) 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:08 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Thu, 10 Mar 2022 17:51:07 +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:05 -0800 From: Adham Masarwah To: CC: , , , , Subject: [PATCH] app/testpmd: fixed using strtoull with 64-bit variables Date: Thu, 10 Mar 2022 19:50:22 +0200 Message-ID: <20220310175023.2552-1-adham@nvidia.com> X-Mailer: git-send-email 2.16.1.windows.4 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: c5679317-6fcd-47f8-599e-08da02be8e8c X-MS-TrafficTypeDiagnostic: BL1PR12MB5730: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: 3L4kMNnWcpg8tskwK67JCSUwhb24YJKoUU4U2/5wJsmu9epc56wk2gD+8vIa9HGGO8gG974vNNHPcwtLHZN9uMOOotrXEkUgGCbgn+ui4NvyB+5kGrQjsslek6S6xhAb93IJ/kV48QK/QNe09sAHHyd2HSUbTaSi8HreE4ZKg3OAWFJIP965365cyT+3AhiROcaSJfmOgmQrahydjPZkjY3Awm+ZqdB9QqImIpijdhGOfJdEHkFP8pDsQ6Lk2Kz02To0ullwIjM512jK410kUJ0AE2lp9h5PZQQpVZC1McekLbJsP6+5bJkF72w2qk05vjQCRo255xB52y7U4D24osImBtB+hM/wRFJahGHRAH3oEBkc87HQuZ1VSOlyrbZGTzKI2MQNfcHEyWSUknJTw6CpRuJSb3IhBngjVTdfi20tjMIuAvd4aAwFJJakEEpv4H46M2B80/RS7eKQUC1SQE07JsyaEfu/LnNGLeyS2c38kN6ehrzXSsDku6TqVzUd9+cVXWaoEZiE+WXUTXxgGsDUTmBpGFMd8aRpMzOFUmaf/2l+hK32SrMeKXMSFqpmvXxZMdEJ+q1EnfFHHAkFz5RIIZLaP5brIvDhDQvMvvJOyrUUHvwtY2Ocmk8zRqapjUUof2Mp43Nd4eiD5t080Lc3x5tdMhwX8PSUKp6/r8kPQhwtjywFjGgMrAjPbD+HkABb4Ow34a01KzQA04bi+w== X-Forefront-Antispam-Report: CIP:12.22.5.236; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(2906002)(426003)(356005)(55016003)(1076003)(5660300002)(8936002)(47076005)(508600001)(36756003)(316002)(6916009)(81166007)(54906003)(83380400001)(86362001)(40460700003)(70586007)(70206006)(186003)(36860700001)(16526019)(6666004)(26005)(6286002)(7696005)(4744005)(82310400004)(2616005)(8676002)(4326008)(336012)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2022 17:51:08.3857 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c5679317-6fcd-47f8-599e-08da02be8e8c 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.236]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT067.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5730 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