From 05fd5a78f742d50102d69d1ba7b485b3c26952b4 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Thu, 14 Nov 2024 09:35:42 +0000 Subject: for clarity, look at 'perm_addr' for obtaining the MAC when ice(4) attaches --- sys/dev/pci/if_ice.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/dev/pci/if_ice.c b/sys/dev/pci/if_ice.c index ec0cf92ac01..3c03f029c8e 100644 --- a/sys/dev/pci/if_ice.c +++ b/sys/dev/pci/if_ice.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ice.c,v 1.2 2024/11/13 16:32:18 stsp Exp $ */ +/* $OpenBSD: if_ice.c,v 1.3 2024/11/14 09:35:41 stsp Exp $ */ /* Copyright (c) 2024, Intel Corporation * All rights reserved. @@ -14873,7 +14873,7 @@ ice_print_nvm_version(struct ice_softc *sc) printf("%s: %s, address %s\n", sc->sc_dev.dv_xname, ice_nvm_version_str(hw, buf, sizeof(buf)), - ether_sprintf(hw->port_info->mac.lan_addr)); + ether_sprintf(hw->port_info->mac.perm_addr)); } /** @@ -23883,7 +23883,7 @@ ice_attach_hook(struct device *self) ice_print_nvm_version(sc); /* Setup the MAC address */ - err = if_setlladdr(ifp, hw->port_info->mac.lan_addr); + err = if_setlladdr(ifp, hw->port_info->mac.perm_addr); if (err) printf("%s: could not set MAC address (error %d)\n", sc->sc_dev.dv_xname, err); -- cgit v1.2.3