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.c106 __u16 l2_proto, __u16 ext_proto) in __encap_ipv4() argument
170 switch (l2_proto) { in __encap_ipv4()
190 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv4()
212 switch (l2_proto) { in __encap_ipv4()
267 __u16 l2_proto) in encap_ipv4() argument
269 return __encap_ipv4(skb, encap_proto, l2_proto, 0); in encap_ipv4()
273 __u16 l2_proto, __u16 ext_proto) in __encap_ipv6() argument
301 switch (l2_proto) { in __encap_ipv6()
321 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv6()
342 switch (l2_proto) { in __encap_ipv6()
[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.c4129 int hlen, __be16 l2_proto, int *nhoff, int *ip_proto, bool l34) in bond_flow_ip() argument
4134 if (l2_proto == htons(ETH_P_IP)) { in bond_flow_ip()
4144 } else if (l2_proto == htons(ETH_P_IPV6)) { in bond_flow_ip()
4189 __be16 l2_proto, int nhoff, int hlen, struct flow_keys *fk) in bond_flow_dissect() argument
4200 l2_proto, nhoff, hlen, 0); in bond_flow_dissect()
4207 if (!bond_flow_ip(skb, fk, data, hlen, l2_proto, &nhoff, &ip_proto, l34)) in bond_flow_dissect()
4228 return bond_flow_ip(skb, fk, data, hlen, l2_proto, &nhoff, &ip_proto, l34); in bond_flow_dissect()
4254 __be16 l2_proto, int mhoff, int nhoff, int hlen) in __bond_xmit_hash() argument
4263 !bond_flow_dissect(bond, skb, data, l2_proto, nhoff, hlen, &flow)) in __bond_xmit_hash()