Home
last modified time | relevance | path

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

12

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dxdp_bpf2bpf.c27 ASSERT_GE(size, sizeof(pkt_v4) + sizeof(*meta), "check_size"); in on_sample()
30 ASSERT_EQ(memcmp(trace_pkt_v4, &pkt_v4, sizeof(pkt_v4)), 0, in on_sample()
33 if (meta->pkt_len > sizeof(pkt_v4)) { in on_sample()
34 for (int i = 0; i < meta->pkt_len - sizeof(pkt_v4); i++) in on_sample()
35 ASSERT_EQ(raw_pkt[i + sizeof(pkt_v4)], (unsigned char)i, in on_sample()
53 !ASSERT_GE(pkt_size, sizeof(pkt_v4), "pkt_size")) in run_xdp_bpf2bpf_pkt_size()
69 memcpy(buf_in, &pkt_v4, sizeof(pkt_v4)); in run_xdp_bpf2bpf_pkt_size()
70 if (pkt_size > sizeof(pkt_v4)) { in run_xdp_bpf2bpf_pkt_size()
71 for (int i = 0; i < (pkt_size - sizeof(pkt_v4)); i++) in run_xdp_bpf2bpf_pkt_size()
72 buf_in[i + sizeof(pkt_v4)] = i; in run_xdp_bpf2bpf_pkt_size()
[all …]
Dqueue_stack_map.c19 .data_in = &pkt_v4, in test_queue_stack_map_by_type()
20 .data_size_in = sizeof(pkt_v4), in test_queue_stack_map_by_type()
62 pkt_v4.iph.saddr = vals[i] * 5; in test_queue_stack_map_by_type()
65 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type()
71 topts.data_size_out != sizeof(pkt_v4)) in test_queue_stack_map_by_type()
80 ASSERT_EQ(topts.data_size_out, sizeof(pkt_v4), in test_queue_stack_map_by_type()
90 ASSERT_EQ(topts.data_size_out, sizeof(pkt_v4), in test_queue_stack_map_by_type()
100 pkt_v4.iph.saddr = 0; in test_queue_stack_map_by_type()
Dksyms_module.c14 .data_in = &pkt_v4, in test_ksyms_module_lskel()
15 .data_size_in = sizeof(pkt_v4), in test_ksyms_module_lskel()
41 .data_in = &pkt_v4, in test_ksyms_module_libbpf()
42 .data_size_in = sizeof(pkt_v4), in test_ksyms_module_libbpf()
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()
Dkfunc_call.c106 topts.data_in = &pkt_v4; in verify_success()
107 topts.data_size_in = sizeof(pkt_v4); in verify_success()
172 topts.data_in = &pkt_v4; in verify_fail()
173 topts.data_size_in = sizeof(pkt_v4); in verify_fail()
235 .data_in = &pkt_v4, in test_subprog()
236 .data_size_in = sizeof(pkt_v4), in test_subprog()
259 .data_in = &pkt_v4, in test_subprog_lskel()
260 .data_size_in = sizeof(pkt_v4), in test_subprog_lskel()
Dprog_run_opts.c32 .data_in = &pkt_v4, in test_prog_run_opts()
33 .data_size_in = sizeof(pkt_v4), in test_prog_run_opts()
53 ASSERT_EQ(topts.data_size_out, sizeof(pkt_v4), "test_run data_size_out"); in test_prog_run_opts()
Dfor_each.c20 .data_in = &pkt_v4, in test_hash_map()
21 .data_size_in = sizeof(pkt_v4), in test_hash_map()
86 .data_in = &pkt_v4, in test_array_map()
87 .data_size_in = sizeof(pkt_v4), in test_array_map()
Dtailcalls.c505 .data_in = &pkt_v4, in test_tailcall_bpf2bpf_1()
506 .data_size_in = sizeof(pkt_v4), in test_tailcall_bpf2bpf_1()
572 ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 2, "tailcall retval"); in test_tailcall_bpf2bpf_1()
669 .data_in = &pkt_v4, in test_tailcall_bpf2bpf_3()
670 .data_size_in = sizeof(pkt_v4), in test_tailcall_bpf2bpf_3()
713 ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 3, "tailcall retval"); in test_tailcall_bpf2bpf_3()
722 ASSERT_EQ(topts.retval, sizeof(pkt_v4), "tailcall retval"); in test_tailcall_bpf2bpf_3()
731 ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 2, "tailcall retval"); in test_tailcall_bpf2bpf_3()
764 .data_in = &pkt_v4, in test_tailcall_bpf2bpf_4()
765 .data_size_in = sizeof(pkt_v4), in test_tailcall_bpf2bpf_4()
[all …]
Dpkt_md_access.c11 .data_in = &pkt_v4, in test_pkt_md_access()
12 .data_size_in = sizeof(pkt_v4), in test_pkt_md_access()
Dskb_helpers.c13 .data_in = &pkt_v4, in test_skb_helpers()
14 .data_size_in = sizeof(pkt_v4), in test_skb_helpers()
Dcheck_mtu.c88 .data_in = &pkt_v4, in test_check_mtu_run_xdp()
89 .data_size_in = sizeof(pkt_v4), in test_check_mtu_run_xdp()
140 .data_in = &pkt_v4, in test_check_mtu_run_tc()
141 .data_size_in = sizeof(pkt_v4), in test_check_mtu_run_tc()
Dpkt_access.c11 .data_in = &pkt_v4, in test_pkt_access()
12 .data_size_in = sizeof(pkt_v4), in test_pkt_access()
Dtest_skb_pkt_end.c11 .data_in = &pkt_v4, in sanity_run()
12 .data_size_in = sizeof(pkt_v4), in sanity_run()
Dmap_ptr.c16 .data_in = &pkt_v4, in test_map_ptr()
17 .data_size_in = sizeof(pkt_v4), in test_map_ptr()
Dcb_refs.c31 .data_in = &pkt_v4, in test_cb_refs()
32 .data_size_in = sizeof(pkt_v4), in test_cb_refs()
Dflow_dissector_load_bytes.c30 .data_in = &pkt_v4, in serial_test_flow_dissector_load_bytes()
31 .data_size_in = sizeof(pkt_v4), in serial_test_flow_dissector_load_bytes()
Dskb_load_bytes.c13 .data_in = &pkt_v4, in test_skb_load_bytes()
14 .data_size_in = sizeof(pkt_v4), in test_skb_load_bytes()
Dspinlock.c9 .data_in = &pkt_v4, in spin_lock_thread()
10 .data_size_in = sizeof(pkt_v4), in spin_lock_thread()
Dsignal_pending.c20 .data_in = &pkt_v4, in test_signal_pending_by_type()
21 .data_size_in = sizeof(pkt_v4), in test_signal_pending_by_type()
Dglobal_func_args.c46 .data_in = &pkt_v4, in test_global_func_args()
47 .data_size_in = sizeof(pkt_v4), in test_global_func_args()
Dtime_tai.c28 .data_in = &pkt_v4, in test_time_tai()
29 .data_size_in = sizeof(pkt_v4), in test_time_tai()
Dxdp_adjust_tail.c13 .data_in = &pkt_v4, in test_xdp_adjust_tail_shrink()
14 .data_size_in = sizeof(pkt_v4), in test_xdp_adjust_tail_shrink()
48 .data_in = &pkt_v4, in test_xdp_adjust_tail_grow()
49 .data_size_in = sizeof(pkt_v4), in test_xdp_adjust_tail_grow()
Dxdp.c18 .data_in = &pkt_v4, in test_xdp()
19 .data_size_in = sizeof(pkt_v4), in test_xdp()
Dskb_ctx.c24 .data_in = &pkt_v4, in test_skb_ctx()
25 .data_size_in = sizeof(pkt_v4), in test_skb_ctx()
Dtrace_ext.c28 .data_in = &pkt_v4, in test_trace_ext()
29 .data_size_in = sizeof(pkt_v4), in test_trace_ext()

12