Searched refs:new_eth (Results 1 - 6 of 6) sorted by relevance

/linux-master/samples/bpf/
H A Dxdp_tx_iptunnel_kern.c67 static __always_inline void set_ethhdr(struct ethhdr *new_eth, argument
72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source));
73 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest));
74 new_eth->h_proto = h_proto;
82 struct ethhdr *new_eth; local
118 new_eth = data;
119 iph = data + sizeof(*new_eth);
122 if (new_eth
157 struct ethhdr *new_eth; local
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_xdp.c69 static __always_inline void set_ethhdr(struct ethhdr *new_eth, argument
74 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source));
75 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest));
76 new_eth->h_proto = h_proto;
84 struct ethhdr *new_eth; local
118 new_eth = data;
119 iph = data + sizeof(*new_eth);
122 if (new_eth
157 struct ethhdr *new_eth; local
[all...]
H A Dtest_xdp_loop.c65 static __always_inline void set_ethhdr(struct ethhdr *new_eth, argument
70 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source));
71 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest));
72 new_eth->h_proto = h_proto;
80 struct ethhdr *new_eth; local
114 new_eth = data;
115 iph = data + sizeof(*new_eth);
118 if (new_eth
153 struct ethhdr *new_eth; local
[all...]
H A Dtest_xdp_dynptr.c67 static __always_inline void set_ethhdr(struct ethhdr *new_eth, argument
72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source));
73 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest));
74 new_eth->h_proto = h_proto;
84 struct ethhdr *new_eth; local
125 new_eth = bpf_dynptr_slice_rdwr(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer));
126 if (!new_eth)
129 iph = (struct iphdr *)(new_eth
166 struct ethhdr *new_eth; local
[all...]
H A Dtest_xdp_noinline.c283 struct eth_hdr *new_eth; local
294 new_eth = data;
297 if (new_eth + 1 > data_end ||
300 memcpy(new_eth->eth_dest, cval->mac, 6);
301 memcpy(new_eth->eth_source, old_eth->eth_dest, 6);
302 new_eth->eth_proto = 56710;
328 struct eth_hdr *new_eth; local
342 new_eth = data;
345 if (new_eth + 1 > data_end ||
348 memcpy(new_eth
[all...]
/linux-master/tools/testing/selftests/net/
H A Dnat6to4.c139 struct ethhdr *new_eth = data; local
142 *new_eth = eth2;
145 *(struct iphdr *)(new_eth + 1) = ip;
276 struct ethhdr *new_eth = data; local
279 *new_eth = eth2;
281 *(struct ipv6hdr *)(new_eth + 1) = ip6;

Completed in 123 milliseconds