patch 'net/mlx5/hws: add DF bit for IPv4 header in NAT64 action' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Nov 16 23:51:32 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.11.9

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/18/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/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/5ee4528108e3ac8e7ca7a458e830e50190920f0a

Thanks.

Luca Boccassi

---
>From 5ee4528108e3ac8e7ca7a458e830e50190920f0a 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 8308ca135d..d440f5ee9a 100644
--- a/drivers/net/mlx5/hws/mlx5dr_action.c
+++ b/drivers/net/mlx5/hws/mlx5dr_action.c
@@ -452,8 +452,11 @@ mlx5dr_action_create_nat64_repalce_state(struct mlx5dr_context *ctx,
 		memcpy(address_prefix, nat64_well_known_pref,
 		       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;
 		ip_ver = MLX5DR_ACTION_NAT64_IPV4_VER;
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-16 22:52:17.241080235 +0000
+++ 0018-net-mlx5-hws-add-DF-bit-for-IPv4-header-in-NAT64-act.patch	2026-11-16 22:52:16.432232001 +0000
@@ -1 +1 @@
-From b82527435afb5fd50751d3df0a30a24212ba3ea0 Mon Sep 17 00:00:00 2001
+From 5ee4528108e3ac8e7ca7a458e830e50190920f0a 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 498c6aa1097..3e48739eb53 100644
+index 8308ca135d..d440f5ee9a 100644
@@ -22 +23 @@
-@@ -507,8 +507,11 @@ mlx5dr_action_create_nat64_repalce_state(struct mlx5dr_context *ctx,
+@@ -452,8 +452,11 @@ mlx5dr_action_create_nat64_repalce_state(struct mlx5dr_context *ctx,


More information about the stable mailing list