Page MenuHomeFreeBSD

loader.efi: Retain standalone network configuration
AcceptedPublic

Authored by kgalazka on Thu, Sep 24, 8:48 PM.
Tags
None
Referenced Files
F173296648: D59999.id187630.diff
Fri, Sep 25, 2:20 AM
F173281037: D59999.diff
Thu, Sep 24, 10:53 PM
F173278484: D59999.id187630.diff
Thu, Sep 24, 10:25 PM
F173271429: D59999.diff
Thu, Sep 24, 9:10 PM
Subscribers

Details

Reviewers
imp
manu
Summary

DHCP initmd discovery used net_configure() to open and configure SNP,
then immediately closed the socket and released the protocol.
Selecting net0 as currdev subsequently required another exclusive
SNP attach, which may hang on some EDK II firmware.

Keep the configured socket available for ordinary network consumers
so NFS boot can reuse it. Add an explicit deconfiguration operation
and invoke it only when an initmd URL requires handing SNP back
to the firmware network stack.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com>

Sponsored by: Intel Corporation
Assisted by: Github Copilot (GPT-5.6 Sol)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77290
Build 74173: arc lint + arc unit