grub2/0135-efinet-also-use-the-firmware-acceleration-for-http.patch

29 lines
1.1 KiB
Diff
Raw Normal View History

2020-07-29 20:47:36 +08:00
From 4b0d5c577825b4b9e4f0fc768ea57cfb941e6c45 Mon Sep 17 00:00:00 2001
2019-09-30 10:52:04 -04:00
From: Peter Jones <pjones@redhat.com>
Date: Mon, 30 Jul 2018 14:06:42 -0400
2020-07-29 20:47:36 +08:00
Subject: [PATCH 135/220] efinet: also use the firmware acceleration for http
2019-09-30 10:52:04 -04:00
Signed-off-by: Peter Jones <pjones@redhat.com>
---
grub-core/net/efi/net.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/grub-core/net/efi/net.c b/grub-core/net/efi/net.c
2020-07-29 20:47:36 +08:00
index 4bb3080..6603cd8 100644
2019-09-30 10:52:04 -04:00
--- a/grub-core/net/efi/net.c
+++ b/grub-core/net/efi/net.c
@@ -1324,7 +1324,9 @@ grub_efi_net_boot_from_https (void)
&& (subtype == GRUB_EFI_URI_DEVICE_PATH_SUBTYPE))
{
grub_efi_uri_device_path_t *uri_dp = (grub_efi_uri_device_path_t *) dp;
- return (grub_strncmp ((const char*)uri_dp->uri, "https://", sizeof ("https://") - 1) == 0) ? 1 : 0;
+ grub_dprintf ("efinet", "url:%s\n", (const char *)uri_dp->uri);
+ return (grub_strncmp ((const char *)uri_dp->uri, "https://", sizeof ("https://") - 1) == 0 ||
+ grub_strncmp ((const char *)uri_dp->uri, "http://", sizeof ("http://") - 1) == 0);
}
if (GRUB_EFI_END_ENTIRE_DEVICE_PATH (dp))
2020-07-29 20:47:36 +08:00
--
1.8.3.1