MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vxlan_clone_destroy

Function vxlan_clone_destroy

freebsd/net/if_vxlan.c:3222–3243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3220}
3221
3222static void
3223vxlan_clone_destroy(struct ifnet *ifp)
3224{
3225 struct vxlan_softc *sc;
3226
3227 sc = ifp->if_softc;
3228
3229 vxlan_teardown(sc);
3230
3231 vxlan_ftable_flush(sc, 1);
3232
3233 ether_ifdetach(ifp);
3234 if_free(ifp);
3235 ifmedia_removeall(&sc->vxl_media);
3236
3237 vxlan_ftable_fini(sc);
3238
3239 vxlan_sysctl_destroy(sc);
3240 rm_destroy(&sc->vxl_lock);
3241 vxlan_stats_free(sc);
3242 free(sc, M_VXLAN);
3243}
3244
3245/* BMV: Taken from if_bridge. */
3246static uint32_t

Callers

nothing calls this directly

Calls 10

vxlan_teardownFunction · 0.85
vxlan_ftable_flushFunction · 0.85
ether_ifdetachFunction · 0.85
if_freeFunction · 0.85
ifmedia_removeallFunction · 0.85
vxlan_ftable_finiFunction · 0.85
vxlan_sysctl_destroyFunction · 0.85
vxlan_stats_freeFunction · 0.85
rm_destroyFunction · 0.50
freeFunction · 0.50

Tested by

no test coverage detected