Lines Matching full:xdp
78 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4() argument
80 void *data_end = (void *)(long)xdp->data_end; in handle_ipv4()
81 void *data = (void *)(long)xdp->data; in handle_ipv4()
111 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in handle_ipv4()
114 data = (void *)(long)xdp->data; in handle_ipv4()
115 data_end = (void *)(long)xdp->data_end; in handle_ipv4()
151 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6() argument
153 void *data_end = (void *)(long)xdp->data_end; in handle_ipv6()
154 void *data = (void *)(long)xdp->data; in handle_ipv6()
181 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) in handle_ipv6()
184 data = (void *)(long)xdp->data; in handle_ipv6()
185 data_end = (void *)(long)xdp->data_end; in handle_ipv6()
211 SEC("xdp")
212 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel() argument
214 void *data_end = (void *)(long)xdp->data_end; in _xdp_tx_iptunnel()
215 void *data = (void *)(long)xdp->data; in _xdp_tx_iptunnel()
225 return handle_ipv4(xdp); in _xdp_tx_iptunnel()
228 return handle_ipv6(xdp); in _xdp_tx_iptunnel()