Home
last modified time | relevance | path

Searched refs:pkt_v4 (Results 1 – 25 of 28) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dqueue_stack_map.c55 pkt_v4.iph.saddr = vals[i] * 5; in test_queue_stack_map_by_type()
58 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type()
61 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_queue_stack_map_by_type()
63 if (err || retval || size != sizeof(pkt_v4)) in test_queue_stack_map_by_type()
70 CHECK(err || retval || size != sizeof(pkt_v4) || iph.daddr != val, in test_queue_stack_map_by_type()
76 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_queue_stack_map_by_type()
78 CHECK(err || retval != 2 /* TC_ACT_SHOT */|| size != sizeof(pkt_v4), in test_queue_stack_map_by_type()
94 pkt_v4.iph.saddr = 0; in test_queue_stack_map_by_type()
Dkfunc_call.c19 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_main()
25 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_main()
43 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_subprog()
63 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_subprog_lskel()
Dxdp_bpf2bpf.c19 if (CHECK(size < sizeof(pkt_v4) + sizeof(*meta), in on_sample()
21 size, sizeof(pkt_v4) + sizeof(*meta))) in on_sample()
28 if (CHECK(meta->pkt_len != sizeof(pkt_v4), "check_meta_pkt_len", in on_sample()
29 "meta->pkt_len = %zd\n", sizeof(pkt_v4))) in on_sample()
32 if (CHECK(memcmp(trace_pkt_v4, &pkt_v4, sizeof(pkt_v4)), in on_sample()
94 err = bpf_prog_test_run(pkt_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_xdp_bpf2bpf()
Dksyms_module.c23 err = bpf_prog_test_run(skel->progs.load.prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_ksyms_module_lskel()
46 err = bpf_prog_test_run(bpf_program__fd(skel->progs.load), 1, &pkt_v4, in test_ksyms_module_libbpf()
47 sizeof(pkt_v4), NULL, NULL, (__u32 *)&retval, NULL); in test_ksyms_module_libbpf()
Dtailcalls.c539 err = bpf_prog_test_run(main_fd, 1, &pkt_v4, sizeof(pkt_v4), 0, in test_tailcall_bpf2bpf_1()
550 err = bpf_prog_test_run(main_fd, 1, &pkt_v4, sizeof(pkt_v4), 0, in test_tailcall_bpf2bpf_1()
563 err = bpf_prog_test_run(main_fd, 1, &pkt_v4, sizeof(pkt_v4), 0, in test_tailcall_bpf2bpf_1()
565 CHECK(err || retval != sizeof(pkt_v4) * 2, in test_tailcall_bpf2bpf_1()
700 err = bpf_prog_test_run(main_fd, 1, &pkt_v4, sizeof(pkt_v4), 0, in test_tailcall_bpf2bpf_3()
702 CHECK(err || retval != sizeof(pkt_v4) * 3, in test_tailcall_bpf2bpf_3()
711 err = bpf_prog_test_run(main_fd, 1, &pkt_v4, sizeof(pkt_v4), 0, in test_tailcall_bpf2bpf_3()
713 CHECK(err || retval != sizeof(pkt_v4), in test_tailcall_bpf2bpf_3()
722 err = bpf_prog_test_run(main_fd, 1, &pkt_v4, sizeof(pkt_v4), 0, in test_tailcall_bpf2bpf_3()
724 CHECK(err || retval != sizeof(pkt_v4) * 2, in test_tailcall_bpf2bpf_3()
[all …]
Dxdp_context_test_run.c31 char data[sizeof(pkt_v4) + sizeof(__u32)]; in test_xdp_context_test_run()
57 *(struct ipv4_packet *)(data + sizeof(__u32)) = pkt_v4; in test_xdp_context_test_run()
63 ctx_in.data_end = ctx_in.data + sizeof(pkt_v4); in test_xdp_context_test_run()
67 ASSERT_EQ(opts.data_size_out, sizeof(pkt_v4), "valid-datasize"); in test_xdp_context_test_run()
71 ASSERT_EQ(ctx_out.data_end, sizeof(pkt_v4), "valid-dataend"); in test_xdp_context_test_run()
Dprog_run_xattr.c32 .data_in = &pkt_v4, in test_prog_run_xattr()
33 .data_size_in = sizeof(pkt_v4), in test_prog_run_xattr()
52 CHECK_ATTR(tattr.data_size_out != sizeof(pkt_v4), "data_size_out", in test_prog_run_xattr()
54 sizeof(pkt_v4), tattr.data_size_out); in test_prog_run_xattr()
Dxdp_adjust_tail.c17 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_xdp_adjust_tail_shrink()
45 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_xdp_adjust_tail_grow()
Dfor_each.c46 1, &pkt_v4, sizeof(pkt_v4), NULL, NULL, in test_hash_map()
110 1, &pkt_v4, sizeof(pkt_v4), NULL, NULL, in test_array_map()
Dpkt_md_access.c16 err = bpf_prog_test_run(prog_fd, 10, &pkt_v4, sizeof(pkt_v4), in test_pkt_md_access()
Dcheck_mtu.c89 .data_in = &pkt_v4, in test_check_mtu_run_xdp()
90 .data_size_in = sizeof(pkt_v4), in test_check_mtu_run_xdp()
149 .data_in = &pkt_v4, in test_check_mtu_run_tc()
150 .data_size_in = sizeof(pkt_v4), in test_check_mtu_run_tc()
Dskb_helpers.c13 .data_in = &pkt_v4, in test_skb_helpers()
14 .data_size_in = sizeof(pkt_v4), in test_skb_helpers()
Dpkt_access.c16 err = bpf_prog_test_run(prog_fd, 100000, &pkt_v4, sizeof(pkt_v4), in test_pkt_access()
Dtest_skb_pkt_end.c13 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in sanity_run()
Dmap_ptr.c29 err = bpf_prog_test_run(skel->progs.cg_skb.prog_fd, 1, &pkt_v4, in test_map_ptr()
30 sizeof(pkt_v4), buf, NULL, &retval, NULL); in test_map_ptr()
Dflow_dissector_load_bytes.c40 err = bpf_prog_test_run(fd, 1, &pkt_v4, sizeof(pkt_v4), in serial_test_flow_dissector_load_bytes()
Dspinlock.c10 err = bpf_prog_test_run(prog_fd, 10000, &pkt_v4, sizeof(pkt_v4), in spin_lock_thread()
Dsignal_pending.c35 err = bpf_prog_test_run(prog_fd, 0xffffffff, &pkt_v4, sizeof(pkt_v4), in test_signal_pending_by_type()
Dglobal_func_args.c51 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_global_func_args()
Dxdp.c29 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_xdp()
Dxdp_noinline.c43 NUM_ITER, &pkt_v4, sizeof(pkt_v4), in test_xdp_noinline()
Dtrace_ext.c91 err = bpf_prog_test_run(pkt_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_trace_ext()
Dmap_lock.c10 err = bpf_prog_test_run(prog_fd, 10000, &pkt_v4, sizeof(pkt_v4), in spin_lock_thread()
Dl4lb_all.c52 err = bpf_prog_test_run(prog_fd, NUM_ITER, &pkt_v4, sizeof(pkt_v4), in test_l4lb()
Dskb_ctx.c24 .data_in = &pkt_v4, in test_skb_ctx()
25 .data_size_in = sizeof(pkt_v4), in test_skb_ctx()

12