patch 'test/bpf: fix mbuf init in some filter test' has been queued to stable release 22.11.5

luca.boccassi at gmail.com luca.boccassi at gmail.com
Thu Mar 14 01:09:51 CET 2024


Hi,

FYI, your patch has been queued to stable release 22.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 03/16/24. 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/7019fde3a9538022d8e4216c6257a5c301ef1476

Thanks.

Luca Boccassi

---
>From 7019fde3a9538022d8e4216c6257a5c301ef1476 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Fri, 1 Mar 2024 09:57:06 -0800
Subject: [PATCH] test/bpf: fix mbuf init in some filter test

[ upstream commit 7d0420ac528aff96404e1d327996c7b52d67c373 ]

The BPF filter test was not initializing offload flags.

Coverity issue: 375844
Fixes: 2eccf6afbea9 ("bpf: add function to convert classic BPF to DPDK BPF")

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Reviewed-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
---
 app/test/test_bpf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/test/test_bpf.c b/app/test/test_bpf.c
index f5af5e8a3f..51184341c2 100644
--- a/app/test/test_bpf.c
+++ b/app/test/test_bpf.c
@@ -3341,6 +3341,7 @@ test_bpf_filter_sanity(pcap_t *pcap)
 		struct rte_ipv4_hdr ip_hdr;
 	} *hdr;
 
+	memset(&mb, 0, sizeof(mb));
 	dummy_mbuf_prep(&mb, tbuf, sizeof(tbuf), plen);
 	m = &mb;
 
-- 
2.39.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2024-03-14 00:09:23.200427601 +0000
+++ 0055-test-bpf-fix-mbuf-init-in-some-filter-test.patch	2024-03-14 00:09:20.709617127 +0000
@@ -1 +1 @@
-From 7d0420ac528aff96404e1d327996c7b52d67c373 Mon Sep 17 00:00:00 2001
+From 7019fde3a9538022d8e4216c6257a5c301ef1476 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 7d0420ac528aff96404e1d327996c7b52d67c373 ]
+
@@ -18 +20 @@
-index f83e72a9ad..53e3a31123 100644
+index f5af5e8a3f..51184341c2 100644


More information about the stable mailing list