Searched refs:new_eth (Results 1 – 5 of 5) sorted by relevance
/linux/samples/bpf/ |
A D | xdp_tx_iptunnel_kern.c | 72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr() 73 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr() 74 new_eth->h_proto = h_proto; in set_ethhdr() 82 struct ethhdr *new_eth; in handle_ipv4() local 118 new_eth = data; in handle_ipv4() 119 iph = data + sizeof(*new_eth); in handle_ipv4() 122 if (new_eth + 1 > data_end || in handle_ipv4() 157 struct ethhdr *new_eth; in handle_ipv6() local 190 new_eth = data; in handle_ipv6() 191 ip6h = data + sizeof(*new_eth); in handle_ipv6() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | test_xdp.c | 73 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr() 74 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr() 75 new_eth->h_proto = h_proto; in set_ethhdr() 83 struct ethhdr *new_eth; in handle_ipv4() local 117 new_eth = data; in handle_ipv4() 118 iph = data + sizeof(*new_eth); in handle_ipv4() 121 if (new_eth + 1 > data_end || in handle_ipv4() 126 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4() 156 struct ethhdr *new_eth; in handle_ipv6() local 187 new_eth = data; in handle_ipv6() [all …]
|
A D | test_xdp_loop.c | 69 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr() 70 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr() 71 new_eth->h_proto = h_proto; in set_ethhdr() 79 struct ethhdr *new_eth; in handle_ipv4() local 113 new_eth = data; in handle_ipv4() 114 iph = data + sizeof(*new_eth); in handle_ipv4() 117 if (new_eth + 1 > data_end || in handle_ipv4() 122 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4() 152 struct ethhdr *new_eth; in handle_ipv6() local 183 new_eth = data; in handle_ipv6() [all …]
|
A D | test_xdp_noinline.c | 282 struct eth_hdr *new_eth; in encap_v6() local 293 new_eth = data; in encap_v6() 301 new_eth->eth_proto = 56710; in encap_v6() 327 struct eth_hdr *new_eth; in encap_v4() local 341 new_eth = data; in encap_v4() 349 new_eth->eth_proto = 8; in encap_v4() 377 struct eth_hdr *new_eth; in decap_v6() local 385 new_eth->eth_proto = 8; in decap_v6() 387 new_eth->eth_proto = 56710; in decap_v6() 398 struct eth_hdr *new_eth; in decap_v4() local [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/accel/ |
A D | accel.h | 24 struct ethhdr *new_eth; in remove_metadata_hdr() local 28 new_eth = (struct ethhdr *)(skb->data + MLX5E_METADATA_ETHER_LEN); in remove_metadata_hdr() 29 memmove(new_eth, old_eth, 2 * ETH_ALEN); in remove_metadata_hdr()
|
Completed in 9 milliseconds