efi_loader: efi_device_path: Pass net udevice as argument
authorAdriano Cordova <adrianox@gmail.com>
Mon, 3 Mar 2025 14:13:14 +0000 (11:13 -0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 10 Mar 2025 06:01:37 +0000 (07:01 +0100)
commit267b0a7ddf89d414000d98345aa3222c7e01ff38
tree45e8354ed7d018dc371436b295f688eb807fdbbf
parent6a832d4b2e5d4d1ebc9d036afcc02d9550257ab2
efi_loader: efi_device_path: Pass net udevice as argument

In preparation to support multiple EFI net objects, support
constructing device paths using an ethernet device different
than the default. Add a udevice argument to the device path
generation, and keep the callsites with eth_get_dev() to
preserve existing functionality.

Signed-off-by: Adriano Cordova <adriano.cordova@canonical.com>
include/efi_loader.h
lib/efi_loader/efi_device_path.c
lib/efi_loader/efi_net.c