Message ID | 20240905062511.2710102-2-chaoyong.he@corigine.com (mailing list archive) |
---|---|
State | New |
Delegated to: | Ferruh Yigit |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org 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 <chaoyong.he@corigine.com> To: dev@dpdk.org Cc: oss-drivers@corigine.com, Qin Ke <qin.ke@corigine.com>, james.hershaw@corigine.com, stable@dpdk.org, Chaoyong He <chaoyong.he@corigine.com>, Long Wu <long.wu@corigine.com>, Peng Zhang <peng.zhang@corigine.com> 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: xK8UjRUj+fohjC7DK1ahb8xAhw9GOqAyxwiQR7gYSqHdRcYz9EX1k1+Nob4JpTp5THatmn1BeXkUGx5RfG7/ehhhEi2o+OJuA5cu5fjg0bG8WMwkQXYruQsOv2ry2xdT/CIPAiyCJHH2Lbx+7CK14KTM1dMe/IancjjtBmVeMu60+MaA6XZJoS2KwZvpru2x7hFPYljWeWXAAfYghUn4Rk9GhMudOIY6jcs9VOtM7G2Qk0wEF4V5REJJkLRo7c2FcEQd6TqKB7TrES5zN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YAblGokZ+enbFMlyj2kQYERk+U+OP6LQJJEYiQcwNGOYL/RtD7LdIkhov1A== 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: R+wQ9iwKNxvHY+eVkmSRW/BvzmsEUj+2uOWzcstiG5Y6EjXCKRRZhog22J9NBmUNC1Y0XrmuoTBF2uRRYeYVqBfh4kFPqkkltrOKF8DBwj8HXBl94HssZUI+SD5SgO3vPYpIoFcE81eK7FiUWp3KSWNeDqYUcklOVpFmWeDWWoGIj7710JmWG5IBG6w7CayfrBwW3cav1WdQgUnF+ae4wpF3eC8rqMb6CSP3H8SJy0VJ/rX5tniNI8P7rAfOiC2oqWG1NNCeE5n5YdPLfHrdhYM1rDGp2xtkDfmIWxWlWiiSBLaryacQgpZg7muiWOAUPbmqYtDKSdMk8jKPtEPhiooNMWall6n4DJqYwvnmb4XZTD4sD32SW0NrrFhodVWcZIJRVBujfjtbw05UAdf4utMxGsEzJBYYm0LptGNsKf8KZpS7Xwk1rJxMFE5xCF1NLlt4NWAl1QG+Zn/aYA6hQk4HxAj4xQaxd68cuaEOz43SGvkcghQXdqvaKVmqNzJyIEaxgna1PZN9SdFtcQC5Shk9jygNLdb5RGZrJ43zGd/XtXE2mbkzYWOIULAmpUa17QyzwAG+kZmlojnsJVwEH3tUvQ50VskOEEnyIhk5a+40L4LqbnnUdU2hVxjC6GPij0/5RQKy59SUGYjHurZoIoOBvo9Q4l5tpSYp+oy89gCOfSlJ/UBSORD6CbKQcAmd8++4XKPfqoYps44+5SKlRUmG8XY6ef+9R8rXkiYRFKl8Ae/E+YuWftGWDoVqCptOQKsTueL6b8lXyrv3X2ju1mHnxwtxJ5iJwc7hCHENkiHpGJkek774bgwiXpek3i/j0q+H5tlcFGHd/TXh2A0CruR9t9tQsFKuqy0T+MDzDr1LInYfr6XQFoLhw2S86WZHXI7nMQIA0nzDu+y3GIPw2alWHXmvS8a3ehjJJ0TeD6e8SCxOrB5g1TRsZcoOe2My/HvYum4KWWIsseo6JYPHAij9rdOf4dD73Ffj/y++ddEYQFzcVrMretqRSGjy7tEUCOU3kBMm727Myxijj8m42a0H7zj5zDACE6bq1u39MRn20f4yEpu6jHCFBhSgD7E4fMoIGwsLybMfETuBt8DeZFMHaj1rlmcv+R7sCvJPkpcsyckpPnarGLAHJcu3QjGHPNMSl+hf2Eh4w8KRClNeQubXyfJj77LNtRWX+Yq9rzE8sA6Uri9VPW6cBUZqEarWtBG9KB+ALrWN72X1vY4/hxmEeo1rRCBxgeBG6P77dh32sIejmJshZPFX7MnJJ1SLaHS9UObnpW6z1d/rX5ecSei9Gm2uqf1Udi85TOIa/5c7oWaegMqIHhnN5cmh2S/8nNqPvRA5TvkBnf6s/4eFV0m1Nf/2uuM6ZItRXPgX4cULrYUTOPKpDMBhC/56tCBVJm6RtkjKWzD3dtdiH6E1YsO1ZJ+9STvM6Kw0Lad0fnVaNkCcMQoBF9gUmzHSiXj5HTPd7R01T4NuN85H+osSmYoUX0ukbOOCW5PGuDIxaDd4sCtmMEjqKulWFB22WDC5EPkASsbTtzVpY+9Dwfs4qeSPFFoz84YsM7P0gGxnIyuLP77Iz0Q7dEEQH4++GcQE6Y9uG5qk77vjosa9kFZOFg== 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
fix the representor port link status and speed
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
ci/loongarch-compilation | warning | apply patch failure |
ci/iol-testing | warning | apply patch failure |
Commit Message
Chaoyong He
Sept. 5, 2024, 6:25 a.m. UTC
From: Qin Ke <qin.ke@corigine.com> 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 <qin.ke@corigine.com> Reviewed-by: Chaoyong He <chaoyong.he@corigine.com> Reviewed-by: Long Wu <long.wu@corigine.com> Reviewed-by: Peng Zhang <peng.zhang@corigine.com> --- 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])