summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_xge.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/if_xge.c')
-rw-r--r--sys/dev/pci/if_xge.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_xge.c b/sys/dev/pci/if_xge.c
index 06c924c9ea8..ab0a026bf2b 100644
--- a/sys/dev/pci/if_xge.c
+++ b/sys/dev/pci/if_xge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_xge.c,v 1.10 2006/05/14 21:51:22 brad Exp $ */
+/* $OpenBSD: if_xge.c,v 1.11 2006/05/14 22:19:04 brad Exp $ */
/* $NetBSD: if_xge.c,v 1.1 2005/09/09 10:30:27 ragge Exp $ */
/*
@@ -879,7 +879,8 @@ xge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
* such as IFF_PROMISC are handled.
*/
if (ifp->if_flags & IFF_UP) {
- xge_init(ifp);
+ if (!(ifp->if_flags & IFF_RUNNING))
+ xge_init(ifp);
} else {
if (ifp->if_flags & IFF_RUNNING)
xge_stop(ifp, 0);