mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
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:
1 parent
e6b997c73c
commit
5bbd617cc5
1 file changed
+4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user