diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-12-28 22:02:45 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-12-28 22:02:45 +0000 |
commit | 2181786877d4dc162a12e4a07a8441ac6d24a44b (patch) | |
tree | 813259175b5e202a958ec1bc09c62e40ba83fe4f /sys | |
parent | c6e3d38170f886bc78b1f2632eff7af639e3fecf (diff) |
clear IFF_RUNNING here to get a full re-init.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_bge.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index adcc9d57f09..1ca60a2ee7e 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.119 2005/12/28 21:55:53 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.120 2005/12/28 22:02:44 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -3126,8 +3126,10 @@ bge_ioctl(struct ifnet *ifp, u_long command, caddr_t data) sc->bge_if_flags & IFF_PROMISC) { BGE_CLRBIT(sc, BGE_RX_MODE, BGE_RXMODE_RX_PROMISC); - } else + } else { + ifp->if_flags &= ~IFF_RUNNING; bge_init(sc); + } } else { if (ifp->if_flags & IFF_RUNNING) { bge_stop(sc); |