opnsense-src/sys/dev/ixgbe
Kevin Bowling c9ebaf98e9 ixgbe: Correct Wake-on-LAN configuration
Wake-on-LAN capability was inferred from NVM bits on every MAC even
though 82599 support is board and sometimes port specific.  Private
sysctls formed a second policy interface, and the driver neither
coordinated the controller wake source with PCI PME nor reliably
rebuilt address filters erased by the stop-time reset.

Use the standard ifconfig wake capabilities.  Derive support from the
82599 board and port matrix or the X540-and-newer NVM capability.
Require D3hot PME support, and use the NVM APME bit only to select the
initial magic-packet policy after initializing the LAN function number.

Snapshot requested filters before the terminal stop so shared reset and
PHY code sees the active wake policy.  After reset, restore RAR0, the
multicast table, receive filtering, and the optical laser before arming
WUFC, WUC, and PCI PME.  Remove device wake sources before clearing PCI
PME on detach, resume, and when wake is disabled.  Clear autonomous APM
so ifconfig remains authoritative.

Treat X550EM low-power-link-up failure as best effort and allow shutdown
to continue after a wake-programming error.

The 82599, X540, X550, and E610 datasheets document the standard ACPI
wake filters used here; the E610 ACPI path includes magic-packet wake.

Validated on a dual-port E610.  Both ports completed three direct-D3
cycles covering wake disabled and magic-packet wake armed.  A system S3
cycle woke through ix0 with WUS 0x00000002 (magic packet).  Link and
traffic recovered after each transition.

Note that many add-in cards in this family do not support WoL; LOM and
OCP cards are more likely.  The E610 as tested does.

Sponsored by:	Dirk-Willem van Gulik from Web Weaving (E610 hardware)
Sponsored by:	BBOX.io

(cherry picked from commit c004384343bece0b984cfe3520ec077ef2483e1f)
2026-09-23 08:48:03 +02:00
..
if_bypass.c
if_fdir.c
if_ix.c ixgbe: Correct Wake-on-LAN configuration 2026-09-23 08:48:03 +02:00
if_ixv.c ixgbe: Correct Wake-on-LAN configuration 2026-09-23 08:48:03 +02:00
if_sriov.c ixgbe: Enable SR-IOV on E610 PFs 2026-09-11 10:47:28 +02:00
ix_txrx.c ixgbe: Preserve priority-tagged traffic with SR-IOV 2026-09-11 10:47:24 +02:00
ixgbe.h ixgbe: Correct Wake-on-LAN configuration 2026-09-23 08:48:03 +02:00
ixgbe_82598.c ixgbe: Use unsigned register bitmap shifts 2026-09-11 10:47:27 +02:00
ixgbe_82598.h
ixgbe_82599.c ixgbe: Add 10GBase-BX BiDi SFP+ module support 2026-09-11 10:47:27 +02:00
ixgbe_82599.h
ixgbe_api.c ixgbe: dispatch PBA string reads through EEPROM ops 2026-09-11 10:47:23 +02:00
ixgbe_api.h ixgbe: isolate VF reset state 2026-09-11 10:47:22 +02:00
ixgbe_bypass.h
ixgbe_common.c ixgbe: Use unsigned register bitmap shifts 2026-09-11 10:47:27 +02:00
ixgbe_common.h
ixgbe_dcb.c
ixgbe_dcb.h
ixgbe_dcb_82598.c
ixgbe_dcb_82598.h
ixgbe_dcb_82599.c
ixgbe_dcb_82599.h
ixgbe_e610.c ix(4): Remove workaround for 2.5/5G speeds on E610 2026-09-11 10:47:29 +02:00
ixgbe_e610.h ix(4): Add support for firmware logging for E610 adapters 2026-04-21 22:22:50 +02:00
ixgbe_fdir.h
ixgbe_features.h ix(4): Add support for firmware logging for E610 adapters 2026-04-21 22:22:50 +02:00
ixgbe_fw_logging.c ix(4): Add support for firmware logging for E610 adapters 2026-04-21 22:22:50 +02:00
ixgbe_mbx.c ixgbe: Enable SR-IOV on E610 PFs 2026-09-11 10:47:28 +02:00
ixgbe_mbx.h ixgbe: Add missing mailbox API 1.6 definition 2026-09-11 10:47:29 +02:00
ixgbe_osdep.c ix(4): Add support for firmware logging for E610 adapters 2026-04-21 22:22:50 +02:00
ixgbe_osdep.h ix(4): Add support for firmware logging for E610 adapters 2026-04-21 22:22:50 +02:00
ixgbe_phy.c ixgbe: Avoid a signed shift while assembling the PHY ID 2026-09-11 10:47:27 +02:00
ixgbe_phy.h ixgbe: Add 10GBase-BX BiDi SFP+ module support 2026-09-11 10:47:27 +02:00
ixgbe_rss.h
ixgbe_sriov.h ixgbe: Enable SR-IOV on E610 PFs 2026-09-11 10:47:28 +02:00
ixgbe_type.h ixgbe: Defer ECC recovery to iflib 2026-09-11 10:47:28 +02:00
ixgbe_type_e610.h ix(4): Add EEE support for E610 adapters 2026-03-27 12:43:22 +01:00
ixgbe_vf.c ixv: Support E610 mailbox API 1.6 2026-09-11 10:47:28 +02:00
ixgbe_vf.h ixv: Preserve statistics across resets 2026-09-11 10:47:28 +02:00
ixgbe_x540.c
ixgbe_x540.h
ixgbe_x550.c ixgbe: Add 10GBase-BX BiDi SFP+ module support 2026-09-11 10:47:27 +02:00
ixgbe_x550.h