Home
last modified time | relevance | path

Searched refs:set_ethhdr (Results 1 – 4 of 4) sorted by relevance

/linux/samples/bpf/
H A Dxdp_tx_iptunnel_kern.c67 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() function
127 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IP)); in handle_ipv4()
199 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IPV6)); in handle_ipv6()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_xdp.c69 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() function
127 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
196 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); in handle_ipv6()
H A Dtest_xdp_loop.c65 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() function
123 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
192 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); in handle_ipv6()
H A Dtest_xdp_dynptr.c67 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() function
132 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
211 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); in handle_ipv6()