patch 'net/mlx5/hws: add DF bit for IPv4 header in NAT64 action' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:05:05 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. 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://github.com/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/d8ed46d0159fa954967387c19f248ec7d5282160
Thanks.
Kevin
---
>From d8ed46d0159fa954967387c19f248ec7d5282160 Mon Sep 17 00:00:00 2001
From: Erez Shitrit <erezsh at nvidia.com>
Date: Wed, 28 Oct 2026 03:50:17 +0000
Subject: [PATCH] net/mlx5/hws: add DF bit for IPv4 header in NAT64 action
[ upstream commit b82527435afb5fd50751d3df0a30a24212ba3ea0 ]
We set the DF bit to 1, and re-calculate the csum for that buffer.
Fixes: 06d969a8c5b8 ("net/mlx5/hws: support NAT64 flow action")
Signed-off-by: Erez Shitrit <erezsh at nvidia.com>
Acked-by: Bing Zhao <bingz at nvidia.com>
Acked-by: Matan Azrad <matan at nvidia.com>
---
drivers/net/mlx5/hws/mlx5dr_action.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/net/mlx5/hws/mlx5dr_action.c b/drivers/net/mlx5/hws/mlx5dr_action.c
index afb638250d..4141a31c06 100644
--- a/drivers/net/mlx5/hws/mlx5dr_action.c
+++ b/drivers/net/mlx5/hws/mlx5dr_action.c
@@ -508,6 +508,9 @@ mlx5dr_action_create_nat64_repalce_state(struct mlx5dr_context *ctx,
MLX5DR_ACTION_NAT64_HEADER_MINUS_ONE * sizeof(uint32_t));
} else {
- /* In order to fix HW csum issue, make the prefix ready */
- uint32_t ipv4_pref[] = {0x0, 0xffba0000, 0x0, 0x0, 0x0};
+ /* We make a buffer that contain the right HW csum and the DF bit set.
+ * 0x00400000 - contain the DF bit in the right place.
+ * 0xff7a0000 - is the csum for that buffer, calculated via external tool.
+ */
+ uint32_t ipv4_pref[] = {0x00400000, 0xff7a0000, 0x0, 0x0, 0x0};
header_size_in_dw = MLX5DR_ACTION_NAT64_IPV4_HEADER;
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:49.906355766 +0000
+++ 0379-net-mlx5-hws-add-DF-bit-for-IPv4-header-in-NAT64-act.patch 2026-12-03 12:52:39.288887079 +0000
@@ -1 +1 @@
-From b82527435afb5fd50751d3df0a30a24212ba3ea0 Mon Sep 17 00:00:00 2001
+From d8ed46d0159fa954967387c19f248ec7d5282160 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit b82527435afb5fd50751d3df0a30a24212ba3ea0 ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 498c6aa109..3e48739eb5 100644
+index afb638250d..4141a31c06 100644
More information about the stable
mailing list