Lines Matching refs:xdp
77 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4() argument
79 void *data_end = (void *)(long)xdp->data_end; in handle_ipv4()
80 void *data = (void *)(long)xdp->data; in handle_ipv4()
112 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in handle_ipv4()
115 data = (void *)(long)xdp->data; in handle_ipv4()
116 data_end = (void *)(long)xdp->data_end; in handle_ipv4()
152 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6() argument
154 void *data_end = (void *)(long)xdp->data_end; in handle_ipv6()
155 void *data = (void *)(long)xdp->data; in handle_ipv6()
184 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) in handle_ipv6()
187 data = (void *)(long)xdp->data; in handle_ipv6()
188 data_end = (void *)(long)xdp->data_end; in handle_ipv6()
216 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel() argument
218 void *data_end = (void *)(long)xdp->data_end; in _xdp_tx_iptunnel()
219 void *data = (void *)(long)xdp->data; in _xdp_tx_iptunnel()
229 return handle_ipv4(xdp); in _xdp_tx_iptunnel()
232 return handle_ipv6(xdp); in _xdp_tx_iptunnel()