| 556 | } |
| 557 | |
| 558 | static void |
| 559 | vxlan_ftable_init(struct vxlan_softc *sc) |
| 560 | { |
| 561 | int i; |
| 562 | |
| 563 | sc->vxl_ftable = malloc(sizeof(struct vxlan_ftable_head) * |
| 564 | VXLAN_SC_FTABLE_SIZE, M_VXLAN, M_ZERO | M_WAITOK); |
| 565 | |
| 566 | for (i = 0; i < VXLAN_SC_FTABLE_SIZE; i++) |
| 567 | LIST_INIT(&sc->vxl_ftable[i]); |
| 568 | sc->vxl_ftable_hash_key = arc4random(); |
| 569 | } |
| 570 | |
| 571 | static void |
| 572 | vxlan_ftable_fini(struct vxlan_softc *sc) |
no test coverage detected