patch 'net/nfp: fix unneeded endian conversion' has been queued to stable release 22.11.3

Xueming Li xuemingl at nvidia.com
Thu Aug 10 01:47:34 CEST 2023


Hi,

FYI, your patch has been queued to stable release 22.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 08/11/23. 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=22.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=502acb0f83634579df3514a4a33aea96b94e6d44

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From 502acb0f83634579df3514a4a33aea96b94e6d44 Mon Sep 17 00:00:00 2001
From: Chaoyong He <chaoyong.he at corigine.com>
Date: Mon, 12 Jun 2023 11:16:25 +0800
Subject: [PATCH] net/nfp: fix unneeded endian conversion
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 766ec2a60758ca2c04955aba880a2b4eeb20ac92 ]

Both of the data types are CPU endian, so there is no need
to do the data endian convert operation.

Fixes: 8ad9ffa2ce7c ("net/nfp: support basic flow items")

Signed-off-by: Chaoyong He <chaoyong.he at corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund at corigine.com>
---
 drivers/net/nfp/nfp_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/nfp_flow.c
index 194a5c63c5..7072375e6e 100644
--- a/drivers/net/nfp/nfp_flow.c
+++ b/drivers/net/nfp/nfp_flow.c
@@ -728,7 +728,7 @@ nfp_flow_key_layers_calculate_items(const struct rte_flow_item items[],
 			ethdev = &rte_eth_devices[port_id->id];
 			representor = (struct nfp_flower_representor *)
 					ethdev->data->dev_private;
-			key_ls->port = rte_cpu_to_be_32(representor->port_id);
+			key_ls->port = representor->port_id;
 			break;
 		case RTE_FLOW_ITEM_TYPE_VLAN:
 			PMD_DRV_LOG(DEBUG, "RTE_FLOW_ITEM_TYPE_VLAN detected");
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-08-09 21:51:18.603980200 +0800
+++ 0012-net-nfp-fix-unneeded-endian-conversion.patch	2023-08-09 21:51:18.124352000 +0800
@@ -1 +1 @@
-From 766ec2a60758ca2c04955aba880a2b4eeb20ac92 Mon Sep 17 00:00:00 2001
+From 502acb0f83634579df3514a4a33aea96b94e6d44 Mon Sep 17 00:00:00 2001
@@ -7,0 +8,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 766ec2a60758ca2c04955aba880a2b4eeb20ac92 ]
@@ -13 +15,0 @@
-Cc: stable at dpdk.org
@@ -22 +24 @@
-index 4ba49a9b49..89755589ac 100644
+index 194a5c63c5..7072375e6e 100644
@@ -25,2 +27 @@
-@@ -727,7 +727,7 @@ nfp_flow_key_layers_calculate_items(const struct rte_flow_item items[],
- 				return -ERANGE;
+@@ -728,7 +728,7 @@ nfp_flow_key_layers_calculate_items(const struct rte_flow_item items[],
@@ -28 +29,2 @@
- 			representor = ethdev->data->dev_private;
+ 			representor = (struct nfp_flower_representor *)
+ 					ethdev->data->dev_private;


More information about the stable mailing list