Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_vxlan.c
Show First 20 Lines • Show All 2,818 Lines • ▼ Show 20 Lines | vxlan_input(struct vxlan_socket *vso, uint32_t vni, struct mbuf **m0, | ||||
} | } | ||||
if (sc->vxl_flags & VXLAN_FLAG_LEARN) | if (sc->vxl_flags & VXLAN_FLAG_LEARN) | ||||
vxlan_ftable_learn(sc, sa, eh->ether_shost); | vxlan_ftable_learn(sc, sa, eh->ether_shost); | ||||
m_clrprotoflags(m); | m_clrprotoflags(m); | ||||
m->m_pkthdr.rcvif = ifp; | m->m_pkthdr.rcvif = ifp; | ||||
M_SETFIB(m, ifp->if_fib); | M_SETFIB(m, ifp->if_fib); | ||||
if (m->m_pkthdr.csum_flags & CSUM_ENCAP_VXLAN && | if (((ifp->if_capenable & IFCAP_RXCSUM && | ||||
((ifp->if_capenable & IFCAP_RXCSUM && | |||||
m->m_pkthdr.csum_flags & CSUM_INNER_L3_CALC) || | m->m_pkthdr.csum_flags & CSUM_INNER_L3_CALC) || | ||||
(ifp->if_capenable & IFCAP_RXCSUM_IPV6 && | (ifp->if_capenable & IFCAP_RXCSUM_IPV6 && | ||||
!(m->m_pkthdr.csum_flags & CSUM_INNER_L3_CALC)))) { | !(m->m_pkthdr.csum_flags & CSUM_INNER_L3_CALC)))) { | ||||
uint32_t csum_flags = 0; | uint32_t csum_flags = 0; | ||||
if (m->m_pkthdr.csum_flags & CSUM_INNER_L3_CALC) | if (m->m_pkthdr.csum_flags & CSUM_INNER_L3_CALC) | ||||
csum_flags |= CSUM_L3_CALC; | csum_flags |= CSUM_L3_CALC; | ||||
if (m->m_pkthdr.csum_flags & CSUM_INNER_L3_VALID) | if (m->m_pkthdr.csum_flags & CSUM_INNER_L3_VALID) | ||||
▲ Show 20 Lines • Show All 805 Lines • Show Last 20 Lines |