kern/efi/efi: Print VLAN info in EFI device path

Signed-off-by: Chad Kimes <chkimes@github.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Chad Kimes 2022-03-21 18:07:31 -04:00 committed by Daniel Kiper
parent 954c48b9c8
commit c143056a34
2 changed files with 16 additions and 0 deletions

View File

@ -832,6 +832,13 @@ grub_efi_print_device_path (grub_efi_device_path_t *dp)
sata->lun);
}
break;
case GRUB_EFI_VLAN_DEVICE_PATH_SUBTYPE:
{
grub_efi_vlan_device_path_t *vlan;
vlan = (grub_efi_vlan_device_path_t *) dp;
grub_printf ("/Vlan(%u)", vlan->vlan_id);
}
break;
case GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE:
dump_vendor_path ("Messaging",

View File

@ -908,6 +908,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_DEVICE_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_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE 10
/* Media Device Path. */