Copy the link-layer address from our ifnet pointer at reset time

so that the mac address can be overridden.
This commit is contained in:
Andrew Gallatin 2006-08-04 17:58:40 +00:00
parent fac8eae5bc
commit 7d542e2d80
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160973

View File

@ -2079,6 +2079,9 @@ mxge_open(mxge_softc_t *sc)
bus_dmamap_t map;
/* Copy the MAC address in case it was overridden */
bcopy(IF_LLADDR(sc->ifp), sc->mac_addr, ETHER_ADDR_LEN);
err = mxge_reset(sc);
if (err != 0) {
device_printf(sc->dev, "failed to reset\n");