Lines Matching refs:data_end
46 static __always_inline int get_dport(void *trans_data, void *data_end, in get_dport() argument
55 if (th + 1 > data_end) in get_dport()
60 if (uh + 1 > data_end) in get_dport()
80 void *data_end = (void *)(long)xdp->data_end; in handle_ipv4() local
93 if (iph + 1 > data_end) in handle_ipv4()
96 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4()
115 data_end = (void *)(long)xdp->data_end; in handle_ipv4()
121 if (new_eth + 1 > data_end || in handle_ipv4()
122 old_eth + 1 > data_end || in handle_ipv4()
123 iph + 1 > data_end) in handle_ipv4()
153 void *data_end = (void *)(long)xdp->data_end; in handle_ipv6() local
163 if (ip6h + 1 > data_end) in handle_ipv6()
166 dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); in handle_ipv6()
185 data_end = (void *)(long)xdp->data_end; in handle_ipv6()
191 if (new_eth + 1 > data_end || old_eth + 1 > data_end || in handle_ipv6()
192 ip6h + 1 > data_end) in handle_ipv6()
214 void *data_end = (void *)(long)xdp->data_end; in _xdp_tx_iptunnel() local
219 if (eth + 1 > data_end) in _xdp_tx_iptunnel()