Searched refs:xdp_ptr (Results 1 - 2 of 2) sorted by relevance
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp_dynptr.c | 77 static __always_inline int handle_ipv4(struct xdp_md *xdp, struct bpf_dynptr *xdp_ptr) argument 99 iph = bpf_dynptr_slice(xdp_ptr, ethhdr_sz, iph_buffer_udp, sizeof(iph_buffer_udp)); 101 iph = bpf_dynptr_slice(xdp_ptr, ethhdr_sz, iph_buffer_tcp, sizeof(iph_buffer_tcp)); 159 static __always_inline int handle_ipv6(struct xdp_md *xdp, struct bpf_dynptr *xdp_ptr) argument 178 ip6h = bpf_dynptr_slice(xdp_ptr, ethhdr_sz, ip6h_buffer_udp, sizeof(ip6h_buffer_udp)); 180 ip6h = bpf_dynptr_slice(xdp_ptr, ethhdr_sz, ip6h_buffer_tcp, sizeof(ip6h_buffer_tcp));
|
/linux-master/kernel/bpf/ |
H A D | helpers.c | 2345 void *xdp_ptr = bpf_xdp_pointer(ptr->data, ptr->offset + offset, len); local 2346 if (!IS_ERR_OR_NULL(xdp_ptr)) 2347 return xdp_ptr;
|
Completed in 212 milliseconds