Home
last modified time | relevance | path

Searched refs:BPF_F_REPLACE (Results 1 – 14 of 14) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_attach_multi.c195 attach_opts.flags = BPF_F_ALLOW_OVERRIDE | BPF_F_REPLACE; in serial_test_cgroup_attach_multi()
203 attach_opts.flags = BPF_F_REPLACE; in serial_test_cgroup_attach_multi()
210 attach_opts.flags = BPF_F_ALLOW_MULTI | BPF_F_REPLACE; in serial_test_cgroup_attach_multi()
H A Dcgroup_link.c187 link_upd_opts.flags = BPF_F_REPLACE; in serial_test_cgroup_link()
197 link_upd_opts.flags = BPF_F_REPLACE; in serial_test_cgroup_link()
H A Dflow_dissector_reattach.c297 update_opts.flags = BPF_F_REPLACE; in test_link_update_replace_old_prog()
359 update_opts.flags = BPF_F_REPLACE; in test_link_update_invalid_opts()
370 update_opts.flags = BPF_F_REPLACE; in test_link_update_invalid_opts()
H A Dtc_opts.c746 .flags = BPF_F_REPLACE, in test_tc_opts_replace_target()
780 .flags = BPF_F_REPLACE | BPF_F_BEFORE, in test_tc_opts_replace_target()
815 .flags = BPF_F_REPLACE, in test_tc_opts_replace_target()
824 .flags = BPF_F_REPLACE | BPF_F_AFTER, in test_tc_opts_replace_target()
835 .flags = BPF_F_BEFORE | BPF_F_AFTER | BPF_F_REPLACE, in test_tc_opts_replace_target()
996 .flags = BPF_F_REPLACE, in test_tc_opts_invalid_target()
1005 .flags = BPF_F_REPLACE, in test_tc_opts_invalid_target()
1454 .flags = BPF_F_REPLACE, in test_tc_opts_mixed_target()
1465 .flags = BPF_F_REPLACE, in test_tc_opts_mixed_target()
1476 .flags = BPF_F_REPLACE, in test_tc_opts_mixed_target()
[all …]
H A Dbpf_tcp_ca.c555 opts.flags = BPF_F_REPLACE; in test_link_replace()
H A Dcgroup_mprog_opts.c593 .flags = BPF_F_ALLOW_MULTI | BPF_F_REPLACE | BPF_F_AFTER, in test_invalid_attach_detach()
H A Dsockmap_basic.c222 opts.flags = BPF_F_REPLACE; in test_skmsg_helpers_with_link()
228 opts.flags = BPF_F_REPLACE; in test_skmsg_helpers_with_link()
H A Dtc_links.c719 .flags = BPF_F_REPLACE, in test_tc_links_replace_target()
733 .flags = BPF_F_REPLACE | BPF_F_LINK, in test_tc_links_replace_target()
747 .flags = BPF_F_REPLACE | BPF_F_LINK | BPF_F_AFTER, in test_tc_links_replace_target()
/linux/kernel/bpf/
H A Dmprog.c245 flags & ~BPF_F_REPLACE, in bpf_mprog_attach()
249 if (flags & BPF_F_REPLACE) { in bpf_mprog_attach()
288 if (flags & BPF_F_REPLACE) in bpf_mprog_attach()
339 if (flags & BPF_F_REPLACE) in bpf_mprog_detach()
H A Dtcx.c25 if (attr->attach_flags & BPF_F_REPLACE) { in tcx_prog_attach()
233 BPF_F_REPLACE | BPF_F_ID, in tcx_link_update()
H A Dcgroup.c825 ((flags & BPF_F_REPLACE) && !(flags & BPF_F_ALLOW_MULTI))) in __cgroup_bpf_attach()
828 if ((flags & BPF_F_REPLACE) && (flags & (BPF_F_BEFORE | BPF_F_AFTER))) in __cgroup_bpf_attach()
834 if (!!replace_prog != !!(flags & BPF_F_REPLACE)) in __cgroup_bpf_attach()
1400 (attr->attach_flags & BPF_F_REPLACE)) { in cgroup_bpf_prog_attach()
H A Dsyscall.c4569 BPF_F_REPLACE | \
4573 (BPF_F_REPLACE | \
5908 if (attr->link_update.flags & BPF_F_REPLACE) { in link_update_map()
5941 if (flags & ~BPF_F_REPLACE) in link_update()
5959 if (flags & BPF_F_REPLACE) { in link_update()
/linux/tools/include/uapi/linux/
H A Dbpf.h1249 #define BPF_F_REPLACE (1U << 2) macro
/linux/include/uapi/linux/
H A Dbpf.h1249 #define BPF_F_REPLACE (1U << 2) macro