patch 'eal/freebsd: fix memseg addresses in VA mode' has been queued to stable release 25.11.3

Kevin Traynor ktraynor at redhat.com
Thu Jul 23 19:15:36 CEST 2026


Hi,

FYI, your patch has been queued to stable release 25.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 07/27/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/239a612054d12bf530644e799a2360cc81c0cedc

Thanks.

Kevin

---
>From 239a612054d12bf530644e799a2360cc81c0cedc Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Mon, 25 May 2026 18:13:39 +0100
Subject: [PATCH] eal/freebsd: fix memseg addresses in VA mode

[ upstream commit 8e77ab799ea2c5abd5f4b145459897dada2d848a ]

In BSD, when mapping the contigmem segments, the iova is unconditionally
set to the physical address, irrespective of the actual IOVA mode.
Change this to use virtual addresses when iova mode is IOVA_AS_VA.

Fixes: 764bf26873b9 ("add FreeBSD support")

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 lib/eal/freebsd/eal_memory.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/eal/freebsd/eal_memory.c b/lib/eal/freebsd/eal_memory.c
index 6d3d46a390..c2d8b31995 100644
--- a/lib/eal/freebsd/eal_memory.c
+++ b/lib/eal/freebsd/eal_memory.c
@@ -199,5 +199,8 @@ rte_eal_hugepage_init(void)
 
 			seg->addr = addr;
-			seg->iova = physaddr;
+			if (rte_eal_iova_mode() == RTE_IOVA_VA)
+				seg->iova = (uintptr_t)addr;
+			else
+				seg->iova = physaddr;
 			seg->hugepage_sz = page_sz;
 			seg->len = page_sz;
-- 
2.55.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-23 17:58:00.751798387 +0100
+++ 0073-eal-freebsd-fix-memseg-addresses-in-VA-mode.patch	2026-07-23 17:57:58.688577043 +0100
@@ -1 +1 @@
-From 8e77ab799ea2c5abd5f4b145459897dada2d848a Mon Sep 17 00:00:00 2001
+From 239a612054d12bf530644e799a2360cc81c0cedc Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 8e77ab799ea2c5abd5f4b145459897dada2d848a ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index cd608db9f9..e56d149a22 100644
+index 6d3d46a390..c2d8b31995 100644
@@ -22 +23 @@
-@@ -215,5 +215,8 @@ rte_eal_hugepage_init(void)
+@@ -199,5 +199,8 @@ rte_eal_hugepage_init(void)



More information about the stable mailing list