Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dkfree_skb.c23 struct ipv6_packet *pkt_v6 = data + sizeof(*meta); in on_sample() local
40 if (CHECK(pkt_v6->eth.h_proto != htons(ETH_P_IPV6), "check_eth", in on_sample()
41 "h_proto %x\n", pkt_v6->eth.h_proto)) in on_sample()
43 if (CHECK(pkt_v6->iph.nexthdr != 6, "check_ip", in on_sample()
44 "iph.nexthdr %x\n", pkt_v6->iph.nexthdr)) in on_sample()
46 if (CHECK(pkt_v6->tcp.doff != 5, "check_tcp", in on_sample()
47 "tcp.doff %x\n", pkt_v6->tcp.doff)) in on_sample()
58 .data_in = &pkt_v6, in serial_test_kfree_skb()
59 .data_size_in = sizeof(pkt_v6), in serial_test_kfree_skb()
H A Dxdp_adjust_tail.c28 expect_sz = sizeof(pkt_v6) - 20; /* Test shrink with 20 bytes */ in test_xdp_adjust_tail_shrink()
29 topts.data_in = &pkt_v6; in test_xdp_adjust_tail_shrink()
30 topts.data_size_in = sizeof(pkt_v6); in test_xdp_adjust_tail_shrink()
63 expect_sz = sizeof(pkt_v6) + 40; /* Test grow with 40 bytes */ in test_xdp_adjust_tail_grow()
64 topts.data_in = &pkt_v6; in test_xdp_adjust_tail_grow()
65 topts.data_size_in = sizeof(pkt_v6); in test_xdp_adjust_tail_grow()
H A Dpkt_access.c24 topts.data_in = &pkt_v6; in test_pkt_access()
25 topts.data_size_in = sizeof(pkt_v6); in test_pkt_access()
H A Dxdp.c42 topts.data_in = &pkt_v6; in test_xdp()
43 topts.data_size_in = sizeof(pkt_v6); in test_xdp()
H A Dxdp_noinline.c54 topts.data_in = &pkt_v6; in test_xdp_noinline()
55 topts.data_size_in = sizeof(pkt_v6); in test_xdp_noinline()
H A Dl4lb_all.c65 topts.data_in = &pkt_v6; in test_l4lb()
66 topts.data_size_in = sizeof(pkt_v6); in test_l4lb()
H A Dfexit_bpf2bpf.c71 .data_in = &pkt_v6, in test_fexit_bpf2bpf_common()
72 .data_size_in = sizeof(pkt_v6), in test_fexit_bpf2bpf_common()
238 .data_in = &pkt_v6, in test_second_attach()
239 .data_size_in = sizeof(pkt_v6), in test_second_attach()
H A Dfib_lookup.c171 .data_in = &pkt_v6, in test_fib_lookup()
172 .data_size_in = sizeof(pkt_v6), in test_fib_lookup()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dnetwork_helpers.h46 extern struct ipv6_packet pkt_v6;
H A Dnetwork_helpers.c46 struct ipv6_packet pkt_v6 = { variable