git: b8fe6d7055b3 - main - iavf: Wire iflib suspend and resume methods
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 03 Sep 2026 03:36:27 UTC
The branch main has been updated by kbowling:
URL: https://cgit.FreeBSD.org/src/commit/?id=b8fe6d7055b3a274cd646d0a6b5d3928f2fd7d7a
commit b8fe6d7055b3a274cd646d0a6b5d3928f2fd7d7a
Author: Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2026-09-03 03:32:14 +0000
Commit: Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-09-03 03:35:56 +0000
iavf: Wire iflib suspend and resume methods
Register the iflib device suspend and resume methods so the existing
driver callbacks run during system power transitions. This stops
mailbox retry work before suspend and lets iflib reinitialize the
datapath after resume.
MFC after: 2 weeks
Sponsored by: BBOX.io
---
sys/dev/iavf/if_iavf_iflib.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/dev/iavf/if_iavf_iflib.c b/sys/dev/iavf/if_iavf_iflib.c
index c9fed8493103..aba31d05ee1d 100644
--- a/sys/dev/iavf/if_iavf_iflib.c
+++ b/sys/dev/iavf/if_iavf_iflib.c
@@ -141,6 +141,8 @@ static device_method_t iavf_methods[] = {
DEVMETHOD(device_attach, iflib_device_attach),
DEVMETHOD(device_detach, iflib_device_detach),
DEVMETHOD(device_shutdown, iflib_device_shutdown),
+ DEVMETHOD(device_suspend, iflib_device_suspend),
+ DEVMETHOD(device_resume, iflib_device_resume),
DEVMETHOD_END
};