patch 'net/nfp: fix endian conversion for tunnel decap action' has been queued to stable release 22.11.3
Xueming Li
xuemingl at nvidia.com
Thu Aug 10 01:47:35 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=c25e954265a4724c85e3d6ca72b54b9ef2e0b60b
Thanks.
Xueming Li <xuemingl at nvidia.com>
---
>From c25e954265a4724c85e3d6ca72b54b9ef2e0b60b Mon Sep 17 00:00:00 2001
From: Chaoyong He <chaoyong.he at corigine.com>
Date: Mon, 12 Jun 2023 11:18:32 +0800
Subject: [PATCH] net/nfp: fix endian conversion for tunnel decap action
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Cc: Xueming Li <xuemingl at nvidia.com>
[ upstream commit 30963f1fdfb530da7d0ecdfe2506d2a98adea545 ]
Add the missing data endian convert operations, the former logic of
processing the 'vlan_tpid' field will cause the tunnel decap action
don't work as expect in some case.
Fixes: 9082336048e8 ("net/nfp: support new solution for tunnel decap action")
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 | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/net/nfp/nfp_flow.c b/drivers/net/nfp/nfp_flow.c
index 7072375e6e..6fd82639f7 100644
--- a/drivers/net/nfp/nfp_flow.c
+++ b/drivers/net/nfp/nfp_flow.c
@@ -2489,10 +2489,10 @@ nfp_flower_add_tun_neigh_v4_decap(struct nfp_app_fw_flower *app_fw_flower,
if (nfp_flower_support_decap_v2(app_fw_flower)) {
if (meta_tci->tci != 0) {
payload.ext.vlan_tci = meta_tci->tci;
- payload.ext.vlan_tpid = 0x88a8;
+ payload.ext.vlan_tpid = RTE_BE16(0x88a8);
} else {
- payload.ext.vlan_tci = 0xffff;
- payload.ext.vlan_tpid = 0xffff;
+ payload.ext.vlan_tci = RTE_BE16(0xffff);
+ payload.ext.vlan_tpid = RTE_BE16(0xffff);
}
payload.ext.host_ctx = nfp_flow_meta->host_ctx_id;
}
@@ -2616,10 +2616,10 @@ nfp_flower_add_tun_neigh_v6_decap(struct nfp_app_fw_flower *app_fw_flower,
if (nfp_flower_support_decap_v2(app_fw_flower)) {
if (meta_tci->tci != 0) {
payload.ext.vlan_tci = meta_tci->tci;
- payload.ext.vlan_tpid = 0x88a8;
+ payload.ext.vlan_tpid = RTE_BE16(0x88a8);
} else {
- payload.ext.vlan_tci = 0xffff;
- payload.ext.vlan_tpid = 0xffff;
+ payload.ext.vlan_tci = RTE_BE16(0xffff);
+ payload.ext.vlan_tpid = RTE_BE16(0xffff);
}
payload.ext.host_ctx = nfp_flow_meta->host_ctx_id;
}
--
2.25.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2023-08-09 21:51:18.628780100 +0800
+++ 0013-net-nfp-fix-endian-conversion-for-tunnel-decap-actio.patch 2023-08-09 21:51:18.124352000 +0800
@@ -1 +1 @@
-From 30963f1fdfb530da7d0ecdfe2506d2a98adea545 Mon Sep 17 00:00:00 2001
+From c25e954265a4724c85e3d6ca72b54b9ef2e0b60b Mon Sep 17 00:00:00 2001
@@ -7,0 +8,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 30963f1fdfb530da7d0ecdfe2506d2a98adea545 ]
@@ -14 +16,0 @@
-Cc: stable at dpdk.org
@@ -23 +25 @@
-index 89755589ac..5acb7f6ff3 100644
+index 7072375e6e..6fd82639f7 100644
@@ -26 +28 @@
-@@ -2496,10 +2496,10 @@ nfp_flower_add_tun_neigh_v4_decap(struct nfp_app_fw_flower *app_fw_flower,
+@@ -2489,10 +2489,10 @@ nfp_flower_add_tun_neigh_v4_decap(struct nfp_app_fw_flower *app_fw_flower,
@@ -40 +42 @@
-@@ -2623,10 +2623,10 @@ nfp_flower_add_tun_neigh_v6_decap(struct nfp_app_fw_flower *app_fw_flower,
+@@ -2616,10 +2616,10 @@ nfp_flower_add_tun_neigh_v6_decap(struct nfp_app_fw_flower *app_fw_flower,
More information about the stable
mailing list