|
|
a85e8e |
From cb6434fe9664ec06611ae2a7aff492b209da038e Mon Sep 17 00:00:00 2001
|
|
|
a85e8e |
From: Peter Jones <pjones@redhat.com>
|
|
|
a85e8e |
Date: Thu, 7 Apr 2016 10:58:06 -0400
|
|
|
a85e8e |
Subject: [PATCH 198/260] Revert "reopen SNP protocol for exclusive use by
|
|
|
a85e8e |
grub"
|
|
|
a85e8e |
|
|
|
a85e8e |
I *think* this should have been replaced by upstream's
|
|
|
a85e8e |
49426e9fd2e562c73a4f1206f32eff9e424a1a73, so I'm reverting for now.
|
|
|
a85e8e |
|
|
|
a85e8e |
May resolve rhbz#1273974.
|
|
|
a85e8e |
|
|
|
a85e8e |
This reverts commit 147daeab22db793978f952b6f0d832919a1b0081.
|
|
|
a85e8e |
---
|
|
|
a85e8e |
grub-core/net/drivers/efi/efinet.c | 40 --------------------------------------
|
|
|
a85e8e |
1 file changed, 40 deletions(-)
|
|
|
a85e8e |
|
|
|
a85e8e |
diff --git a/grub-core/net/drivers/efi/efinet.c b/grub-core/net/drivers/efi/efinet.c
|
|
|
a85e8e |
index d8099a598..3f112438a 100644
|
|
|
a85e8e |
--- a/grub-core/net/drivers/efi/efinet.c
|
|
|
a85e8e |
+++ b/grub-core/net/drivers/efi/efinet.c
|
|
|
a85e8e |
@@ -340,7 +340,6 @@ grub_efi_net_config_real (grub_efi_handle_t hnd, char **device,
|
|
|
a85e8e |
{
|
|
|
a85e8e |
struct grub_net_card *card;
|
|
|
a85e8e |
grub_efi_device_path_t *dp;
|
|
|
a85e8e |
- grub_efi_simple_network_t *net;
|
|
|
a85e8e |
|
|
|
a85e8e |
dp = grub_efi_get_device_path (hnd);
|
|
|
a85e8e |
if (! dp)
|
|
|
a85e8e |
@@ -394,45 +393,6 @@ grub_efi_net_config_real (grub_efi_handle_t hnd, char **device,
|
|
|
a85e8e |
&pxe_mode->dhcp_ack,
|
|
|
a85e8e |
sizeof (pxe_mode->dhcp_ack),
|
|
|
a85e8e |
1, device, path);
|
|
|
a85e8e |
- net = grub_efi_open_protocol (card->efi_handle, &net_io_guid,
|
|
|
a85e8e |
- GRUB_EFI_OPEN_PROTOCOL_BY_EXCLUSIVE);
|
|
|
a85e8e |
- if (net) {
|
|
|
a85e8e |
- if (net->mode->state == GRUB_EFI_NETWORK_STOPPED
|
|
|
a85e8e |
- && efi_call_1 (net->start, net) != GRUB_EFI_SUCCESS)
|
|
|
a85e8e |
- continue;
|
|
|
a85e8e |
-
|
|
|
a85e8e |
- if (net->mode->state == GRUB_EFI_NETWORK_STOPPED)
|
|
|
a85e8e |
- continue;
|
|
|
a85e8e |
-
|
|
|
a85e8e |
- if (net->mode->state == GRUB_EFI_NETWORK_STARTED
|
|
|
a85e8e |
- && efi_call_3 (net->initialize, net, 0, 0) != GRUB_EFI_SUCCESS)
|
|
|
a85e8e |
- continue;
|
|
|
a85e8e |
-
|
|
|
a85e8e |
- /* Enable hardware receive filters if driver declares support for it.
|
|
|
a85e8e |
- We need unicast and broadcast and additionaly all nodes and
|
|
|
a85e8e |
- solicited multicast for IPv6. Solicited multicast is per-IPv6
|
|
|
a85e8e |
- address and we currently do not have API to do it so simply
|
|
|
a85e8e |
- try to enable receive of all multicast packets or evertyhing in
|
|
|
a85e8e |
- the worst case (i386 PXE driver always enables promiscuous too).
|
|
|
a85e8e |
-
|
|
|
a85e8e |
- This does trust firmware to do what it claims to do.
|
|
|
a85e8e |
- */
|
|
|
a85e8e |
- if (net->mode->receive_filter_mask)
|
|
|
a85e8e |
- {
|
|
|
a85e8e |
- grub_uint32_t filters = GRUB_EFI_SIMPLE_NETWORK_RECEIVE_UNICAST |
|
|
|
a85e8e |
- GRUB_EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST |
|
|
|
a85e8e |
- GRUB_EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS_MULTICAST;
|
|
|
a85e8e |
-
|
|
|
a85e8e |
- filters &= net->mode->receive_filter_mask;
|
|
|
a85e8e |
- if (!(filters & GRUB_EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS_MULTICAST))
|
|
|
a85e8e |
- filters |= (net->mode->receive_filter_mask &
|
|
|
a85e8e |
- GRUB_EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS);
|
|
|
a85e8e |
-
|
|
|
a85e8e |
- efi_call_6 (net->receive_filters, net, filters, 0, 0, 0, NULL);
|
|
|
a85e8e |
- }
|
|
|
a85e8e |
-
|
|
|
a85e8e |
- card->efi_net = net;
|
|
|
a85e8e |
- }
|
|
|
a85e8e |
return;
|
|
|
a85e8e |
}
|
|
|
a85e8e |
}
|
|
|
a85e8e |
--
|
|
|
a85e8e |
2.13.0
|
|
|
a85e8e |
|