|
|
8631a2 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
8631a2 |
From: Peter Jones <pjones@redhat.com>
|
|
|
8631a2 |
Date: Fri, 4 Mar 2016 15:13:59 -0500
|
|
|
8631a2 |
Subject: [PATCH] Revert "reopen SNP protocol for exclusive use by grub"
|
|
|
8631a2 |
|
|
|
8631a2 |
This reverts commit a3f2c756ce34c9666bddef35e3b3b85ccecdcffc , which is
|
|
|
8631a2 |
obsoleted by these:
|
|
|
8631a2 |
|
|
|
8631a2 |
49426e9 efinet: open Simple Network Protocol exclusively
|
|
|
8631a2 |
f348aee efinet: enable hardware filters when opening interface
|
|
|
8631a2 |
c52ae40 efinet: skip virtual IPv4 and IPv6 devices when enumerating cards
|
|
|
8631a2 |
|
|
|
8631a2 |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
8631a2 |
---
|
|
|
8631a2 |
grub-core/net/drivers/efi/efinet.c | 16 ----------------
|
|
|
8631a2 |
1 file changed, 16 deletions(-)
|
|
|
8631a2 |
|
|
|
8631a2 |
diff --git a/grub-core/net/drivers/efi/efinet.c b/grub-core/net/drivers/efi/efinet.c
|
|
|
8631a2 |
index ea0e0ca360e..5388f952ba9 100644
|
|
|
8631a2 |
--- a/grub-core/net/drivers/efi/efinet.c
|
|
|
8631a2 |
+++ b/grub-core/net/drivers/efi/efinet.c
|
|
|
8631a2 |
@@ -330,7 +330,6 @@ grub_efi_net_config_real (grub_efi_handle_t hnd, char **device,
|
|
|
8631a2 |
{
|
|
|
8631a2 |
struct grub_net_card *card;
|
|
|
8631a2 |
grub_efi_device_path_t *dp;
|
|
|
8631a2 |
- grub_efi_simple_network_t *net;
|
|
|
8631a2 |
|
|
|
8631a2 |
dp = grub_efi_get_device_path (hnd);
|
|
|
8631a2 |
if (! dp)
|
|
|
8631a2 |
@@ -384,21 +383,6 @@ grub_efi_net_config_real (grub_efi_handle_t hnd, char **device,
|
|
|
8631a2 |
&pxe_mode->dhcp_ack,
|
|
|
8631a2 |
sizeof (pxe_mode->dhcp_ack),
|
|
|
8631a2 |
1, device, path);
|
|
|
8631a2 |
- net = grub_efi_open_protocol (card->efi_handle, &net_io_guid,
|
|
|
8631a2 |
- GRUB_EFI_OPEN_PROTOCOL_BY_EXCLUSIVE);
|
|
|
8631a2 |
- if (net) {
|
|
|
8631a2 |
- if (net->mode->state == GRUB_EFI_NETWORK_STOPPED
|
|
|
8631a2 |
- && efi_call_1 (net->start, net) != GRUB_EFI_SUCCESS)
|
|
|
8631a2 |
- continue;
|
|
|
8631a2 |
-
|
|
|
8631a2 |
- if (net->mode->state == GRUB_EFI_NETWORK_STOPPED)
|
|
|
8631a2 |
- continue;
|
|
|
8631a2 |
-
|
|
|
8631a2 |
- if (net->mode->state == GRUB_EFI_NETWORK_STARTED
|
|
|
8631a2 |
- && efi_call_3 (net->initialize, net, 0, 0) != GRUB_EFI_SUCCESS)
|
|
|
8631a2 |
- continue;
|
|
|
8631a2 |
- card->efi_net = net;
|
|
|
8631a2 |
- }
|
|
|
8631a2 |
return;
|
|
|
8631a2 |
}
|
|
|
8631a2 |
}
|