mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 01:38:57 +00:00
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:
parent
fac8eae5bc
commit
7d542e2d80
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160973
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user