diff options
author | harti <harti@FreeBSD.org> | 2003-08-05 10:51:33 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-08-05 10:51:33 +0000 |
commit | 1a1628d17d9a90d7ddcf1732dda6138609029fc6 (patch) | |
tree | f7eb36a7bc06fb873ad3d3199542fc9530798993 /sys/dev/en | |
parent | 1f50902a452576ff8aab25fab86a0e7e343a3eaa (diff) | |
download | FreeBSD-src-1a1628d17d9a90d7ddcf1732dda6138609029fc6.zip FreeBSD-src-1a1628d17d9a90d7ddcf1732dda6138609029fc6.tar.gz |
Move the clearing of the IFF_RUNNING flag into the reset routine.
Otherwise the interface will report RUNNING to ifconfig after doing
'ifconfig down' although it isn't running anymore.
Diffstat (limited to 'sys/dev/en')
-rw-r--r-- | sys/dev/en/midway.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/en/midway.c b/sys/dev/en/midway.c index 1d2a385..582ea4d 100644 --- a/sys/dev/en/midway.c +++ b/sys/dev/en/midway.c @@ -1290,6 +1290,8 @@ en_reset_ul(struct en_softc *sc) if_printf(&sc->ifatm.ifnet, "reset\n"); + sc->ifatm.ifnet.if_flags &= ~IFF_RUNNING; + if (sc->en_busreset) sc->en_busreset(sc); en_write(sc, MID_RESID, 0x0); /* reset hardware */ @@ -1380,7 +1382,6 @@ en_init(struct en_softc *sc) if ((sc->ifatm.ifnet.if_flags & IFF_UP) == 0) { DBG(sc, INIT, ("going down")); en_reset(sc); /* to be safe */ - sc->ifatm.ifnet.if_flags &= ~IFF_RUNNING; /* disable */ return; } |