On Tue, 23 Jun 2026 13:57:35 +0000
Marat Khalili <[email protected]> wrote:

> > +   {
> > +           struct rte_bpf_jit jit;
> > +
> > +           rte_bpf_get_jit(bpf, &jit);  
> 
> Out of abundance of caution I would also prefill jit with zeroes and check the
> return code here.

Makes sense, but the test already was just doing same thing elsewhere:

static int
run_test(const struct bpf_test *tst)
{
        int32_t ret, rv;
...
        bpf = rte_bpf_load(&tst->prm);
...
        /* repeat the same test with jit, when possible */
        rte_bpf_get_jit(bpf, &jit);
        if (jit.func != NULL) {

Reply via email to