Home
last modified time | relevance | path

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

/linux/samples/bpf/
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/
A Dtest_xdp.c68 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() function
126 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
195 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); in handle_ipv6()
A Dtest_xdp_loop.c64 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() function
122 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
191 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); in handle_ipv6()

Completed in 4 milliseconds