]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[ecm] Treat ACPI MAC address as being a non-permanent MAC address
authorMichael Brown <mcb30@ipxe.org>
Mon, 23 May 2022 11:23:53 +0000 (12:23 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 23 May 2022 11:23:53 +0000 (12:23 +0100)
commit87f1796f158fe3e06d292f4b7e16bad879803b69
treebde8ed26787e8c2afd1488e875bdc77976601e31
parent70995397e5bdfd3431e12971aa40630c7014785f
[ecm] Treat ACPI MAC address as being a non-permanent MAC address

When applying an ACPI-provided system-specific MAC address, apply it
to netdev->ll_addr rather than netdev->hw_addr.  This allows iPXE
scripts to access the permanent MAC address via the ${netX/hwaddr}
setting (and thereby provides scripts with a mechanism to ascertain
that the NIC is using a MAC address other than its own permanent
hardware address).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/ecm.c
src/drivers/net/ecm.h
src/drivers/net/ncm.c