Searched refs:old_eth (Results 1 – 5 of 5) sorted by relevance
/linux/samples/bpf/ |
A 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/tools/testing/selftests/bpf/progs/ |
A D | test_xdp.c | 69 const struct ethhdr *old_eth, in set_ethhdr() argument 73 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr() 84 struct ethhdr *old_eth; in handle_ipv4() local 119 old_eth = data + sizeof(*iph); in handle_ipv4() 122 old_eth + 1 > data_end || in handle_ipv4() 126 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4() 157 struct ethhdr *old_eth; in handle_ipv6() local 189 old_eth = data + sizeof(*ip6h); in handle_ipv6() 191 if (new_eth + 1 > data_end || old_eth + 1 > data_end || in handle_ipv6() 195 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); in handle_ipv6()
|
A D | test_xdp_loop.c | 65 const struct ethhdr *old_eth, in set_ethhdr() argument 69 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr() 80 struct ethhdr *old_eth; in handle_ipv4() local 115 old_eth = data + sizeof(*iph); in handle_ipv4() 118 old_eth + 1 > data_end || in handle_ipv4() 122 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4() 153 struct ethhdr *old_eth; in handle_ipv6() local 185 old_eth = data + sizeof(*ip6h); in handle_ipv6() 187 if (new_eth + 1 > data_end || old_eth + 1 > data_end || in handle_ipv6() 191 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); in handle_ipv6()
|
A D | test_xdp_noinline.c | 283 struct eth_hdr *old_eth; in encap_v6() local 295 old_eth = data + sizeof(struct ipv6hdr); in encap_v6() 328 struct eth_hdr *old_eth; in encap_v4() local 343 old_eth = data + sizeof(struct iphdr); in encap_v4() 345 old_eth + 1 > data_end || iph + 1 > data_end) in encap_v4() 378 struct eth_hdr *old_eth; in decap_v6() local 380 old_eth = *data; in decap_v6() 383 memcpy(new_eth->eth_dest, old_eth->eth_dest, 6); in decap_v6() 399 struct eth_hdr *old_eth; in decap_v4() local 401 old_eth = *data; in decap_v4() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/accel/ |
A D | accel.h | 23 struct ethhdr *old_eth; in remove_metadata_hdr() local 27 old_eth = (struct ethhdr *)skb->data; in remove_metadata_hdr() 29 memmove(new_eth, old_eth, 2 * ETH_ALEN); in remove_metadata_hdr()
|
Completed in 8 milliseconds