43 return EFI_INVALID_PARAMETER;
46 Dev = VIRTIO_NET_FROM_SNP (This);
47 OldTpl =
gBS->RaiseTPL (TPL_CALLBACK);
48 if (Dev->Snm.
State != EfiSimpleNetworkStarted) {
49 Status = EFI_NOT_STARTED;
51 Dev->Snm.
State = EfiSimpleNetworkStopped;
55 gBS->RestoreTPL (OldTpl);
EFI_STATUS EFIAPI VirtioNetStop(IN EFI_SIMPLE_NETWORK_PROTOCOL *This)