Home
last modified time | relevance | path

Searched refs:pkt_v6 (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dkfree_skb.c21 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()
Dxdp_adjust_tail.c24 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()
Dpkt_access.c22 err = bpf_prog_test_run(prog_fd, 100000, &pkt_v6, sizeof(pkt_v6), in test_pkt_access()
Dxdp.c37 err = bpf_prog_test_run(prog_fd, 1, &pkt_v6, sizeof(pkt_v6), in test_xdp()
Dfexit_bpf2bpf.c108 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()
Dxdp_noinline.c51 NUM_ITER, &pkt_v6, sizeof(pkt_v6), in test_xdp_noinline()
Dl4lb_all.c59 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/
Dnetwork_helpers.h34 extern struct ipv6_packet pkt_v6;
Dnetwork_helpers.c35 struct ipv6_packet pkt_v6 = { variable