Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c89 __u16 l2_proto, __u16 ext_proto) in set_ipv4_csum()
153 switch (l2_proto) { in __encap_ipv4()
173 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv4()
195 switch (l2_proto) { in __encap_ipv4()
250 __u16 l2_proto) in __encap_ipv4()
252 return __encap_ipv4(skb, encap_proto, l2_proto, 0); in __encap_ipv4()
256 __u16 l2_proto, __u16 ext_proto) in encap_ipv4()
284 switch (l2_proto) { in __encap_ipv6()
304 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv6()
325 switch (l2_proto) { in __encap_ipv6()
95 __encap_ipv4(struct __sk_buff * skb,__u8 encap_proto,__u16 l2_proto,__u16 ext_proto) __encap_ipv4() argument
257 encap_ipv4(struct __sk_buff * skb,__u8 encap_proto,__u16 l2_proto) encap_ipv4() argument
263 __encap_ipv6(struct __sk_buff * skb,__u8 encap_proto,__u16 l2_proto,__u16 ext_proto) __encap_ipv6() argument
429 encap_ipv6(struct __sk_buff * skb,__u8 encap_proto,__u16 l2_proto) encap_ipv6() argument
[all...]
/linux/include/uapi/linux/
H A Datmsap.h105 unsigned char l2_proto; /* layer 2 protocol */ member
160 return blli.l2_proto || blli.l3_proto; in blli_in_use()
/linux/drivers/net/bonding/
H A Dbond_main.c4115 int hlen, __be16 l2_proto, int *nhoff, int *ip_proto, bool l34) in bond_flow_ip() argument
4120 if (l2_proto == htons(ETH_P_IP)) { in bond_flow_ip()
4130 } else if (l2_proto == htons(ETH_P_IPV6)) { in bond_flow_ip()
4175 __be16 l2_proto, int nhoff, int hlen, struct flow_keys *fk) in bond_flow_dissect() argument
4186 l2_proto, nhoff, hlen, 0); in bond_flow_dissect()
4193 if (!bond_flow_ip(skb, fk, data, hlen, l2_proto, &nhoff, &ip_proto, l34)) in bond_flow_dissect()
4214 return bond_flow_ip(skb, fk, data, hlen, l2_proto, &nhoff, &ip_proto, l34); in bond_flow_dissect()
4240 __be16 l2_proto, int mhoff, int nhoff, int hlen) in __bond_xmit_hash() argument
4249 !bond_flow_dissect(bond, skb, data, l2_proto, nhoff, hlen, &flow)) in __bond_xmit_hash()