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 8EEC9A034D for ; Sun, 13 Mar 2022 13:57:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F9F441148; Sun, 13 Mar 2022 13:57:37 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2088.outbound.protection.outlook.com [40.107.244.88]) by mails.dpdk.org (Postfix) with ESMTP id 9A64C40698; Sun, 13 Mar 2022 13:57:34 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AygJhWVSt+Em4dT/tDuOssH2pJhhnDBsww7GJ50ZxFKR/M/jNqMRa7nWiWlvqbq+u7pNlX6ETsLsOoTLE1R5WndriuDHXzF5SCz0hDOt9n0WRunj+0GCWNA6g5uAaq/WILcYu13L1Ow1xGSc49LTXhgbz1vCygG6riwggpcEjb2nRmilwRn5N7mizkcVrX8VuyVEe1XdD6Lj5/qiMRIZQ7Cz1tQCFWEeshQQcF/ic3iO2buDICOd0sPkX0m1JuI8jq5H9cVJAp7DuxgmY3fIhbzcXHgtXBTyKcnRGrmIIEmcnFr+y1AJoBPM1mNB7GSC+MgrBmYAXsk/IdUDfl/ulQ== 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=mhmaialK2+Io04vqOXKsRcuBhqqZdGlHyuRLX1+usLM=; b=Sef3MTik/NgSfHXR9770DNslalnDeARzwcK7C06vrJrqdUBdv+dePdU0dpNYPSrI6zKBxw72mr2ePvD9Fxi9mADDNNjfV9OJDKw0+X1NK/pjLfpzGm7wcuYkYDN4ETKkO+p7KfUNsZ7VTIJzrZD8pnJaqV+XUfETy/DX3NR1PB1RAKZ3PwN4J7k/Wjnh9gwwVBuiJ/7q8zolmtDf3REapBMh5OnAq0RzUCxNGHvtuz2JWLmpLAZLCGC9ecQrZ/ZcMXyv6zvAvrLBiHEz+GBXrOk5COhvjMQ9WQW1S9T+95HVBfasBhkdvurwkDgeo5wxde+pZZes7SYCfVWCuUIPrQ== 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=mhmaialK2+Io04vqOXKsRcuBhqqZdGlHyuRLX1+usLM=; b=c0+PhT/wdGu8OtNew09F53vxid9037ISsSxbYIkQkEw0AyVe1z4tnwUGXbNZOarfRCGvGtjuK7RlHf7mOd3zRI/fP+ZxTax72RnVb1kEW0RRF5/ReelsR/9Cm4FHl41ws7VJvRQpqlE8PAi1/zp0qAKuy3LXSoWv+jJQU80s9hOUVpvUWUmRAS9yv/IwtrfLcs7kclgRwexOMaRlMKg3Ky+WNUhnCgygrTMapmySk5rRBa+3AL5mzhuHTSqVcplJTPmP2EBq0ipFAvV3ma2oU98FRtjBqbpZV+LStdG/Z8+i+IBmeS4aea8E9Dw5J9k0DqFG1XcD4MnPmewU1djjAA== Received: from DM3PR12CA0090.namprd12.prod.outlook.com (2603:10b6:0:57::34) by MW4PR12MB5666.namprd12.prod.outlook.com (2603:10b6:303:188::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.25; Sun, 13 Mar 2022 12:57:32 +0000 Received: from DM6NAM11FT044.eop-nam11.prod.protection.outlook.com (2603:10b6:0:57:cafe::9b) 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.5061.23 via Frontend Transport; Sun, 13 Mar 2022 12:57:32 +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 DM6NAM11FT044.mail.protection.outlook.com (10.13.173.185) 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:57:31 +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:57:29 +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:57:25 -0700 From: Adham Masarwah To: CC: , , , , , Subject: [PATCH v3] app/testpmd: fix show RSS RETA on Windows Date: Sun, 13 Mar 2022 14:57:02 +0200 Message-ID: <20220313125702.11884-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: c52b94ea-bafb-4397-7454-08da04f10999 X-MS-TrafficTypeDiagnostic: MW4PR12MB5666: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: D3TMRASpDqTpi9D1d6KaTzOMuLuluAeKcH1rLjFOdZOKjetC11NMTMwNtnY8i8BfjxePlr5PE2JrCsdlXJRyFF/tCl/8RPrqJ8jsaPGhtJnvsEUpUGPta4X/1MlKyNP6yORdgGh82r4Nsnbp8em5CRZB6f7MwJVQdDAzvzODcoGeBuKDovCpwpqtP3dcMPXQzso4XMfKL+CkH+cFXIjDhrfXsBJDNwwEUMmyPq5gZI6KukTjZ1g5Kxod+Ogof2VHWRSM9eTYAGlcru5gp5VgISTaAjj48ssECd2M2neldAcchkeM1sEwyQTZTO3AJYkftkOeDJvukAw3COkKhvBWCneoxG0EEL5C+yyXrirFlbQV5+QzOZi3v3AQJu8mY58f9gZkDxZP3GPRYnx6AMo0tD4XXFQFrrWXD/FXNY92hY/gO150N+65kZx3eK+WnZK5/QtLHWfjuewxbCJUmGYHf7B+hygpVyjvpGoqz7YE25U9YdQhILQ4gg856R8wP3Y2tR7vVWve9pjIQALgTbnRoSr4M1zir6jtKpVNvKMN7FvUT4mmZFGWh6xDaYlAipE/Dngaq+1jUmsftjpWgFRZVQiuWd7rxXCjBqDaGM0BGzFPV+s0FnwNnH1AZYeXs19WxLGMBqh95bK3yuvJn0oBxp35JJJ2iYSjfMOWlJVIoNe0eepRzoIuU6WWYe/1Q1NGxoJzCeJH4b3ypHQuTKD2wA== 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)(70586007)(8936002)(8676002)(36756003)(70206006)(4326008)(81166007)(6286002)(5660300002)(356005)(2906002)(36860700001)(316002)(6666004)(4744005)(7696005)(86362001)(6916009)(83380400001)(426003)(336012)(40460700003)(2616005)(508600001)(26005)(1076003)(16526019)(186003)(55016003)(54906003)(82310400004)(47076005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2022 12:57:31.9777 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c52b94ea-bafb-4397-7454-08da04f10999 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: DM6NAM11FT044.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB5666 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 Acked-by: Aman Singh -- v2: Change commit message v3: Added Acked-by --- 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