summaryrefslogtreecommitdiffstats
path: root/src/interface/efi/efi_snp.c
diff options
context:
space:
mode:
authorMichael Brown2020-10-16 15:12:56 +0200
committerMichael Brown2020-10-16 16:36:37 +0200
commit2bf0fd39cafcfaf9a2a66f1f22bbe36640a72b6c (patch)
tree9ccf01f8b1b9606204fc77e925983b69da20e7c4 /src/interface/efi/efi_snp.c
parent[efi] Provide EFI_INTF_OP for EFI-only interface operations (diff)
downloadipxe-2bf0fd39cafcfaf9a2a66f1f22bbe36640a72b6c.tar.gz
ipxe-2bf0fd39cafcfaf9a2a66f1f22bbe36640a72b6c.tar.xz
ipxe-2bf0fd39cafcfaf9a2a66f1f22bbe36640a72b6c.zip
[efi] Split device path functions out to efi_path.c
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/efi/efi_snp.c')
-rw-r--r--src/interface/efi/efi_snp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interface/efi/efi_snp.c b/src/interface/efi/efi_snp.c
index d648700f6..f5c736a11 100644
--- a/src/interface/efi/efi_snp.c
+++ b/src/interface/efi/efi_snp.c
@@ -33,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/efi/efi.h>
#include <ipxe/efi/efi_driver.h>
#include <ipxe/efi/efi_strings.h>
+#include <ipxe/efi/efi_path.h>
#include <ipxe/efi/efi_utils.h>
#include <ipxe/efi/efi_watchdog.h>
#include <ipxe/efi/efi_snp.h>
@@ -1714,7 +1715,7 @@ static int efi_snp_probe ( struct net_device *netdev ) {
"%s", netdev->name );
/* Allocate the new device path */
- path_prefix_len = efi_devpath_len ( efidev->path );
+ path_prefix_len = efi_path_len ( efidev->path );
snpdev->path = zalloc ( path_prefix_len + sizeof ( *macpath ) +
sizeof ( *vlanpath ) + sizeof ( *path_end ) );
if ( ! snpdev->path ) {