Searched refs:parse_eth_proto (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/samples/bpf/ |
H A D | sockex3_kern.c | 40 static inline void parse_eth_proto(struct __sk_buff *skb, u32 proto); 136 parse_eth_proto(skb, gre_proto); in parse_ip_proto() 140 parse_eth_proto(skb, ETH_P_IP); in parse_ip_proto() 143 parse_eth_proto(skb, ETH_P_IPV6); in parse_ip_proto() 222 parse_eth_proto(skb, proto); in bpf_func_vlan() 241 parse_eth_proto(skb, ETH_P_IP); in bpf_func_mpls() 243 parse_eth_proto(skb, ETH_P_IPV6); in bpf_func_mpls() 245 parse_eth_proto(skb, ETH_P_MPLS_UC); in bpf_func_mpls() 273 static inline void parse_eth_proto(struct __sk_buff *skb, u32 proto) in parse_eth_proto() function 300 parse_eth_proto(skb, proto); in main_prog()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_flow.c | 116 static __always_inline int parse_eth_proto(struct __sk_buff *skb, __be16 proto) in parse_eth_proto() function 161 return parse_eth_proto(skb, keys->n_proto); in _dissect() 186 return parse_eth_proto(skb, bpf_htons(ETH_P_IP)); in parse_ip_proto() 192 return parse_eth_proto(skb, bpf_htons(ETH_P_IPV6)); in parse_ip_proto() 222 return parse_eth_proto(skb, eth->h_proto); in parse_ip_proto() 224 return parse_eth_proto(skb, gre->proto); in parse_ip_proto() 434 return parse_eth_proto(skb, vlan->h_vlan_encapsulated_proto); in PROG()
|