git: d2231e4d0daa - stable/15 - ixl: Route suspend and resume through iflib

From: Kevin Bowling <kbowling_at_FreeBSD.org>
Date: Fri, 18 Sep 2026 00:10:48 UTC
The branch stable/15 has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=d2231e4d0daafa1f38a7fe4d9515e755f914cc9f

commit d2231e4d0daafa1f38a7fe4d9515e755f914cc9f
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2026-09-03 03:32:14 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-09-18 00:10:39 +0000

    ixl: Route suspend and resume through iflib
    
    Register the iflib device suspend and resume methods.  Remove the
    direct initialization from the driver resume callback because
    iflib_device_resume() performs the datapath restart after the callback
    returns.
    
    Sponsored by:   BBOX.io
    
    (cherry picked from commit d5aa8022da56c5188e9f2c7068d95009ff2019be)
---
 sys/dev/ixl/if_ixl.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/sys/dev/ixl/if_ixl.c b/sys/dev/ixl/if_ixl.c
index 21b510189e65..241c2f509af0 100644
--- a/sys/dev/ixl/if_ixl.c
+++ b/sys/dev/ixl/if_ixl.c
@@ -144,6 +144,8 @@ static device_method_t ixl_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),
 #ifdef PCI_IOV
 	DEVMETHOD(pci_iov_init, iflib_device_iov_init),
 	DEVMETHOD(pci_iov_uninit, iflib_device_iov_uninit),
@@ -941,16 +943,10 @@ ixl_if_suspend(if_ctx_t ctx)
 static int
 ixl_if_resume(if_ctx_t ctx)
 {
-	if_t ifp = iflib_get_ifp(ctx);
-
 	INIT_DEBUGOUT("ixl_if_resume: begin");
 
 	/* Read & clear wake-up registers */
 
-	/* Required after D3->D0 transition */
-	if (if_getflags(ifp) & IFF_UP)
-		ixl_if_init(ctx);
-
 	return (0);
 }