Searched refs:tc_prog_fd (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | vrf_socket_lookup.c | 105 static int attach_progs(char *ifname, int tc_prog_fd, int xdp_prog_fd) in attach_progs() argument 109 .prog_fd = tc_prog_fd); in attach_progs() 145 int tc_prog_fd, xdp_prog_fd, ret = 0; in setup() local 179 tc_prog_fd = bpf_program__fd(skel->progs.tc_socket_lookup); in setup() 180 if (!ASSERT_GE(tc_prog_fd, 0, "bpf_program__tc_fd")) in setup() 186 if (attach_progs("veth01", tc_prog_fd, xdp_prog_fd)) in setup() 189 if (attach_progs("veth02", tc_prog_fd, xdp_prog_fd)) in setup()
|
H A D | xdp_do_redirect.c | 89 int err, xdp_prog_fd, tc_prog_fd, ifindex_src, ifindex_dst; in test_xdp_do_redirect() local 217 tc_prog_fd = bpf_program__fd(skel->progs.tc_count_pkts); in test_xdp_do_redirect() 218 if (attach_tc_prog(&tc_hook, tc_prog_fd)) in test_xdp_do_redirect()
|
H A D | test_tunnel.c | 637 int tc_prog_fd; in test_xfrm_tunnel() local 655 tc_prog_fd = bpf_program__fd(skel->progs.xfrm_get_state); in test_xfrm_tunnel() 656 if (!ASSERT_GE(tc_prog_fd, 0, "bpf_program__fd")) in test_xfrm_tunnel() 658 if (attach_tc_prog(&tc_hook, tc_prog_fd, -1)) in test_xfrm_tunnel()
|
H A D | tailcalls.c | 1509 int prog_fd, tc_prog_fd, map_fd; in test_tailcall_freplace() local 1527 tc_prog_fd = bpf_program__fd(tc_skel->progs.entry_tc); in test_tailcall_freplace() 1529 err = bpf_program__set_attach_target(freplace_prog, tc_prog_fd, in test_tailcall_freplace() 1544 freplace_link = bpf_program__attach_freplace(freplace_prog, tc_prog_fd, in test_tailcall_freplace()
|