Lines Matching refs:fd2

18 	__u32 fd1, fd2, id1, id2;  in serial_test_tc_opts_basic()  local
28 fd2 = bpf_program__fd(skel->progs.tc2); in serial_test_tc_opts_basic()
31 id2 = id_from_prog_fd(fd2); in serial_test_tc_opts_basic()
68 err = bpf_prog_attach_opts(fd2, loopback, BPF_TCX_EGRESS, &opta); in serial_test_tc_opts_basic()
94 err = bpf_prog_detach_opts(fd2, loopback, BPF_TCX_EGRESS, &optd); in serial_test_tc_opts_basic()
116 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_tc_opts_before_target() local
126 fd2 = bpf_program__fd(skel->progs.tc2); in test_tc_opts_before_target()
131 id2 = id_from_prog_fd(fd2); in test_tc_opts_before_target()
147 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_before_target()
178 .relative_fd = fd2, in test_tc_opts_before_target()
244 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_before_target()
268 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_tc_opts_after_target() local
278 fd2 = bpf_program__fd(skel->progs.tc2); in test_tc_opts_after_target()
283 id2 = id_from_prog_fd(fd2); in test_tc_opts_after_target()
299 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_after_target()
423 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_after_target()
459 __u32 fd1, fd2, id1, id2; in test_tc_opts_revision_target() local
469 fd2 = bpf_program__fd(skel->progs.tc2); in test_tc_opts_revision_target()
472 id2 = id_from_prog_fd(fd2); in test_tc_opts_revision_target()
492 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_revision_target()
502 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_revision_target()
533 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_revision_target()
542 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_revision_target()
570 __u32 fd1, fd2, fd3, id1, id2, id3; in test_tc_chain_classic() local
579 fd2 = bpf_program__fd(skel->progs.tc2); in test_tc_chain_classic()
583 id2 = id_from_prog_fd(fd2); in test_tc_chain_classic()
612 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_chain_classic()
625 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_chain_classic()
671 __u32 fd1, fd2, fd3, id1, id2, id3, detach_fd; in test_tc_opts_replace_target() local
681 fd2 = bpf_program__fd(skel->progs.tc2); in test_tc_opts_replace_target()
685 id2 = id_from_prog_fd(fd2); in test_tc_opts_replace_target()
709 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_replace_target()
713 detach_fd = fd2; in test_tc_opts_replace_target()
747 .replace_prog_fd = fd2, in test_tc_opts_replace_target()
786 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_replace_target()
790 detach_fd = fd2; in test_tc_opts_replace_target()
816 .replace_prog_fd = fd2, in test_tc_opts_replace_target()
819 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_replace_target()
825 .replace_prog_fd = fd2, in test_tc_opts_replace_target()
836 .replace_prog_fd = fd2, in test_tc_opts_replace_target()
877 __u32 fd1, fd2, id1, id2; in test_tc_opts_invalid_target() local
886 fd2 = bpf_program__fd(skel->progs.tc2); in test_tc_opts_invalid_target()
889 id2 = id_from_prog_fd(fd2); in test_tc_opts_invalid_target()
920 .relative_fd = fd2, in test_tc_opts_invalid_target()
929 .relative_fd = fd2, in test_tc_opts_invalid_target()
1031 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_tc_opts_prepend_target() local
1041 fd2 = bpf_program__fd(skel->progs.tc2); in test_tc_opts_prepend_target()
1046 id2 = id_from_prog_fd(fd2); in test_tc_opts_prepend_target()
1066 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_prepend_target()
1147 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_prepend_target()
1171 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_tc_opts_append_target() local
1181 fd2 = bpf_program__fd(skel->progs.tc2); in test_tc_opts_append_target()
1186 id2 = id_from_prog_fd(fd2); in test_tc_opts_append_target()
1206 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_append_target()
1287 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_append_target()
1311 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_tc_opts_dev_cleanup_target() local
1324 fd2 = bpf_program__fd(skel->progs.tc2); in test_tc_opts_dev_cleanup_target()
1329 id2 = id_from_prog_fd(fd2); in test_tc_opts_dev_cleanup_target()
1345 err = bpf_prog_attach_opts(fd2, ifindex, target, &opta); in test_tc_opts_dev_cleanup_target()
1373 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_dev_cleanup_target()
1656 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_tc_opts_detach_target() local
1666 fd2 = bpf_program__fd(skel->progs.tc2); in test_tc_opts_detach_target()
1671 id2 = id_from_prog_fd(fd2); in test_tc_opts_detach_target()
1687 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_detach_target()
1773 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_detach_target()
1803 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_detach_target()
1827 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_tc_opts_detach_before_target() local
1837 fd2 = bpf_program__fd(skel->progs.tc2); in test_tc_opts_detach_before_target()
1842 id2 = id_from_prog_fd(fd2); in test_tc_opts_detach_before_target()
1858 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_detach_before_target()
1895 .relative_fd = fd2, in test_tc_opts_detach_before_target()
1919 .relative_fd = fd2, in test_tc_opts_detach_before_target()
1931 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_detach_before_target()
1940 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_detach_before_target()
1949 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_detach_before_target()
2010 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_detach_before_target()
2034 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_tc_opts_detach_after_target() local
2044 fd2 = bpf_program__fd(skel->progs.tc2); in test_tc_opts_detach_after_target()
2049 id2 = id_from_prog_fd(fd2); in test_tc_opts_detach_after_target()
2065 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_detach_after_target()
2105 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_detach_after_target()
2129 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_detach_after_target()
2226 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_detach_after_target()
2282 __u32 fd1, fd2, fd3, id1, id2, id3; in test_tc_chain_mixed() local
2291 fd2 = bpf_program__fd(skel->progs.tc5); in test_tc_chain_mixed()
2295 id2 = id_from_prog_fd(fd2); in test_tc_chain_mixed()
2310 tc_opts.prog_fd = fd2; in test_tc_chain_mixed()
2467 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_tc_opts_query_target() local
2478 fd2 = bpf_program__fd(skel->progs.tc2); in test_tc_opts_query_target()
2483 id2 = id_from_prog_fd(fd2); in test_tc_opts_query_target()
2503 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_query_target()
2609 err = bpf_prog_detach_opts(fd2, loopback, target, &optd); in test_tc_opts_query_target()