[PATCH v4 11/11] test/bpf: pass correct size for Rx/Tx load tests

Stephen Hemminger stephen at networkplumber.org
Thu Mar 5 18:51:05 CET 2026


Use the correct size in bpf_prm to help with validation.

Fixes: 81038845c90b ("test/bpf: add Rx and Tx filtering")
Cc: stable at dpdk.org

Suggested-by: Marat Khalili <marat.khalili at huawei.com>
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Marat Khalili <marat.khalili at huawei.com>
---
 app/test/test_bpf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/test/test_bpf.c b/app/test/test_bpf.c
index 144121ac79..dd24722450 100644
--- a/app/test/test_bpf.c
+++ b/app/test/test_bpf.c
@@ -4180,7 +4180,7 @@ static int bpf_tx_test(uint16_t port, const char *tmpfile, struct rte_mempool *p
 	const struct rte_bpf_prm prm = {
 		.prog_arg = {
 			.type = RTE_BPF_ARG_PTR,
-			.size = sizeof(struct rte_mbuf),
+			.size = sizeof(struct dummy_net),
 		},
 	};
 	int ret;
@@ -4279,7 +4279,7 @@ static int bpf_rx_test(uint16_t port, const char *tmpfile, struct rte_mempool *p
 	const struct rte_bpf_prm prm = {
 		.prog_arg = {
 			.type = RTE_BPF_ARG_PTR,
-			.size = sizeof(struct rte_mbuf),
+			.size = sizeof(struct dummy_net),
 		},
 	};
 	int ret;
-- 
2.51.0



More information about the dev mailing list