| 5331 | } |
| 5332 | |
| 5333 | int |
| 5334 | iflib_device_resume(device_t dev) |
| 5335 | { |
| 5336 | if_ctx_t ctx = device_get_softc(dev); |
| 5337 | iflib_txq_t txq = ctx->ifc_txqs; |
| 5338 | |
| 5339 | CTX_LOCK(ctx); |
| 5340 | IFDI_RESUME(ctx); |
| 5341 | iflib_if_init_locked(ctx); |
| 5342 | CTX_UNLOCK(ctx); |
| 5343 | for (int i = 0; i < NTXQSETS(ctx); i++, txq++) |
| 5344 | iflib_txq_check_drain(txq, IFLIB_RESTART_BUDGET); |
| 5345 | |
| 5346 | return (bus_generic_resume(dev)); |
| 5347 | } |
| 5348 | |
| 5349 | int |
| 5350 | iflib_device_iov_init(device_t dev, uint16_t num_vfs, const nvlist_t *params) |
nothing calls this directly
no test coverage detected