Lines Matching refs:l2_len
101 int olen, l2_len; in __encap_ipv4() local
156 l2_len = 0; in __encap_ipv4()
162 l2_len = sizeof(mpls_label); in __encap_ipv4()
166 l2_len = ETH_HLEN; in __encap_ipv4()
169 l2_len += sizeof(struct vxlanhdr); in __encap_ipv4()
174 flags |= BPF_F_ADJ_ROOM_ENCAP_L2(l2_len); in __encap_ipv4()
191 l2_len); in __encap_ipv4()
223 olen += l2_len; in __encap_ipv4()
269 int olen, l2_len; in __encap_ipv6() local
287 l2_len = 0; in __encap_ipv6()
293 l2_len = sizeof(mpls_label); in __encap_ipv6()
297 l2_len = ETH_HLEN; in __encap_ipv6()
300 l2_len += sizeof(struct vxlanhdr); in __encap_ipv6()
305 flags |= BPF_F_ADJ_ROOM_ENCAP_L2(l2_len); in __encap_ipv6()
320 sizeof(h_outer.l4hdr.udp) + l2_len; in __encap_ipv6()
352 olen += l2_len; in __encap_ipv6()