Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/prog_tests/
Dqueue_stack_map.c54 pkt_v4.iph.saddr = vals[i] * 5; in test_queue_stack_map_by_type()
57 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type()
60 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_queue_stack_map_by_type()
62 if (err || retval || size != sizeof(pkt_v4) || in test_queue_stack_map_by_type()
67 CHECK(err || retval || size != sizeof(pkt_v4) || iph->daddr != val, in test_queue_stack_map_by_type()
73 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_queue_stack_map_by_type()
75 CHECK(err || retval != 2 /* TC_ACT_SHOT */|| size != sizeof(pkt_v4), in test_queue_stack_map_by_type()
91 pkt_v4.iph.saddr = 0; in test_queue_stack_map_by_type()
Dprog_run_xattr.c12 .data_in = &pkt_v4, in test_prog_run_xattr()
13 .data_size_in = sizeof(pkt_v4), in test_prog_run_xattr()
29 CHECK_ATTR(tattr.data_size_out != sizeof(pkt_v4), "data_size_out", in test_prog_run_xattr()
31 sizeof(pkt_v4), tattr.data_size_out); in test_prog_run_xattr()
Dpkt_md_access.c15 err = bpf_prog_test_run(prog_fd, 10, &pkt_v4, sizeof(pkt_v4), in test_pkt_md_access()
Dpkt_access.c15 err = bpf_prog_test_run(prog_fd, 100000, &pkt_v4, sizeof(pkt_v4), in test_pkt_access()
Dxdp_adjust_tail.c16 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_xdp_adjust_tail()
Dflow_dissector_load_bytes.c39 err = bpf_prog_test_run(fd, 1, &pkt_v4, sizeof(pkt_v4), in test_flow_dissector_load_bytes()
Dsignal_pending.c34 err = bpf_prog_test_run(prog_fd, 0xffffffff, &pkt_v4, sizeof(pkt_v4), in test_signal_pending_by_type()
Dxdp.c28 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_xdp()
Dskb_ctx.c15 .data_in = &pkt_v4, in test_skb_ctx()
16 .data_size_in = sizeof(pkt_v4), in test_skb_ctx()
Dxdp_noinline.c52 err = bpf_prog_test_run(prog_fd, NUM_ITER, &pkt_v4, sizeof(pkt_v4), in test_xdp_noinline()
Dl4lb_all.c51 err = bpf_prog_test_run(prog_fd, NUM_ITER, &pkt_v4, sizeof(pkt_v4), in test_l4lb()
Dglobal_data.c135 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_global_data()
/tools/testing/selftests/bpf/
Dtest_progs.h85 extern struct ipv4_packet pkt_v4;
Dtest_progs.c169 struct ipv4_packet pkt_v4 = { variable
310 err = bpf_prog_test_run(prog_fd, 10000, &pkt_v4, sizeof(pkt_v4), in spin_lock_thread()