loader.efi: release SNP after network configuration

Close the exclusively opened SNP protocol after loader networking
finishes so the firmware network stack can reconnect the controller and
service a subsequent HTTP request.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D59430
This commit is contained in:
Warner Losh committed 2026-09-10 22:15:28 -06:00
1 parent e6b997c73c
commit 5bbd617cc5
1 file changed
+4
+4
View File
@@ -536,11 +536,15 @@ static void
efinet_end(struct netif *nif)
{
EFI_SIMPLE_NETWORK *net = nif->nif_devdata;
EFI_HANDLE h;
if (net == NULL)
return;
net->Shutdown(net);
h = nif->nif_driver->netif_ifs[nif->nif_unit].dif_private;
BS->CloseProtocol(h, &sn_guid, IH, NULL);
nif->nif_devdata = NULL;
}
static int efinet_dev_init(void);