[PATCH v3 6/6] test/bpf: check that bpf_convert can be JIT'd
Stephen Hemminger
stephen at networkplumber.org
Tue Jun 23 22:58:17 CEST 2026
On Tue, 23 Jun 2026 13:57:35 +0000
Marat Khalili <marat.khalili at huawei.com> 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) {
More information about the dev
mailing list