[PATCH v3 14/14] test/bpf: pass correct size for Rx/Tx load tests
Marat Khalili
marat.khalili at huawei.com
Fri Jan 23 12:50:26 CET 2026
> -----Original Message-----
> From: Stephen Hemminger <stephen at networkplumber.org>
> Sent: Thursday 22 January 2026 00:51
> To: dev at dpdk.org
> Cc: Stephen Hemminger <stephen at networkplumber.org>; stable at dpdk.org; Marat Khalili
> <marat.khalili at huawei.com>; Konstantin Ananyev <konstantin.ananyev at huawei.com>
> Subject: [PATCH v3 14/14] test/bpf: pass correct size for Rx/Tx load tests
>
> 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>
> ---
> 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 8bf783c00c..bf92bc545c 100644
> --- a/app/test/test_bpf.c
> +++ b/app/test/test_bpf.c
> @@ -3533,7 +3533,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;
> @@ -3632,7 +3632,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
Thank you for fixing this. Not sure we actually have VLAN tag there, but it is
less misleading now in any case.
Acked-by: Marat Khalili <marat.khalili at huawei.com>
More information about the stable
mailing list