Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/bpf/prog_tests/
H A 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 …]
H A Drbtree.c15 .data_in = &pkt_v4, in test_rbtree_add_nodes()
16 .data_size_in = sizeof(pkt_v4), in test_rbtree_add_nodes()
37 .data_in = &pkt_v4, in test_rbtree_add_nodes_nested()
38 .data_size_in = sizeof(pkt_v4), in test_rbtree_add_nodes_nested()
59 .data_in = &pkt_v4, in test_rbtree_add_and_remove()
60 .data_size_in = sizeof(pkt_v4), in test_rbtree_add_and_remove()
81 .data_in = &pkt_v4, in test_rbtree_add_and_remove_array()
82 .data_size_in = sizeof(pkt_v4), in test_rbtree_add_and_remove_array()
102 .data_in = &pkt_v4, in test_rbtree_first_and_remove()
103 .data_size_in = sizeof(pkt_v4), in test_rbtree_first_and_remove()
[all …]
H A Dlocal_kptr_stash.c12 .data_in = &pkt_v4, in test_local_kptr_stash_simple()
13 .data_size_in = sizeof(pkt_v4), in test_local_kptr_stash_simple()
33 .data_in = &pkt_v4, in test_local_kptr_stash_plain()
34 .data_size_in = sizeof(pkt_v4), in test_local_kptr_stash_plain()
54 .data_in = &pkt_v4, in test_local_kptr_stash_local_with_root()
55 .data_size_in = sizeof(pkt_v4), in test_local_kptr_stash_local_with_root()
75 .data_in = &pkt_v4, in test_local_kptr_stash_unstash()
76 .data_size_in = sizeof(pkt_v4), in test_local_kptr_stash_unstash()
100 .data_in = &pkt_v4, in test_refcount_acquire_without_unstash()
101 .data_size_in = sizeof(pkt_v4), in test_refcount_acquire_without_unstash()
H A 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()
H A 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()
H A 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()
H A Dkfunc_call.c110 topts.data_in = &pkt_v4; in verify_success()
111 topts.data_size_in = sizeof(pkt_v4); in verify_success()
176 topts.data_in = &pkt_v4; in verify_fail()
177 topts.data_size_in = sizeof(pkt_v4); in verify_fail()
239 .data_in = &pkt_v4, in test_subprog()
240 .data_size_in = sizeof(pkt_v4), in test_subprog()
263 .data_in = &pkt_v4, in test_subprog_lskel()
264 .data_size_in = sizeof(pkt_v4), in test_subprog_lskel()
H A Ddynptr.c74 .data_in = &pkt_v4, in verify_success()
75 .data_size_in = sizeof(pkt_v4), in verify_success()
105 .data_in = &pkt_v4, in verify_success()
106 .data_size_in = sizeof(pkt_v4), in verify_success()
H A Dtype_cast.c14 .data_in = &pkt_v4, in test_xdp()
15 .data_size_in = sizeof(pkt_v4), in test_xdp()
50 .data_in = &pkt_v4, in test_tc()
51 .data_size_in = sizeof(pkt_v4), in test_tc()
H A Dfor_each.c21 .data_in = &pkt_v4, in test_hash_map()
22 .data_size_in = sizeof(pkt_v4), in test_hash_map()
87 .data_in = &pkt_v4, in test_array_map()
88 .data_size_in = sizeof(pkt_v4), in test_array_map()
155 .data_in = &pkt_v4, in test_multi_maps()
156 .data_size_in = sizeof(pkt_v4), in test_multi_maps()
H A 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()
H A 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()
H A 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()
H A Djit_probe_mem.c11 .data_in = &pkt_v4, in test_jit_probe_mem()
12 .data_size_in = sizeof(pkt_v4), in test_jit_probe_mem()
H A Dskb_helpers.c13 .data_in = &pkt_v4, in test_skb_helpers()
14 .data_size_in = sizeof(pkt_v4), in test_skb_helpers()
H A Dpkt_access.c11 .data_in = &pkt_v4, in test_pkt_access()
12 .data_size_in = sizeof(pkt_v4), in test_pkt_access()
H A Dmap_ptr.c16 .data_in = &pkt_v4, in test_map_ptr()
17 .data_size_in = sizeof(pkt_v4), in test_map_ptr()
H A Dtest_skb_pkt_end.c11 .data_in = &pkt_v4, in sanity_run()
12 .data_size_in = sizeof(pkt_v4), in sanity_run()
H A Drefcounted_kptr.c23 .data_in = &pkt_v4, in test_refcounted_kptr_wrong_owner()
24 .data_size_in = sizeof(pkt_v4), in test_refcounted_kptr_wrong_owner()
H A 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()
H A Dcb_refs.c31 .data_in = &pkt_v4, in test_cb_refs()
32 .data_size_in = sizeof(pkt_v4), in test_cb_refs()
H A 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()
H A 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()
H A 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()
H A 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()

12