Searched refs:qdisc_hook (Results 1 - 2 of 2) sorted by relevance

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Ddecap_sanity.c19 LIBBPF_OPTS(bpf_tc_hook, qdisc_hook, .attach_point = BPF_TC_EGRESS);
40 qdisc_hook.ifindex = if_nametoindex("lo");
41 if (!ASSERT_GT(qdisc_hook.ifindex, 0, "if_nametoindex lo"))
44 err = bpf_tc_hook_create(&qdisc_hook);
49 err = bpf_tc_attach(&qdisc_hook, &tc_attach);
72 bpf_tc_hook_destroy(&qdisc_hook);
H A Dtc_redirect.c314 static int qdisc_clsact_create(struct bpf_tc_hook *qdisc_hook, int ifindex) argument
319 qdisc_hook->ifindex = ifindex;
320 qdisc_hook->attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS;
321 err = bpf_tc_hook_create(qdisc_hook);
324 if_indextoname(qdisc_hook->ifindex, ifname) ? : "<unknown_iface>");
331 static int xgress_filter_add(struct bpf_tc_hook *qdisc_hook, argument
339 qdisc_hook->attach_point = xgress;
342 err = bpf_tc_attach(qdisc_hook, &tc_attach);
345 if_indextoname(qdisc_hook->ifindex, ifname) ? : "<unknown_iface>",
354 #define QDISC_CLSACT_CREATE(qdisc_hook, ifinde
[all...]

Completed in 124 milliseconds