Lines Matching refs:xdp
80 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4() argument
82 void *data_end = (void *)(long)xdp->data_end; in handle_ipv4()
83 void *data = (void *)(long)xdp->data; in handle_ipv4()
113 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in handle_ipv4()
116 data = (void *)(long)xdp->data; in handle_ipv4()
117 data_end = (void *)(long)xdp->data_end; in handle_ipv4()
153 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6() argument
155 void *data_end = (void *)(long)xdp->data_end; in handle_ipv6()
156 void *data = (void *)(long)xdp->data; in handle_ipv6()
183 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) in handle_ipv6()
186 data = (void *)(long)xdp->data; in handle_ipv6()
187 data_end = (void *)(long)xdp->data_end; in handle_ipv6()
214 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel() argument
216 void *data_end = (void *)(long)xdp->data_end; in _xdp_tx_iptunnel()
217 void *data = (void *)(long)xdp->data; in _xdp_tx_iptunnel()
227 return handle_ipv4(xdp); in _xdp_tx_iptunnel()
230 return handle_ipv6(xdp); in _xdp_tx_iptunnel()