Lines Matching full:hook
214 static int attach_tc_prog(struct bpf_tc_hook *hook, int igr_fd, int egr_fd) in attach_tc_prog() argument
222 ret = bpf_tc_hook_create(hook); in attach_tc_prog()
223 if (!ASSERT_OK(ret, "create tc hook")) in attach_tc_prog()
227 hook->attach_point = BPF_TC_INGRESS; in attach_tc_prog()
228 ret = bpf_tc_attach(hook, &opts1); in attach_tc_prog()
230 bpf_tc_hook_destroy(hook); in attach_tc_prog()
236 hook->attach_point = BPF_TC_EGRESS; in attach_tc_prog()
237 ret = bpf_tc_attach(hook, &opts2); in attach_tc_prog()
239 bpf_tc_hook_destroy(hook); in attach_tc_prog()
265 /* load and attach bpf prog to tunnel dev tc hook point */ in test_vxlan_tunnel()
282 /* load and attach bpf prog to veth dev tc hook point */ in test_vxlan_tunnel()
293 /* load and attach prog set_md to tunnel dev tc hook point at_ns0 */ in test_vxlan_tunnel()
349 /* load and attach bpf prog to tunnel dev tc hook point */ in test_ip6vxlan_tunnel()
366 /* load and attach prog set_md to tunnel dev tc hook point at_ns0 */ in test_ip6vxlan_tunnel()