Searched refs:qdisc_hook (Results 1 – 2 of 2) sorted by relevance
| /Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
| D | decap_sanity.c | 19 LIBBPF_OPTS(bpf_tc_hook, qdisc_hook, .attach_point = BPF_TC_EGRESS); in test_decap_sanity() 40 qdisc_hook.ifindex = if_nametoindex("lo"); in test_decap_sanity() 41 if (!ASSERT_GT(qdisc_hook.ifindex, 0, "if_nametoindex lo")) in test_decap_sanity() 44 err = bpf_tc_hook_create(&qdisc_hook); in test_decap_sanity() 49 err = bpf_tc_attach(&qdisc_hook, &tc_attach); in test_decap_sanity() 72 bpf_tc_hook_destroy(&qdisc_hook); in test_decap_sanity()
|
| D | tc_redirect.c | 241 static int qdisc_clsact_create(struct bpf_tc_hook *qdisc_hook, int ifindex) in qdisc_clsact_create() argument 246 qdisc_hook->ifindex = ifindex; in qdisc_clsact_create() 247 qdisc_hook->attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS; in qdisc_clsact_create() 248 err = bpf_tc_hook_create(qdisc_hook); in qdisc_clsact_create() 251 if_indextoname(qdisc_hook->ifindex, ifname) ? : "<unknown_iface>"); in qdisc_clsact_create() 258 static int xgress_filter_add(struct bpf_tc_hook *qdisc_hook, in xgress_filter_add() argument 266 qdisc_hook->attach_point = xgress; in xgress_filter_add() 269 err = bpf_tc_attach(qdisc_hook, &tc_attach); in xgress_filter_add() 272 if_indextoname(qdisc_hook->ifindex, ifname) ? : "<unknown_iface>", in xgress_filter_add() 281 #define QDISC_CLSACT_CREATE(qdisc_hook, ifindex) ({ \ argument [all …]
|