Searched refs:set_ethhdr (Results 1 – 4 of 4) sorted by relevance
/linux/samples/bpf/ |
H A D | xdp_tx_iptunnel_kern.c | 67 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 D | test_xdp.c | 69 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 D | test_xdp_loop.c | 65 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 D | test_xdp_dynptr.c | 67 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()
|