opengnsys_ipxe/src
Michael Brown b9571ca12e [efi] Add efi_path_vlan() utility function
EFI provides no API for determining the VLAN tag (if any) for a
specified device handle.  There is the EFI_VLAN_CONFIG_PROTOCOL, but
that exists only on the trunk device handle (not on the VLAN device
handle), and provides no way to match VLAN tags against the trunk
device's child device handles.

The EDK2 codebase seems to rely solely on the device path to determine
the VLAN tag for a specified device handle: both NetLibGetVlanId() and
BmGetNetworkDescription() will parse the device path to search for a
VLAN_DEVICE_PATH component.

Add efi_path_vlan() which uses the same device path parsing logic to
determine the VLAN tag.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2022-12-22 14:27:56 +00:00
..
arch [bzimage] Fix parsing of "vga=..." when not at end of command line 2022-10-27 13:05:35 +01:00
bin Rename .cvsignore files to .gitignore 2007-06-09 22:57:00 +01:00
config [tls] Add GCM cipher suites 2022-11-10 09:58:44 +00:00
core [acpi] Expose system MAC address via ${sysmac} setting 2022-06-10 13:44:40 +01:00
crypto [tls] Add GCM cipher suites 2022-11-10 09:58:44 +00:00
doc [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
drivers [intel] Add PCI ID for I219-V and -LM 16,17 2022-11-15 13:05:28 +00:00
hci [pci] Check for wraparound in callers of pci_find_next() 2022-09-15 15:20:58 +01:00
image [image] Allow single-member archive images to be executed transparently 2021-05-12 13:57:35 +01:00
include [efi] Add efi_path_vlan() utility function 2022-12-22 14:27:56 +00:00
interface [efi] Add efi_path_vlan() utility function 2022-12-22 14:27:56 +00:00
libgcc [libgcc] Change __divmoddi4 from int64 [unknown] to int64_t 2020-07-21 14:33:32 +01:00
net [efi] Provide VLAN configuration protocol 2022-12-14 11:51:52 +00:00
scripts [efi] Include Secure Boot Advanced Targeting (SBAT) metadata 2022-01-13 14:12:44 +00:00
tests [tests] Verify ability to perform in-place encryption and decryption 2022-11-10 09:58:44 +00:00
usr [doc] Update user-visible ipxe.org URIs to use HTTPS 2022-01-13 12:48:38 +00:00
util [console] Include mappings for AltGr-Shift-<key> 2022-02-16 15:31:47 +00:00
.gitignore [build] Add support for local configuration files 2010-03-26 19:07:22 +00:00
Makefile [build] Avoid invoking genkeymap.py via Perl 2022-02-15 13:54:28 +00:00
Makefile.efi [efi] Use zero for PCI vendor/device IDs when no applicable ID exists 2021-07-26 15:47:47 +01:00
Makefile.housekeeping [build] Disable dangling pointer checking for GCC 2022-12-14 01:29:49 +00:00
Makefile.linux [linux] Place -lslirp at end of linker search list 2021-03-03 01:09:33 +00:00
doxygen.cfg [build] Remove PACKED macro 2010-05-29 23:49:47 +01:00