patch 'test/bpf: fix error handling in ELF load tests' has been queued to stable release 25.11.1
Kevin Traynor
ktraynor at redhat.com
Thu Mar 19 11:03:18 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/23/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/39e531dcdab4e10ae736107ec784ccacd9b99277
Thanks.
Kevin
---
>From 39e531dcdab4e10ae736107ec784ccacd9b99277 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Thu, 5 Mar 2026 09:51:03 -0800
Subject: [PATCH] test/bpf: fix error handling in ELF load tests
[ upstream commit 4e10db0bcb4e1c2aa9d4f4264cc7fa0c3b6749bd ]
Address related issues found during review
- Add missing TEST_ASSERT for mempool creation in test_bpf_elf_tx_load
- Initialize port variable in test_bpf_elf_rx_load to avoid undefined
behavior in cleanup path if null_vdev_setup fails early
Fixes: cf1e03f881af ("test/bpf: add ELF loading")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Marat Khalili <marat.khalili at huawei.com>
---
app/test/test_bpf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/test/test_bpf.c b/app/test/test_bpf.c
index 776a94c6bd..ab3e5650f8 100644
--- a/app/test/test_bpf.c
+++ b/app/test/test_bpf.c
@@ -4224,4 +4224,5 @@ test_bpf_elf_tx_load(void)
0, 0, RTE_MBUF_DEFAULT_BUF_SIZE,
SOCKET_ID_ANY);
+ TEST_ASSERT(mb_pool != NULL, "failed to create mempool");
ret = null_vdev_setup(null_dev, &port, mb_pool);
@@ -4308,5 +4309,5 @@ test_bpf_elf_rx_load(void)
struct rte_mempool *pool = NULL;
char *tmpfile = NULL;
- uint16_t port;
+ uint16_t port = UINT16_MAX;
int ret;
--
2.53.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-03-19 10:01:09.367648384 +0000
+++ 0080-test-bpf-fix-error-handling-in-ELF-load-tests.patch 2026-03-19 10:01:07.132666600 +0000
@@ -1 +1 @@
-From 4e10db0bcb4e1c2aa9d4f4264cc7fa0c3b6749bd Mon Sep 17 00:00:00 2001
+From 39e531dcdab4e10ae736107ec784ccacd9b99277 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 4e10db0bcb4e1c2aa9d4f4264cc7fa0c3b6749bd ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 093cf5fe1d..144121ac79 100644
+index 776a94c6bd..ab3e5650f8 100644
@@ -24 +25 @@
-@@ -4232,4 +4232,5 @@ test_bpf_elf_tx_load(void)
+@@ -4224,4 +4224,5 @@ test_bpf_elf_tx_load(void)
@@ -30 +31 @@
-@@ -4316,5 +4317,5 @@ test_bpf_elf_rx_load(void)
+@@ -4308,5 +4309,5 @@ test_bpf_elf_rx_load(void)
More information about the stable
mailing list