Home
last modified time | relevance | path

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

/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c95 __u16 l2_proto, __u16 ext_proto) in __encap_ipv4() argument
160 switch (l2_proto) { in __encap_ipv4()
180 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv4()
202 switch (l2_proto) { in __encap_ipv4()
257 __u16 l2_proto) in encap_ipv4() argument
259 return __encap_ipv4(skb, encap_proto, l2_proto, 0); in encap_ipv4()
263 __u16 l2_proto, __u16 ext_proto) in __encap_ipv6() argument
291 switch (l2_proto) { in __encap_ipv6()
311 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv6()
332 switch (l2_proto) { in __encap_ipv6()
[all …]
/linux-6.15/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-6.15/drivers/net/bonding/
H A Dbond_main.c4190 int hlen, __be16 l2_proto, int *nhoff, int *ip_proto, bool l34) in bond_flow_ip() argument
4195 if (l2_proto == htons(ETH_P_IP)) { in bond_flow_ip()
4205 } else if (l2_proto == htons(ETH_P_IPV6)) { in bond_flow_ip()
4250 __be16 l2_proto, int nhoff, int hlen, struct flow_keys *fk) in bond_flow_dissect() argument
4260 fk, data, l2_proto, nhoff, hlen, 0); in bond_flow_dissect()
4267 if (!bond_flow_ip(skb, fk, data, hlen, l2_proto, &nhoff, &ip_proto, l34)) in bond_flow_dissect()
4288 return bond_flow_ip(skb, fk, data, hlen, l2_proto, &nhoff, &ip_proto, l34); in bond_flow_dissect()
4314 __be16 l2_proto, int mhoff, int nhoff, int hlen) in __bond_xmit_hash() argument
4323 !bond_flow_dissect(bond, skb, data, l2_proto, nhoff, hlen, &flow)) in __bond_xmit_hash()