Searched refs:eth_buffer (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp_dynptr.c | 79 __u8 eth_buffer[ethhdr_sz + iphdr_sz + ethhdr_sz]; in handle_ipv4() local 94 __builtin_memset(eth_buffer, 0, sizeof(eth_buffer)); in handle_ipv4() 125 new_eth = bpf_dynptr_slice_rdwr(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer)); in handle_ipv4() 134 if (new_eth == eth_buffer) in handle_ipv4() 135 bpf_dynptr_write(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer), 0); in handle_ipv4() 161 __u8 eth_buffer[ethhdr_sz + ipv6hdr_sz + ethhdr_sz]; in handle_ipv6() local 173 __builtin_memset(eth_buffer, 0, sizeof(eth_buffer)); in handle_ipv6() 204 new_eth = bpf_dynptr_slice_rdwr(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer)); in handle_ipv6() 213 if (new_eth == eth_buffer) in handle_ipv6() 214 bpf_dynptr_write(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer), 0); in handle_ipv6()
|