diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-05-14 22:19:05 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-05-14 22:19:05 +0000 |
commit | 8745655225c86914e0459051c6d84ff9f878cf88 (patch) | |
tree | 1a139f758e45ce3ee5bd67a64771832ee2701e68 | |
parent | 27a3726252e9c28f02a230f342c6a768cba8a6ed (diff) |
only call init if not running.
-rw-r--r-- | sys/dev/pci/if_xge.c | 5 |
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); |