Home
last modified time | relevance | path

Searched refs:bpf_tc_opts (Results 1 – 19 of 19) sorted by relevance

/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dtc_bpf.c12 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_h, .handle = 1); \
13 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_p, .priority = 1); \
14 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_f, .prog_fd = __fd); \
15 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_hp, .handle = 1, .priority = 1); \
16 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_hf, .handle = 1, .prog_fd = __fd); \
17 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_pf, .priority = 1, .prog_fd = __fd); \
18 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_hpf, .handle = 1, .priority = 1, .prog_fd = __fd); \
19 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_hpi, .handle = 1, .priority = 1, .prog_id = 42); \
24 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_prio_max, .handle = 1, .priority = UINT16_MAX + 1);
28 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts, .handle = 1, .priority = 1, .prog_fd = fd); in test_tc_bpf_basic()
[all …]
H A Dcrypto_sanity.c83 LIBBPF_OPTS(bpf_tc_opts, tc_attach_enc); in test_crypto_sanity()
84 LIBBPF_OPTS(bpf_tc_opts, tc_attach_dec); in test_crypto_sanity()
H A Ddecap_sanity.c19 LIBBPF_OPTS(bpf_tc_opts, tc_attach); in test_decap_sanity()
H A Dxfrm_info.c74 LIBBPF_OPTS(bpf_tc_opts, opts1, .handle = 1, .priority = 1, in attach_tc_prog()
76 LIBBPF_OPTS(bpf_tc_opts, opts2, .handle = 1, .priority = 1, in attach_tc_prog()
H A Dxdp_context_test_run.c178 LIBBPF_OPTS(bpf_tc_opts, tc_opts, .handle = 1, .priority = 1); in test_xdp_context_veth()
263 LIBBPF_OPTS(bpf_tc_opts, tc_opts, .handle = 1, .priority = 1); in test_xdp_context_tuntap()
H A Dtcp_custom_syncookie.c53 LIBBPF_OPTS(bpf_tc_opts, tc_attach, in setup_tc()
H A Dcgroup_ancestor.c19 struct bpf_tc_opts tc_attach;
H A Dxdp_vlan.c74 LIBBPF_OPTS(bpf_tc_opts, tc_opts, .handle = 1, .priority = 1); in xdp_vlan()
H A Dassign_reuse.c88 DECLARE_LIBBPF_OPTS(bpf_tc_opts, tc_opts, in run_assign_reuse()
H A Dbtf_skc_cls_ingress.c36 LIBBPF_OPTS(bpf_tc_opts, tc_attach, in prepare_netns()
H A Dvrf_socket_lookup.c108 LIBBPF_OPTS(bpf_tc_opts, opts, .handle = 1, .priority = 1, in attach_progs()
H A Dxdp_do_redirect.c44 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts, .handle = 1, .priority = 1, .prog_fd = fd); in attach_tc_prog()
H A Dtest_tunnel.c541 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts1, .handle = 1, in attach_tc_prog()
543 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts2, .handle = 1, in attach_tc_prog()
H A Dtc_links.c525 LIBBPF_OPTS(bpf_tc_opts, tc_opts, .handle = 1, .priority = 1); in test_tc_chain_classic()
1579 LIBBPF_OPTS(bpf_tc_opts, tc_opts, .handle = 1, .priority = 1); in test_tc_chain_mixed()
1684 LIBBPF_OPTS(bpf_tc_opts, tc_opts, in test_tc_links_ingress()
1853 LIBBPF_OPTS(bpf_tc_opts, tc_opts, .handle = 1, .priority = 1); in test_tc_links_dev_mixed()
H A Dtc_redirect.c350 LIBBPF_OPTS(bpf_tc_opts, tc_attach); in xgress_filter_add()
H A Dtc_opts.c565 LIBBPF_OPTS(bpf_tc_opts, tc_opts, .handle = 1, .priority = 1); in test_tc_chain_classic()
2278 LIBBPF_OPTS(bpf_tc_opts, tc_opts, .handle = 1, .priority = 1); in test_tc_chain_mixed()
/linux-6.15/tools/lib/bpf/
H A Dnetlink.c629 const struct bpf_tc_opts *opts,
652 struct bpf_tc_opts *opts;
718 int bpf_tc_attach(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) in bpf_tc_attach()
728 !OPTS_VALID(opts, bpf_tc_opts)) in bpf_tc_attach()
793 const struct bpf_tc_opts *opts, in __bpf_tc_detach()
802 !OPTS_VALID(opts, bpf_tc_opts)) in __bpf_tc_detach()
854 const struct bpf_tc_opts *opts) in bpf_tc_detach()
865 int bpf_tc_query(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) in bpf_tc_query()
874 !OPTS_VALID(opts, bpf_tc_opts)) in bpf_tc_query()
H A Dlibbpf.h1304 struct bpf_tc_opts { struct
1318 struct bpf_tc_opts *opts); argument
1320 const struct bpf_tc_opts *opts);
1322 struct bpf_tc_opts *opts);
/linux-6.15/tools/testing/selftests/bpf/
H A Dxdp_synproxy.c234 LIBBPF_OPTS(bpf_tc_opts, opts, in syncookie_attach()