mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Remember to actually program the MAC address into the unicast filter
in vr_init(). The VIA Rhine chip happens to be able to automatically read its station address from the EEPROM automatically when reset, so you don't need to program the filter if you want to keep using the factory default address, but if you want to change it with "ifconfig vr0 ether xx:xx:xx:xx:xx:xx" then we need to manually set it in the init routine.
This commit is contained in:
parent
c30382df80
commit
73e89fa2d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73963
@ -1388,6 +1388,7 @@ static void vr_init(xsc)
|
||||
struct vr_softc *sc = xsc;
|
||||
struct ifnet *ifp = &sc->arpcom.ac_if;
|
||||
struct mii_data *mii;
|
||||
int i;
|
||||
|
||||
VR_LOCK(sc);
|
||||
|
||||
@ -1399,6 +1400,12 @@ static void vr_init(xsc)
|
||||
vr_stop(sc);
|
||||
vr_reset(sc);
|
||||
|
||||
/*
|
||||
* Set our station address.
|
||||
*/
|
||||
for (i = 0; i < ETHER_ADDR_LEN; i++)
|
||||
CSR_WRITE_1(sc, VR_PAR0 + i, sc->arpcom.ac_enaddr[i]);
|
||||
|
||||
VR_CLRBIT(sc, VR_RXCFG, VR_RXCFG_RX_THRESH);
|
||||
VR_SETBIT(sc, VR_RXCFG, VR_RXTHRESH_STORENFWD);
|
||||
|
||||
|
@ -1388,6 +1388,7 @@ static void vr_init(xsc)
|
||||
struct vr_softc *sc = xsc;
|
||||
struct ifnet *ifp = &sc->arpcom.ac_if;
|
||||
struct mii_data *mii;
|
||||
int i;
|
||||
|
||||
VR_LOCK(sc);
|
||||
|
||||
@ -1399,6 +1400,12 @@ static void vr_init(xsc)
|
||||
vr_stop(sc);
|
||||
vr_reset(sc);
|
||||
|
||||
/*
|
||||
* Set our station address.
|
||||
*/
|
||||
for (i = 0; i < ETHER_ADDR_LEN; i++)
|
||||
CSR_WRITE_1(sc, VR_PAR0 + i, sc->arpcom.ac_enaddr[i]);
|
||||
|
||||
VR_CLRBIT(sc, VR_RXCFG, VR_RXCFG_RX_THRESH);
|
||||
VR_SETBIT(sc, VR_RXCFG, VR_RXTHRESH_STORENFWD);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user