Lines Matching refs:hook
72 static int attach_tc_prog(struct bpf_tc_hook *hook, int igr_fd, int egr_fd)
80 ret = bpf_tc_hook_create(hook);
81 if (!ASSERT_OK(ret, "create tc hook"))
85 hook->attach_point = BPF_TC_INGRESS;
86 ret = bpf_tc_attach(hook, &opts1);
88 bpf_tc_hook_destroy(hook);
94 hook->attach_point = BPF_TC_EGRESS;
95 ret = bpf_tc_attach(hook, &opts2);
97 bpf_tc_hook_destroy(hook);
300 /* load and attach bpf progs to ipsec dev tc hook point */