patch 'net/nfp: fix type declaration of some variables' has been queued to stable release 23.11.3

Xueming Li xuemingl at nvidia.com
Mon Nov 11 07:28:16 CET 2024


Hi,

FYI, your patch has been queued to stable release 23.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/30/24. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://git.dpdk.org/dpdk-stable/log/?h=23.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=33d19bdd507223b7e7f2b30332642338e3f0f058

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From 33d19bdd507223b7e7f2b30332642338e3f0f058 Mon Sep 17 00:00:00 2001
From: Qin Ke <qin.ke at corigine.com>
Date: Thu, 5 Sep 2024 14:25:04 +0800
Subject: [PATCH] net/nfp: fix type declaration of some variables
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 93ebb1e57e3ff5ce34168058d73a82ae206255cc ]

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")

Signed-off-by: Qin Ke <qin.ke at corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>
Reviewed-by: Long Wu <long.wu at corigine.com>
Reviewed-by: Peng Zhang <peng.zhang at 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 0491912bd3..08cb5f7d3b 100644
--- a/drivers/net/nfp/nfp_net_common.c
+++ b/drivers/net/nfp/nfp_net_common.c
@@ -153,10 +153,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.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2024-11-11 14:23:09.219265057 +0800
+++ 0090-net-nfp-fix-type-declaration-of-some-variables.patch	2024-11-11 14:23:05.232192837 +0800
@@ -1 +1 @@
-From 93ebb1e57e3ff5ce34168058d73a82ae206255cc Mon Sep 17 00:00:00 2001
+From 33d19bdd507223b7e7f2b30332642338e3f0f058 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 93ebb1e57e3ff5ce34168058d73a82ae206255cc ]
@@ -10 +12,0 @@
-Cc: stable at dpdk.org
@@ -21 +23 @@
-index d93f8157b9..780e9829d0 100644
+index 0491912bd3..08cb5f7d3b 100644
@@ -24 +26 @@
-@@ -157,10 +157,10 @@ static const uint32_t nfp_net_link_speed_nfp2rte[] = {
+@@ -153,10 +153,10 @@ static const uint32_t nfp_net_link_speed_nfp2rte[] = {


More information about the stable mailing list