]> git.ipfire.org Git - thirdparty/grub.git/commit
net/drivers/efi/efinet: Skip virtual VLAN devices during card enumeration
authorMichael Chang <mchang@suse.com>
Thu, 3 Oct 2024 07:23:15 +0000 (15:23 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 10 Oct 2024 10:38:47 +0000 (12:38 +0200)
commit3808b1a9bd47cf783d4b8775fbc788a9ce5afdd4
tree35c6310a07f6851c99a61c91c9c07aca7a2dcde1
parente5f047be053a1d6d10590bc413d089535a13454c
net/drivers/efi/efinet: Skip virtual VLAN devices during card enumeration

Similarly to the issue described in commit c52ae4057 (efinet: skip
virtual IPv4 and IPv6 devices during card enumeration) the UEFI PXE
driver creates additional VLAN child devices when a VLAN ID is
configured on a network interface associated with a physical NIC. These
virtual VLAN devices must be skipped during card enumeration to ensure
that the subsequent SNP exclusive open operation targets the correct
physical card instances. Otherwise packet transfer would fail.

A device path example with VLAN nodes:

  /MAC(123456789ABC,0x1)/Vlan(20)/IPv4(0.0.0.0,0x0,DHCP,0.0.0.0,0.0.0.0,0.0.0.0)

Signed-off-by: Michael Chang <mchang@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/net/drivers/efi/efinet.c