Page MenuHomeFreeBSD

loader.efi: Retain standalone network configuration
ClosedPublic

Authored by kgalazka on Thu, Sep 24, 8:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 16, 5:51 PM
Unknown Object (File)
Wed, Oct 14, 11:51 AM
Unknown Object (File)
Wed, Oct 7, 5:21 AM
Unknown Object (File)
Wed, Oct 7, 4:45 AM
Unknown Object (File)
Wed, Oct 7, 3:34 AM
Unknown Object (File)
Tue, Oct 6, 10:56 AM
Unknown Object (File)
Sun, Oct 4, 6:16 PM
Unknown Object (File)
Sun, Oct 4, 5:08 AM
Subscribers

Details

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 Not Applicable
Unit
Tests Not Applicable