> -----Original Message-----
> From: Stephen Hemminger <[email protected]>
> Sent: Monday 8 June 2026 21:29
> To: [email protected]
> Cc: Stephen Hemminger <[email protected]>; Konstantin Ananyev 
> <[email protected]>;
> Marat Khalili <[email protected]>
> Subject: [PATCH 2/4] test: bpf check that JIT was generated
> 
> Avoid silently ignoring JIT failures. The test cases should
> all succeed JIT compilation; if not it is a bug in the JIT
> implementation and should be reported.
> 
> Signed-off-by: Stephen Hemminger <[email protected]>
> ---
>  app/test/test_bpf.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/app/test/test_bpf.c b/app/test/test_bpf.c
> index dd24722450..79d547dc82 100644
> --- a/app/test/test_bpf.c
> +++ b/app/test/test_bpf.c
> @@ -3508,6 +3508,14 @@ run_test(const struct bpf_test *tst)
>                               rv, strerror(rv));
>               }
>       }
> +#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_ARM64)
> +     else {
> +             /* a JIT backend exists for this arch, so it must compile */
> +             printf("%s@%d: %s: no JIT code generated;\n",
> +                     __func__, __LINE__, tst->name);
> +             ret = -1;
> +     }
> +#endif
> 
>       rte_bpf_destroy(bpf);
>       return ret;
> --
> 2.53.0

Acked-by: Marat Khalili <[email protected]>

Reply via email to