Hi,

When using grub2 from some Linux distribution, we found that it doesn't seem to 
support EFI_VLAN_PATH (device path passed from EFI with VLAN information).
I have a small patch, part of which like below. There seems to be multiple 
versions and git repos on the internet. What's the right way to submit it for 
code review?

diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h
index fbd1c4b..15da55c 100644
--- a/include/grub/efi/api.h
+++ b/include/grub/efi/api.h
@@ -871,6 +871,15 @@ struct grub_efi_sata_device_path
} GRUB_PACKED;
typedef struct grub_efi_sata_device_path grub_efi_sata_device_path_t;

+#define GRUB_EFI_VLAN_PATH_SUBTYPE                     20
+
+struct grub_efi_vlan_device_path
+{
+  grub_efi_device_path_t header;
+  grub_efi_uint16_t vlan_id;
+} GRUB_PACKED;
+typedef struct grub_efi_vlan_device_path grub_efi_vlan_device_path_t;
+
#define GRUB_EFI_URI_DEVICE_PATH_SUBTYPE               24

Thanks!
Liming
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to