]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Drag in MNP driver whenever SNP driver is present
authorMichael Brown <mcb30@ipxe.org>
Wed, 27 Aug 2025 12:12:11 +0000 (13:12 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 27 Aug 2025 12:12:11 +0000 (13:12 +0100)
commit61b4585e2aa273cd75a4da4369f2bc9e3095290d
tree54bd15f691ab7f07e26a3d935684a621cdad783d
parenta53ec449327788e2015642bff21443d3a399c05b
[efi] Drag in MNP driver whenever SNP driver is present

The chainloaded-device-only "snponly" driver already drags in support
for driving SNP, NII, and MNP devices, on the basis that the user
generally doesn't care which UEFI API is used and just wants to boot
from the same network device that was used to load iPXE.

The multi-device "snp" driver already drags in support for driving SNP
and NII devices, but does not drag in support for MNP devices.

There is essentially zero code size overhead to dragging in support
for MNP devices, since this support is always present in any iPXE
application build anyway (as part of the code to download
"autoexec.ipxe" prior to installing our own drivers).

Minimise surprise by dragging in support for MNP devices whenever
using the "snp" driver, following the same reasoning used for the
"snponly" driver.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/efi/snp.c