efinet: also use the firmware acceleration for http
authorPeter Jones <pjones@redhat.com>
Mon, 9 Jan 2023 23:30:36 +0000 (18:30 -0500)
committerPeter Michael Green <plugwash@raspbian.org>
Sun, 28 Jul 2024 22:42:11 +0000 (22:42 +0000)
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Gbp-Pq: Topic network
Gbp-Pq: Name efinet-also-use-the-firmware-acceleration-for-http.patch

grub-core/net/efi/net.c

index eeafdcd797f895c379341d352762c0f689c77ec1..e1e7da892730208425ed8d2eac7d04239def88ff 100644 (file)
@@ -1307,7 +1307,10 @@ 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))