Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_dynptr.c82 struct bpf_dynptr new_xdp_ptr; in handle_ipv4() local
124 bpf_dynptr_from_xdp(xdp, 0, &new_xdp_ptr); in handle_ipv4()
125 new_eth = bpf_dynptr_slice_rdwr(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer)); in handle_ipv4()
135 bpf_dynptr_write(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer), 0); in handle_ipv4()
164 struct bpf_dynptr new_xdp_ptr; in handle_ipv6() local
203 bpf_dynptr_from_xdp(xdp, 0, &new_xdp_ptr); in handle_ipv6()
204 new_eth = bpf_dynptr_slice_rdwr(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer)); in handle_ipv6()
214 bpf_dynptr_write(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer), 0); in handle_ipv6()