new_eth 25 drivers/net/ethernet/mellanox/mlx5/core/accel/accel.h struct ethhdr *new_eth; new_eth 29 drivers/net/ethernet/mellanox/mlx5/core/accel/accel.h new_eth = (struct ethhdr *)(skb->data + MLX5E_METADATA_ETHER_LEN); new_eth 30 drivers/net/ethernet/mellanox/mlx5/core/accel/accel.h memmove(new_eth, old_eth, 2 * ETH_ALEN); new_eth 67 samples/bpf/xdp_tx_iptunnel_kern.c static __always_inline void set_ethhdr(struct ethhdr *new_eth, new_eth 72 samples/bpf/xdp_tx_iptunnel_kern.c memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); new_eth 73 samples/bpf/xdp_tx_iptunnel_kern.c memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); new_eth 74 samples/bpf/xdp_tx_iptunnel_kern.c new_eth->h_proto = h_proto; new_eth 82 samples/bpf/xdp_tx_iptunnel_kern.c struct ethhdr *new_eth; new_eth 118 samples/bpf/xdp_tx_iptunnel_kern.c new_eth = data; new_eth 119 samples/bpf/xdp_tx_iptunnel_kern.c iph = data + sizeof(*new_eth); new_eth 122 samples/bpf/xdp_tx_iptunnel_kern.c if (new_eth + 1 > data_end || new_eth 127 samples/bpf/xdp_tx_iptunnel_kern.c set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IP)); new_eth 157 samples/bpf/xdp_tx_iptunnel_kern.c struct ethhdr *new_eth; new_eth 190 samples/bpf/xdp_tx_iptunnel_kern.c new_eth = data; new_eth 191 samples/bpf/xdp_tx_iptunnel_kern.c ip6h = data + sizeof(*new_eth); new_eth 194 samples/bpf/xdp_tx_iptunnel_kern.c if (new_eth + 1 > data_end || new_eth 199 samples/bpf/xdp_tx_iptunnel_kern.c set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IPV6)); new_eth 70 tools/testing/selftests/bpf/progs/test_xdp.c static __always_inline void set_ethhdr(struct ethhdr *new_eth, new_eth 75 tools/testing/selftests/bpf/progs/test_xdp.c memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); new_eth 76 tools/testing/selftests/bpf/progs/test_xdp.c memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); new_eth 77 tools/testing/selftests/bpf/progs/test_xdp.c new_eth->h_proto = h_proto; new_eth 85 tools/testing/selftests/bpf/progs/test_xdp.c struct ethhdr *new_eth; new_eth 119 tools/testing/selftests/bpf/progs/test_xdp.c new_eth = data; new_eth 120 tools/testing/selftests/bpf/progs/test_xdp.c iph = data + sizeof(*new_eth); new_eth 123 tools/testing/selftests/bpf/progs/test_xdp.c if (new_eth + 1 > data_end || new_eth 128 tools/testing/selftests/bpf/progs/test_xdp.c set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); new_eth 158 tools/testing/selftests/bpf/progs/test_xdp.c struct ethhdr *new_eth; new_eth 189 tools/testing/selftests/bpf/progs/test_xdp.c new_eth = data; new_eth 190 tools/testing/selftests/bpf/progs/test_xdp.c ip6h = data + sizeof(*new_eth); new_eth 193 tools/testing/selftests/bpf/progs/test_xdp.c if (new_eth + 1 > data_end || old_eth + 1 > data_end || new_eth 197 tools/testing/selftests/bpf/progs/test_xdp.c set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); new_eth 66 tools/testing/selftests/bpf/progs/test_xdp_loop.c static __always_inline void set_ethhdr(struct ethhdr *new_eth, new_eth 71 tools/testing/selftests/bpf/progs/test_xdp_loop.c memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); new_eth 72 tools/testing/selftests/bpf/progs/test_xdp_loop.c memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); new_eth 73 tools/testing/selftests/bpf/progs/test_xdp_loop.c new_eth->h_proto = h_proto; new_eth 81 tools/testing/selftests/bpf/progs/test_xdp_loop.c struct ethhdr *new_eth; new_eth 115 tools/testing/selftests/bpf/progs/test_xdp_loop.c new_eth = data; new_eth 116 tools/testing/selftests/bpf/progs/test_xdp_loop.c iph = data + sizeof(*new_eth); new_eth 119 tools/testing/selftests/bpf/progs/test_xdp_loop.c if (new_eth + 1 > data_end || new_eth 124 tools/testing/selftests/bpf/progs/test_xdp_loop.c set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); new_eth 154 tools/testing/selftests/bpf/progs/test_xdp_loop.c struct ethhdr *new_eth; new_eth 185 tools/testing/selftests/bpf/progs/test_xdp_loop.c new_eth = data; new_eth 186 tools/testing/selftests/bpf/progs/test_xdp_loop.c ip6h = data + sizeof(*new_eth); new_eth 189 tools/testing/selftests/bpf/progs/test_xdp_loop.c if (new_eth + 1 > data_end || old_eth + 1 > data_end || new_eth 193 tools/testing/selftests/bpf/progs/test_xdp_loop.c set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); new_eth 282 tools/testing/selftests/bpf/progs/test_xdp_noinline.c struct eth_hdr *new_eth; new_eth 293 tools/testing/selftests/bpf/progs/test_xdp_noinline.c new_eth = data; new_eth 296 tools/testing/selftests/bpf/progs/test_xdp_noinline.c if (new_eth + 1 > data_end || new_eth 299 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(new_eth->eth_dest, cval->mac, 6); new_eth 300 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(new_eth->eth_source, old_eth->eth_dest, 6); new_eth 301 tools/testing/selftests/bpf/progs/test_xdp_noinline.c new_eth->eth_proto = 56710; new_eth 327 tools/testing/selftests/bpf/progs/test_xdp_noinline.c struct eth_hdr *new_eth; new_eth 341 tools/testing/selftests/bpf/progs/test_xdp_noinline.c new_eth = data; new_eth 344 tools/testing/selftests/bpf/progs/test_xdp_noinline.c if (new_eth + 1 > data_end || new_eth 347 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(new_eth->eth_dest, cval->mac, 6); new_eth 348 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(new_eth->eth_source, old_eth->eth_dest, 6); new_eth 349 tools/testing/selftests/bpf/progs/test_xdp_noinline.c new_eth->eth_proto = 8; new_eth 377 tools/testing/selftests/bpf/progs/test_xdp_noinline.c struct eth_hdr *new_eth; new_eth 381 tools/testing/selftests/bpf/progs/test_xdp_noinline.c new_eth = *data + sizeof(struct ipv6hdr); new_eth 382 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(new_eth->eth_source, old_eth->eth_source, 6); new_eth 383 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(new_eth->eth_dest, old_eth->eth_dest, 6); new_eth 385 tools/testing/selftests/bpf/progs/test_xdp_noinline.c new_eth->eth_proto = 8; new_eth 387 tools/testing/selftests/bpf/progs/test_xdp_noinline.c new_eth->eth_proto = 56710; new_eth 398 tools/testing/selftests/bpf/progs/test_xdp_noinline.c struct eth_hdr *new_eth; new_eth 402 tools/testing/selftests/bpf/progs/test_xdp_noinline.c new_eth = *data + sizeof(struct iphdr); new_eth 403 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(new_eth->eth_source, old_eth->eth_source, 6); new_eth 404 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(new_eth->eth_dest, old_eth->eth_dest, 6); new_eth 405 tools/testing/selftests/bpf/progs/test_xdp_noinline.c new_eth->eth_proto = 8;