Home
last modified time | relevance | path

Searched refs:bpf_obj2 (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dxdp_metadata.c368 struct xdp_metadata2 *bpf_obj2 = NULL; in test_xdp_metadata() local
500 bpf_obj2 = xdp_metadata2__open(); in test_xdp_metadata()
501 if (!ASSERT_OK_PTR(bpf_obj2, "open skeleton")) in test_xdp_metadata()
504 new_prog = bpf_object__find_program_by_name(bpf_obj2->obj, "freplace_rx"); in test_xdp_metadata()
507 if (!ASSERT_OK(xdp_metadata2__load(bpf_obj2), "load freplace skeleton")) in test_xdp_metadata()
510 if (!ASSERT_OK(xdp_metadata2__attach(bpf_obj2), "attach freplace")) in test_xdp_metadata()
527 if (bpf_obj2->bss->called) in test_xdp_metadata()
531 ASSERT_GT(bpf_obj2->bss->called, 0, "not called"); in test_xdp_metadata()
536 xdp_metadata2__destroy(bpf_obj2); in test_xdp_metadata()