Searched refs:tc_prog_fd (Results 1 – 3 of 3) 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()
|