Lines Matching full:eh
69 struct ethhdr *eh = data; in xdp_process_echo_packet() local
74 if (eh + 1 > (struct ethhdr *)data_end) in xdp_process_echo_packet()
77 if (eh->h_proto == bpf_htons(ETH_P_IP)) { in xdp_process_echo_packet()
78 struct iphdr *ih = (struct iphdr *)(eh + 1); in xdp_process_echo_packet()
84 ih = (struct iphdr *)(eh + 1); in xdp_process_echo_packet()
98 } else if (eh->h_proto == bpf_htons(ETH_P_IPV6)) { in xdp_process_echo_packet()
101 struct ipv6hdr *ih6 = (struct ipv6hdr *)(eh + 1); in xdp_process_echo_packet()
203 struct ethhdr *eh = data; in xdp_do_tx() local
209 __builtin_memcpy(tmp_mac, eh->h_source, ETH_ALEN); in xdp_do_tx()
210 __builtin_memcpy(eh->h_source, eh->h_dest, ETH_ALEN); in xdp_do_tx()
211 __builtin_memcpy(eh->h_dest, tmp_mac, ETH_ALEN); in xdp_do_tx()
255 struct ethhdr *eh = data; in xdp_do_redirect_cpumap() local
261 __builtin_memcpy(tmp_mac, eh->h_source, ETH_ALEN); in xdp_do_redirect_cpumap()
262 __builtin_memcpy(eh->h_source, eh->h_dest, ETH_ALEN); in xdp_do_redirect_cpumap()
263 __builtin_memcpy(eh->h_dest, tmp_mac, ETH_ALEN); in xdp_do_redirect_cpumap()