| 3609 | } |
| 3610 | |
| 3611 | static int |
| 3612 | vxlan_modevent(module_t mod, int type, void *unused) |
| 3613 | { |
| 3614 | int error; |
| 3615 | |
| 3616 | error = 0; |
| 3617 | |
| 3618 | switch (type) { |
| 3619 | case MOD_LOAD: |
| 3620 | vxlan_load(); |
| 3621 | break; |
| 3622 | case MOD_UNLOAD: |
| 3623 | vxlan_unload(); |
| 3624 | break; |
| 3625 | default: |
| 3626 | error = ENOTSUP; |
| 3627 | break; |
| 3628 | } |
| 3629 | |
| 3630 | return (error); |
| 3631 | } |
| 3632 | |
| 3633 | static moduledata_t vxlan_mod = { |
| 3634 | "if_vxlan", |
nothing calls this directly
no test coverage detected