Lines Matching full:tc1
30 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in serial_test_tc_links_basic()
41 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in serial_test_tc_links_basic()
45 skel->links.tc1 = link; in serial_test_tc_links_basic()
47 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in serial_test_tc_links_basic()
130 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_before_target()
143 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_before_target()
154 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_before_target()
158 skel->links.tc1 = link; in test_tc_links_before_target()
160 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in test_tc_links_before_target()
284 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_after_target()
297 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_after_target()
308 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_after_target()
312 skel->links.tc1 = link; in test_tc_links_after_target()
314 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in test_tc_links_after_target()
358 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_after_target()
437 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_revision_target()
446 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_revision_target()
455 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_revision_target()
459 skel->links.tc1 = link; in test_tc_links_revision_target()
461 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in test_tc_links_revision_target()
538 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_chain_classic()
547 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_chain_classic()
573 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_chain_classic()
577 skel->links.tc1 = link; in test_tc_chain_classic()
643 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_replace_target()
654 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_replace_target()
665 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_replace_target()
669 skel->links.tc1 = link; in test_tc_links_replace_target()
671 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in test_tc_links_replace_target()
817 err = bpf_link__update_program(skel->links.tc1, skel->progs.tc1); in test_tc_links_replace_target()
868 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_invalid_target()
877 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_invalid_target()
886 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
898 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
910 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
922 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
935 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
947 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
959 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
972 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
982 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
985 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
998 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1011 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1021 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
1024 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1034 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
1037 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1047 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
1050 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1060 link = bpf_program__attach_tcx(skel->progs.tc1, 0, &optl); in test_tc_links_invalid_target()
1070 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
1073 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1083 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1087 skel->links.tc1 = link; in test_tc_links_invalid_target()
1089 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in test_tc_links_invalid_target()
1095 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
1124 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1137 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1182 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_prepend_target()
1195 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_prepend_target()
1206 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_prepend_target()
1210 skel->links.tc1 = link; in test_tc_links_prepend_target()
1212 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in test_tc_links_prepend_target()
1338 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_append_target()
1351 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_append_target()
1362 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_append_target()
1366 skel->links.tc1 = link; in test_tc_links_append_target()
1368 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in test_tc_links_append_target()
1496 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_dev_cleanup_target()
1509 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_dev_cleanup_target()
1520 link = bpf_program__attach_tcx(skel->progs.tc1, ifindex, &optl); in test_tc_links_dev_cleanup_target()
1524 skel->links.tc1 = link; in test_tc_links_dev_cleanup_target()
1556 ASSERT_EQ(ifindex_from_link_fd(bpf_link__fd(skel->links.tc1)), 0, "tc1_ifindex"); in test_tc_links_dev_cleanup_target()
1704 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_ingress()
1713 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_ingress()
1733 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_ingress()
1737 skel->links.tc1 = link; in test_tc_links_ingress()
1869 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_dev_mixed()
1882 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_dev_mixed()
1893 link = bpf_program__attach_tcx(skel->progs.tc1, ifindex, &optl); in test_tc_links_dev_mixed()
1897 skel->links.tc1 = link; in test_tc_links_dev_mixed()
1943 ASSERT_EQ(ifindex_from_link_fd(bpf_link__fd(skel->links.tc1)), 0, "tc1_ifindex"); in test_tc_links_dev_mixed()