MCPcopy Create free account
hub / github.com/F-Stack/f-stack / iflib_device_resume

Function iflib_device_resume

freebsd/net/iflib.c:5333–5347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5331}
5332
5333int
5334iflib_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
5349int
5350iflib_device_iov_init(device_t dev, uint16_t num_vfs, const nvlist_t *params)

Callers

nothing calls this directly

Calls 4

device_get_softcFunction · 0.85
iflib_if_init_lockedFunction · 0.85
iflib_txq_check_drainFunction · 0.85
bus_generic_resumeFunction · 0.85

Tested by

no test coverage detected