| 598 | } |
| 599 | |
| 600 | static void |
| 601 | vxlan_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 | |
| 617 | static int |
| 618 | vxlan_ftable_update_locked(struct vxlan_softc *sc, |
no test coverage detected