diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2024-11-14 09:35:42 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2024-11-14 09:35:42 +0000 |
commit | 05fd5a78f742d50102d69d1ba7b485b3c26952b4 (patch) | |
tree | 14b74bd8a8cf34adfb5d9bf4030c8b37278bdcc1 /sys/dev/pci/if_ice.c | |
parent | 6a126dc1aecf217af89cf683c51927dbd40ed350 (diff) |
for clarity, look at 'perm_addr' for obtaining the MAC when ice(4) attaches
Diffstat (limited to 'sys/dev/pci/if_ice.c')
-rw-r--r-- | sys/dev/pci/if_ice.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |