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 3DB3B45909; Thu, 5 Sep 2024 08:25:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EC91942DA3; Thu, 5 Sep 2024 08:25:39 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2134.outbound.protection.outlook.com [40.107.220.134]) by mails.dpdk.org (Postfix) with ESMTP id 0B2774025C; Thu, 5 Sep 2024 08:25:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AMPWmne7niS3lMQzpzeMo7HoQ3JKU+Nj3T+k3tDnf2JVKCdxf3L4InHW0c4YXb3NvVI5NqZS9lw8kARmUk67KhqQk5Go6FFln50Qx9Somf3EP6x3AixDiE5SL5GQSZEWcbZhygBa1CyRbZnPxIFbQZ1CnyDIGrui+WVLEyTAUjGVhBhhwAUEuSLCwyylL1FVS+WtQCKXyOSP68MI8AbWeHSmRBQOCejcvzrWK8X6U5HB4j0af1QYMonswqrXdS/KoW5ykaKiof3I3GOZm7sKaq28qUX85gNJLgFKm0aYYiThIEexwulIFBF20qrNFdXXp3RWb5VB57Gm4NtrrgF6yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=/qjLl40LZamGrRqilQlNOGInFsFYfbqiJvsOt6uink0=; b=ps3xyzkDcI8/bRZj4E5W+zAAWSht89XKbVT+biU+S2nWq1kn1l9VgkahaM5zZi0PLWpmaPLmqrsxj3t/+z1APcCfIWh8KgMktPJUuHXvYs8YyTfvlxgC9HZoVK7WnL4+okzVQIZsLdLNZ7i/Au+e5FvmUVgq7j9N/CWzoe/47yBlpdCf1KftBQ2fsUVwKnhRfEv3XJTWZh53RTcC0UicW7JNZyH9UHVDQZA+ZesWik4uy64Ljskhtdg613CCD5TECE8HlTq8c+hEX/tQ8wyOTg8qHdyhh+N/wcs0neGdSWJudW2CRZf9bAWKcqY7DEzYA5OJ9wox6d+C8fUtTrXnkg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/qjLl40LZamGrRqilQlNOGInFsFYfbqiJvsOt6uink0=; b=TE//bAd2tECJ4i3SaBxco6macXp/WSb9bi5VHAIrYfyr4toJuV0g+91BztJu1a5UXJodH+SkV9QHJ8LbBejWkkJtVYxk/s/VjxsSyLnW8my9EZDAO/4hJ+1Xa+u1e1GflN/OkCthR9lM9gI37Pcg5aSgU6SxegLYO0pbtzkoGHs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by BLAPR13MB4610.namprd13.prod.outlook.com (2603:10b6:208:306::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Thu, 5 Sep 2024 06:25:35 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%4]) with mapi id 15.20.7918.024; Thu, 5 Sep 2024 06:25:35 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Qin Ke , james.hershaw@corigine.com, stable@dpdk.org, Chaoyong He , Long Wu , Peng Zhang Subject: [PATCH 1/8] net/nfp: fix incorrect type declaration of some variables Date: Thu, 5 Sep 2024 14:25:04 +0800 Message-Id: <20240905062511.2710102-2-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240905062511.2710102-1-chaoyong.he@corigine.com> References: <20240905062511.2710102-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGAP274CA0017.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::29) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|BLAPR13MB4610:EE_ X-MS-Office365-Filtering-Correlation-Id: 195ad15e-5857-40bf-f125-08dccd738d1c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|52116014|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?xK8UjRUj+fohjC7DK1ahb8xAhw9GOqAyxwiQR7gYSqHdRcYz9EX1k1+Nob4J?= =?us-ascii?Q?pTp5THatmn1BeXkUGx5RfG7/ehhhEi2o+OJuA5cu5fjg0bG8WMwkQXYruQsO?= =?us-ascii?Q?v2ry2xdT/CIPAiyCJHH2Lbx+7CK14KTM1dMe/IancjjtBmVeMu60+MaA6XZJ?= =?us-ascii?Q?oS2KwZvpru2x7hFPYljWeWXAAfYghUn4Rk9GhMudOIY6jcs9VOtM7G2Qk0wE?= =?us-ascii?Q?F4V5REJJkLRo7c2FcEQd6TqKB7TrES5zNGVRjmz5cMtRbB482jLz13gWwwVL?= =?us-ascii?Q?tBMdmhSE0qI9idAf6406kGoNrMsnUFD1RTODriQOvPYvwssswFJORDSHVBwr?= =?us-ascii?Q?CpjkkDM6Z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ii?Q?ffDW5ybYCe/LQJUZGa/BoSAdYvtBvLLx7cHBwnAogn+GstqnsDzC/pDljU69?= =?us-ascii?Q?JXsxdXVM8/keaVJIQaqjT8jKLf+1pXfRB7/DzXkBztRjQ3L/iTTYAblGokZ+?= =?us-ascii?Q?enbFMlyj2kQYERk+U+OP6LQJJEYiQcwNGOYL/RtD7LdIkhov1A=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(52116014)(1800799024)(376014)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?R+wQ9iwKNxvHY+eVkmSRW/BvzmsEUj+2uOWzcstiG5Y6EjXCKRRZhog22J9N?= =?us-ascii?Q?BmUNC1Y0XrmuoTBF2uRRYeYVqBfh4kFPqkkltrOKF8DBwj8HXBl94HssZUI+?= =?us-ascii?Q?SD5SgO3vPYpIoFcE81eK7FiUWp3KSWNeDqYUcklOVpFmWeDWWoGIj7710JmW?= =?us-ascii?Q?G5IBG6w7CayfrBwW3cav1WdQgUnF+ae4wpF3eC8rqMb6CSP3H8SJy0VJ/rX5?= =?us-ascii?Q?tniNI8P7rAfOiC2oqWG1NNCeE5n5YdPLfHrdhYM1rDGp2xtkDfmIWxWlWiiS?= =?us-ascii?Q?BLaryacQgpZg7muiWOAUPbmqYtDKSdMk8jKPtEPhiooNMWall6n4DJqYwvnm?= =?us-ascii?Q?b4XZTD4sD32SW0NrrFhodVWcZIJRVBujfjtbw05UAdf4utMxGsEzJBYYm0Lp?= =?us-ascii?Q?tGNsKf8KZpS7Xwk1rJxMFE5xCF1NLlt4NWAl1QG+Zn/aYA6hQk4HxAj4xQax?= =?us-ascii?Q?d68cuaEOz43SGvkcghQXdqvaKVmqNzJyIEaxg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KpDMBhC/56tCBVJm6RtkjKWzD3dtdiH6E1YsO1ZJ+9STvM?= =?us-ascii?Q?6Kw0Lad0fnVaNkCcMQoBF9gUmzHSiXj5HTPd7R01T4NuN85H+osSmYoUX0uk?= =?us-ascii?Q?bOOCW5PGuDIxaDd4sCtmMEjqKulWFB22WDC5EPkASsbTtzVpY+9Dwfs4qeSP?= =?us-ascii?Q?FFoz84YsM7P0gGxnIyuLP77Iz0Q7dEEQH4++GcQE6Y9uG5qk77vjosa9kFZO?= =?us-ascii?Q?Fg=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 195ad15e-5857-40bf-f125-08dccd738d1c X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2024 06:25:35.5186 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rib50AphxxGLIDI57Y3HZ1aHYcDdwEjHDUAVpV+cslKOAL62LMy1zV9T8c5A901Pox3LswEHuK+NWMtT9KbL5KseJMmd5ZbFD8z11Tpybes= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR13MB4610 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 From: Qin Ke The type declaration of variable 'speed' and 'i' in 'nfp_net_link_speed_rte2nfp()' is not correct, fix it. Fixes: 36a9abd4b679 ("net/nfp: write link speed to control BAR") Cc: james.hershaw@corigine.com Cc: stable@dpdk.org Signed-off-by: Qin Ke Reviewed-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/nfp_net_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/nfp/nfp_net_common.c b/drivers/net/nfp/nfp_net_common.c index 5f92c2c31d..be0b6dc0cf 100644 --- a/drivers/net/nfp/nfp_net_common.c +++ b/drivers/net/nfp/nfp_net_common.c @@ -157,10 +157,10 @@ static const uint32_t nfp_net_link_speed_nfp2rte[] = { [NFP_NET_CFG_STS_LINK_RATE_100G] = RTE_ETH_SPEED_NUM_100G, }; -static uint16_t -nfp_net_link_speed_rte2nfp(uint16_t speed) +static size_t +nfp_net_link_speed_rte2nfp(uint32_t speed) { - uint16_t i; + size_t i; for (i = 0; i < RTE_DIM(nfp_net_link_speed_nfp2rte); i++) { if (speed == nfp_net_link_speed_nfp2rte[i]) -- 2.39.1