Page MenuHomeFreeBSD

if_bge: Add support for WOL
AbandonedPublic

Authored by cy on Sep 4 2021, 1:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 11 2025, 3:59 AM
Unknown Object (File)
Nov 29 2025, 10:52 PM
Unknown Object (File)
Nov 26 2025, 1:05 AM
Unknown Object (File)
Nov 17 2025, 4:52 AM
Unknown Object (File)
Nov 10 2025, 8:31 AM
Unknown Object (File)
Nov 3 2025, 1:34 AM
Unknown Object (File)
Nov 2 2025, 5:00 AM
Unknown Object (File)
Oct 30 2025, 2:28 AM

Details

Reviewers
marius
glebius
imp
avg
tychon
kbowling
Group Reviewers
network
Summary

Add WOL support to bge(4).

With this patch if_bge receives WOL support.

Like other NICs in FreeBSD when any of the WOL flags is set the NIC is
set to WOL upon NIC shutdown.

This fixes the following PRs 218579, 171744, 177184, and 184718.

Test Plan

Used by myself over the last five years. Tested by those in the listed PRs.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

cy requested review of this revision.Sep 4 2021, 1:50 PM
cy created this revision.
kbowling added a subscriber: kbowling.

Seems fine to me.

As a separate discussion I wonder about the expected default behavior here over time, there are some tradeoffs to defaulting WOL enabled (which many drivers do via initializing IFCAP as such) versus checking firmware state in various client Ethernet parts.

This revision is now accepted and ready to land.Sep 5 2021, 4:33 PM

Agreed, default WOL should be a policy decision whether all interfaces default to on or off. Personally, it doesn't matter to me however all should be the same.

There is still a problem with this patch. It's not ready for prime time yet.