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

Function vxlan_ftable_fini

freebsd/net/if_vxlan.c:571–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571static void
572vxlan_ftable_fini(struct vxlan_softc *sc)
573{
574 int i;
575
576 for (i = 0; i < VXLAN_SC_FTABLE_SIZE; i++) {
577 KASSERT(LIST_EMPTY(&sc->vxl_ftable[i]),
578 ("%s: vxlan %p ftable[%d] not empty", __func__, sc, i));
579 }
580 MPASS(sc->vxl_ftable_cnt == 0);
581
582 free(sc->vxl_ftable, M_VXLAN);
583 sc->vxl_ftable = NULL;
584}
585
586static void
587vxlan_ftable_flush(struct vxlan_softc *sc, int all)

Callers 1

vxlan_clone_destroyFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by

no test coverage detected