[PATCH 1/6] test/bpf: make sure mbuf is initialized
Stephen Hemminger
stephen at networkplumber.org
Fri Mar 1 18:57:06 CET 2024
The BPF filter test was not initializing off load 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>
---
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 f83e72a9adfd..53e3a3112371 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.43.0
More information about the dev
mailing list