Searched refs:pkt_v4 (Results 1 – 14 of 14) sorted by relevance
/tools/testing/selftests/bpf/prog_tests/ |
D | queue_stack_map.c | 54 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()
|
D | prog_run_xattr.c | 12 .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()
|
D | pkt_md_access.c | 15 err = bpf_prog_test_run(prog_fd, 10, &pkt_v4, sizeof(pkt_v4), in test_pkt_md_access()
|
D | pkt_access.c | 15 err = bpf_prog_test_run(prog_fd, 100000, &pkt_v4, sizeof(pkt_v4), in test_pkt_access()
|
D | xdp_adjust_tail.c | 16 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_xdp_adjust_tail()
|
D | flow_dissector_load_bytes.c | 39 err = bpf_prog_test_run(fd, 1, &pkt_v4, sizeof(pkt_v4), in test_flow_dissector_load_bytes()
|
D | signal_pending.c | 34 err = bpf_prog_test_run(prog_fd, 0xffffffff, &pkt_v4, sizeof(pkt_v4), in test_signal_pending_by_type()
|
D | xdp.c | 28 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_xdp()
|
D | skb_ctx.c | 15 .data_in = &pkt_v4, in test_skb_ctx() 16 .data_size_in = sizeof(pkt_v4), in test_skb_ctx()
|
D | xdp_noinline.c | 52 err = bpf_prog_test_run(prog_fd, NUM_ITER, &pkt_v4, sizeof(pkt_v4), in test_xdp_noinline()
|
D | l4lb_all.c | 51 err = bpf_prog_test_run(prog_fd, NUM_ITER, &pkt_v4, sizeof(pkt_v4), in test_l4lb()
|
D | global_data.c | 135 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_global_data()
|
/tools/testing/selftests/bpf/ |
D | test_progs.h | 85 extern struct ipv4_packet pkt_v4;
|
D | test_progs.c | 169 struct ipv4_packet pkt_v4 = { variable 310 err = bpf_prog_test_run(prog_fd, 10000, &pkt_v4, sizeof(pkt_v4), in spin_lock_thread()
|