diff options
author | 2005-12-28 22:02:44 +0000 | |
---|---|---|
committer | 2005-12-28 22:02:44 +0000 | |
commit | 7c095262db9f63b3764e6184d9f8cd63a8e78711 (patch) | |
tree | d356bd68202f0821e745b7d3eaad539a7e7f33b8 | |
parent | using the PCI capability register to check for PCI-X mode doesn't get the expected (diff) | |
download | wireguard-openbsd-7c095262db9f63b3764e6184d9f8cd63a8e78711.tar.xz wireguard-openbsd-7c095262db9f63b3764e6184d9f8cd63a8e78711.zip |
clear IFF_RUNNING here to get a full re-init.
-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); |