Lines Matching refs:eh
69 struct ethhdr *eh = data; in xdp_process_echo_packet() local
75 if (eh + 1 > (struct ethhdr *)data_end) in xdp_process_echo_packet()
78 if (eh->h_proto == bpf_htons(ETH_P_IP)) { in xdp_process_echo_packet()
79 struct iphdr *ih = (struct iphdr *)(eh + 1); in xdp_process_echo_packet()
85 ih = (struct iphdr *)(eh + 1); in xdp_process_echo_packet()
99 } else if (eh->h_proto == bpf_htons(ETH_P_IPV6)) { in xdp_process_echo_packet()
102 struct ipv6hdr *ih6 = (struct ipv6hdr *)(eh + 1); in xdp_process_echo_packet()
204 struct ethhdr *eh = data; in xdp_do_tx() local
210 __builtin_memcpy(tmp_mac, eh->h_source, ETH_ALEN); in xdp_do_tx()
211 __builtin_memcpy(eh->h_source, eh->h_dest, ETH_ALEN); in xdp_do_tx()
212 __builtin_memcpy(eh->h_dest, tmp_mac, ETH_ALEN); in xdp_do_tx()
256 struct ethhdr *eh = data; in xdp_do_redirect_cpumap() local
262 __builtin_memcpy(tmp_mac, eh->h_source, ETH_ALEN); in xdp_do_redirect_cpumap()
263 __builtin_memcpy(eh->h_source, eh->h_dest, ETH_ALEN); in xdp_do_redirect_cpumap()
264 __builtin_memcpy(eh->h_dest, tmp_mac, ETH_ALEN); in xdp_do_redirect_cpumap()