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

Function vxlan_ftable_expire

freebsd/net/if_vxlan.c:600–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600static void
601vxlan_ftable_expire(struct vxlan_softc *sc)
602{
603 struct vxlan_ftable_entry *fe, *tfe;
604 int i;
605
606 VXLAN_LOCK_WASSERT(sc);
607
608 for (i = 0; i < VXLAN_SC_FTABLE_SIZE; i++) {
609 LIST_FOREACH_SAFE(fe, &sc->vxl_ftable[i], vxlfe_hash, tfe) {
610 if (VXLAN_FE_IS_DYNAMIC(fe) &&
611 time_uptime >= fe->vxlfe_expire)
612 vxlan_ftable_entry_destroy(sc, fe);
613 }
614 }
615}
616
617static int
618vxlan_ftable_update_locked(struct vxlan_softc *sc,

Callers 1

vxlan_timerFunction · 0.85

Calls 1

Tested by

no test coverage detected