| 5542 | } |
| 5543 | |
| 5544 | static void |
| 5545 | iflib_unregister_vlan_handlers(if_ctx_t ctx) |
| 5546 | { |
| 5547 | /* Unregister VLAN events */ |
| 5548 | if (ctx->ifc_vlan_attach_event != NULL) { |
| 5549 | EVENTHANDLER_DEREGISTER(vlan_config, ctx->ifc_vlan_attach_event); |
| 5550 | ctx->ifc_vlan_attach_event = NULL; |
| 5551 | } |
| 5552 | if (ctx->ifc_vlan_detach_event != NULL) { |
| 5553 | EVENTHANDLER_DEREGISTER(vlan_unconfig, ctx->ifc_vlan_detach_event); |
| 5554 | ctx->ifc_vlan_detach_event = NULL; |
| 5555 | } |
| 5556 | |
| 5557 | } |
| 5558 | |
| 5559 | static void |
| 5560 | iflib_deregister(if_ctx_t ctx) |
no outgoing calls
no test coverage detected