mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
iflibdd(9): Clarify resume during suspend rollback
The resume callback also runs when suspend fails, without an intervening PCI power-state transition or configuration-space restore. Document that drivers must not assume either has occurred. MFC after: 2 weeks Sponsored by: BBOX.io
This commit is contained in:
1 parent
45dc4a1365
commit
f496cd95cf
1 file changed
+4
@@ -272,6 +272,10 @@ Shutdown errors are returned without attempting rollback.
|
||||
.It Fn ifdi_resume
|
||||
Optional function that restores suspend-specific device state while the
|
||||
datapath remains stopped.
|
||||
This function is also called to roll back a failed suspend.
|
||||
It must not assume that a PCI power-state transition or configuration-space
|
||||
restore has occurred since
|
||||
.Fn ifdi_suspend .
|
||||
After it succeeds, iflib initializes the datapath exactly once when the
|
||||
interface is administratively up and leaves an administratively-down interface
|
||||
stopped.
|
||||
|
||||
Reference in new issue
Block a user