/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_link.c | 7 #define IFINDEX_LO 1 macro 44 err = bpf_xdp_attach(IFINDEX_LO, prog_fd1, XDP_FLAGS_REPLACE, &opts); in serial_test_xdp_link() 49 err = bpf_xdp_query_id(IFINDEX_LO, 0, &id0); in serial_test_xdp_link() 54 link = bpf_program__attach_xdp(skel1->progs.xdp_handler, IFINDEX_LO); in serial_test_xdp_link() 59 bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_REPLACE, &opts); in serial_test_xdp_link() 65 err = bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_REPLACE, &opts); in serial_test_xdp_link() 70 link = bpf_program__attach_xdp(skel1->progs.xdp_handler, IFINDEX_LO); in serial_test_xdp_link() 76 err = bpf_xdp_query_id(IFINDEX_LO, 0, &id0); in serial_test_xdp_link() 82 err = bpf_xdp_attach(IFINDEX_LO, prog_fd2, XDP_FLAGS_REPLACE, &opts); in serial_test_xdp_link() 87 err = bpf_xdp_attach(IFINDEX_LO, prog_fd2, 0, NULL); in serial_test_xdp_link() [all …]
|
D | xdp_info.c | 5 #define IFINDEX_LO 1 macro 18 err = bpf_xdp_query_id(IFINDEX_LO, 0, &prog_id); in serial_test_xdp_info() 24 err = bpf_xdp_query_id(IFINDEX_LO, XDP_FLAGS_SKB_MODE, &prog_id); in serial_test_xdp_info() 41 err = bpf_xdp_attach(IFINDEX_LO, prog_fd, XDP_FLAGS_SKB_MODE, NULL); in serial_test_xdp_info() 47 err = bpf_xdp_query_id(IFINDEX_LO, 0, &prog_id); in serial_test_xdp_info() 53 err = bpf_xdp_query_id(IFINDEX_LO, XDP_FLAGS_SKB_MODE, &prog_id); in serial_test_xdp_info() 59 err = bpf_xdp_query_id(IFINDEX_LO, XDP_FLAGS_DRV_MODE, &prog_id); in serial_test_xdp_info() 67 err = bpf_xdp_query(IFINDEX_LO, XDP_FLAGS_DRV_MODE, &opts); in serial_test_xdp_info() 73 bpf_xdp_detach(IFINDEX_LO, 0, NULL); in serial_test_xdp_info()
|
D | xdp_attach.c | 5 #define IFINDEX_LO 1 macro 40 err = bpf_xdp_attach(IFINDEX_LO, fd1, XDP_FLAGS_REPLACE, &opts); in test_xdp_attach() 44 err = bpf_xdp_query_id(IFINDEX_LO, 0, &id0); in test_xdp_attach() 49 err = bpf_xdp_attach(IFINDEX_LO, fd2, XDP_FLAGS_REPLACE, &opts); in test_xdp_attach() 54 err = bpf_xdp_attach(IFINDEX_LO, fd2, 0, &opts); in test_xdp_attach() 57 err = bpf_xdp_query_id(IFINDEX_LO, 0, &id0); in test_xdp_attach() 62 err = bpf_xdp_attach(IFINDEX_LO, fd3, 0, &opts); in test_xdp_attach() 66 err = bpf_xdp_detach(IFINDEX_LO, 0, &opts); in test_xdp_attach() 71 err = bpf_xdp_detach(IFINDEX_LO, 0, &opts); in test_xdp_attach() 75 err = bpf_xdp_query_id(IFINDEX_LO, 0, &id0); in test_xdp_attach() [all …]
|
D | xdp_cpumap_attach.c | 9 #define IFINDEX_LO 1 macro 27 err = bpf_xdp_attach(IFINDEX_LO, prog_fd, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_cpumap_helpers() 31 err = bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_cpumap_helpers() 49 err = bpf_xdp_attach(IFINDEX_LO, prog_fd, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_cpumap_helpers() 51 bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_cpumap_helpers()
|
D | check_mtu.c | 12 #define IFINDEX_LO 1 macro 55 link = bpf_program__attach_xdp(prog, IFINDEX_LO); in test_check_mtu_xdp_attach() 68 CHECK(link_info.xdp.ifindex != IFINDEX_LO, "link_ifindex", in test_check_mtu_xdp_attach() 69 "got %u != exp %u\n", link_info.xdp.ifindex, IFINDEX_LO); in test_check_mtu_xdp_attach() 199 test_check_mtu_xdp(mtu_lo, IFINDEX_LO); in serial_test_check_mtu() 205 test_check_mtu_tc(mtu_lo, IFINDEX_LO); in serial_test_check_mtu()
|
D | xdp_devmap_attach.c | 13 #define IFINDEX_LO 1 macro 21 .ifindex = IFINDEX_LO, in test_xdp_with_devmap_helpers() 40 err = bpf_xdp_attach(IFINDEX_LO, dm_fd_redir, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_devmap_helpers() 71 err = bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_devmap_helpers() 75 err = bpf_xdp_attach(IFINDEX_LO, dm_fd, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_devmap_helpers() 77 bpf_xdp_detach(IFINDEX_LO, XDP_FLAGS_SKB_MODE, NULL); in test_xdp_with_devmap_helpers() 115 .ifindex = IFINDEX_LO, in test_xdp_with_devmap_frags_helpers()
|
D | migrate_reuseport.c | 37 #define IFINDEX_LO 1 macro 196 IFINDEX_LO); in drop_ack()
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | test_xdp_with_cpumap_helpers.c | 6 #define IFINDEX_LO 1 macro 30 if (ctx->ingress_ifindex == IFINDEX_LO) in xdp_dummy_cm()
|
D | test_xdp_with_cpumap_frags_helpers.c | 6 #define IFINDEX_LO 1 macro
|