Home
last modified time | relevance | path

Searched refs:vni_field (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/include/net/
Dvxlan.h405 static inline __be32 vxlan_vni(__be32 vni_field) in vxlan_vni() argument
408 return (__force __be32)((__force u32)vni_field >> 8); in vxlan_vni()
410 return (__force __be32)((__force u32)(vni_field & VXLAN_VNI_MASK) << 8); in vxlan_vni()
423 static inline size_t vxlan_rco_start(__be32 vni_field) in vxlan_rco_start() argument
425 return be32_to_cpu(vni_field & VXLAN_RCO_MASK) << VXLAN_RCO_SHIFT; in vxlan_rco_start()
428 static inline size_t vxlan_rco_offset(__be32 vni_field) in vxlan_rco_offset() argument
430 return (vni_field & VXLAN_RCO_UDP) ? in vxlan_rco_offset()
437 __be32 vni_field = cpu_to_be32(start >> VXLAN_RCO_SHIFT); in vxlan_compute_rco() local
440 vni_field |= VXLAN_RCO_UDP; in vxlan_compute_rco()
441 return vni_field; in vxlan_compute_rco()
/linux-6.12.1/drivers/net/vxlan/
Dvxlan_core.c654 __be32 vni_field, in vxlan_gro_remcsum() argument
666 start = vxlan_rco_start(vni_field); in vxlan_gro_remcsum()
667 offset = start + vxlan_rco_offset(vni_field); in vxlan_gro_remcsum()