Searched refs:pkt_v6 (Results 1 – 9 of 9) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | kfree_skb.c | 21 struct ipv6_packet *pkt_v6 = data + sizeof(*meta); in on_sample() local 38 if (CHECK(pkt_v6->eth.h_proto != 0xdd86, "check_eth", in on_sample() 39 "h_proto %x\n", pkt_v6->eth.h_proto)) in on_sample() 41 if (CHECK(pkt_v6->iph.nexthdr != 6, "check_ip", in on_sample() 42 "iph.nexthdr %x\n", pkt_v6->iph.nexthdr)) in on_sample() 44 if (CHECK(pkt_v6->tcp.doff != 5, "check_tcp", in on_sample() 45 "tcp.doff %x\n", pkt_v6->tcp.doff)) in on_sample() 55 .data_in = &pkt_v6, in test_kfree_skb() 56 .data_size_in = sizeof(pkt_v6), in test_kfree_skb()
|
D | xdp_adjust_tail.c | 24 expect_sz = sizeof(pkt_v6) - 20; /* Test shrink with 20 bytes */ in test_xdp_adjust_tail_shrink() 25 err = bpf_prog_test_run(prog_fd, 1, &pkt_v6, sizeof(pkt_v6), in test_xdp_adjust_tail_shrink() 51 expect_sz = sizeof(pkt_v6) + 40; /* Test grow with 40 bytes */ in test_xdp_adjust_tail_grow() 52 err = bpf_prog_test_run(prog_fd, 1, &pkt_v6, sizeof(pkt_v6) /* 74 */, in test_xdp_adjust_tail_grow()
|
D | pkt_access.c | 22 err = bpf_prog_test_run(prog_fd, 100000, &pkt_v6, sizeof(pkt_v6), in test_pkt_access()
|
D | xdp.c | 37 err = bpf_prog_test_run(prog_fd, 1, &pkt_v6, sizeof(pkt_v6), in test_xdp()
|
D | fexit_bpf2bpf.c | 108 err = bpf_prog_test_run(tgt_fd, 1, &pkt_v6, sizeof(pkt_v6), in test_fexit_bpf2bpf_common() 207 err = bpf_prog_test_run(tgt_fd, 1, &pkt_v6, sizeof(pkt_v6), in test_second_attach()
|
D | xdp_noinline.c | 51 NUM_ITER, &pkt_v6, sizeof(pkt_v6), in test_xdp_noinline()
|
D | l4lb_all.c | 59 err = bpf_prog_test_run(prog_fd, NUM_ITER, &pkt_v6, sizeof(pkt_v6), in test_l4lb()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | network_helpers.h | 34 extern struct ipv6_packet pkt_v6;
|
D | network_helpers.c | 35 struct ipv6_packet pkt_v6 = { variable
|