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.c84 __u16 l2_proto, __u16 ext_proto) in set_ipv4_csum()
148 switch (l2_proto) { in __encap_ipv4()
168 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv4()
190 switch (l2_proto) { in __encap_ipv4()
245 __u16 l2_proto) in __encap_ipv4()
247 return __encap_ipv4(skb, encap_proto, l2_proto, 0); in __encap_ipv4()
251 __u16 l2_proto, __u16 ext_proto) in __encap_ipv4()
279 switch (l2_proto) { in __encap_ipv6()
299 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv6()
320 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.c4030 int hlen, __be16 l2_proto, int *nhoff, int *ip_proto, bool l34) in bond_flow_ip() argument
4035 if (l2_proto == htons(ETH_P_IP)) { in bond_flow_ip()
4045 } else if (l2_proto == htons(ETH_P_IPV6)) { in bond_flow_ip()
4090 __be16 l2_proto, int nhoff, int hlen, struct flow_keys *fk) in bond_flow_dissect() argument
4101 l2_proto, nhoff, hlen, 0); in bond_flow_dissect()
4108 if (!bond_flow_ip(skb, fk, data, hlen, l2_proto, &nhoff, &ip_proto, l34)) in bond_flow_dissect()
4129 return bond_flow_ip(skb, fk, data, hlen, l2_proto, &nhoff, &ip_proto, l34); in bond_flow_dissect()
4155 __be16 l2_proto, int mhoff, int nhoff, int hlen) in __bond_xmit_hash() argument
4164 !bond_flow_dissect(bond, skb, data, l2_proto, nhoff, hlen, &flow)) in __bond_xmit_hash()