Searched refs:old_eth (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/samples/bpf/ |
D | xdp_tx_iptunnel_kern.c | 68 const struct ethhdr *old_eth, in set_ethhdr() argument 72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr() 83 struct ethhdr *old_eth; in handle_ipv4() local 120 old_eth = data + sizeof(*iph); in handle_ipv4() 123 old_eth + 1 > data_end || in handle_ipv4() 127 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IP)); in handle_ipv4() 158 struct ethhdr *old_eth; in handle_ipv6() local 192 old_eth = data + sizeof(*ip6h); in handle_ipv6() 195 old_eth + 1 > data_end || in handle_ipv6() 199 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IPV6)); in handle_ipv6()
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_xdp.c | 71 const struct ethhdr *old_eth, in set_ethhdr() argument 75 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr() 86 struct ethhdr *old_eth; in handle_ipv4() local 121 old_eth = data + sizeof(*iph); in handle_ipv4() 124 old_eth + 1 > data_end || in handle_ipv4() 128 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4() 159 struct ethhdr *old_eth; in handle_ipv6() local 191 old_eth = data + sizeof(*ip6h); in handle_ipv6() 193 if (new_eth + 1 > data_end || old_eth + 1 > data_end || in handle_ipv6() 197 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); in handle_ipv6()
|
D | test_xdp_noinline.c | 294 struct eth_hdr *old_eth; in encap_v6() local 306 old_eth = data + sizeof(struct ipv6hdr); in encap_v6() 308 old_eth + 1 > data_end || ip6h + 1 > data_end) in encap_v6() 311 memcpy(new_eth->eth_source, old_eth->eth_dest, 6); in encap_v6() 339 struct eth_hdr *old_eth; in encap_v4() local 354 old_eth = data + sizeof(struct iphdr); in encap_v4() 356 old_eth + 1 > data_end || iph + 1 > data_end) in encap_v4() 359 memcpy(new_eth->eth_source, old_eth->eth_dest, 6); in encap_v4() 389 struct eth_hdr *old_eth; in decap_v6() local 391 old_eth = *data; in decap_v6() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/accel/ |
D | accel.h | 24 struct ethhdr *old_eth; in remove_metadata_hdr() local 28 old_eth = (struct ethhdr *)skb->data; in remove_metadata_hdr() 30 memmove(new_eth, old_eth, 2 * ETH_ALEN); in remove_metadata_hdr()
|