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