From fa799a4e7e95dfc014723c85f97e67eed89cb1e8 Mon Sep 17 00:00:00 2001 From: Pyun YongHyeon Date: Thu, 20 Jul 2006 03:57:58 +0000 Subject: [PATCH] Honor IFF_DRV_OACTIVE in em_start_locked(). --- sys/dev/em/if_em.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index d17ea9b35792..a0d0dfbe95b1 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -692,6 +692,9 @@ em_start_locked(struct ifnet *ifp) EM_LOCK_ASSERT(sc); + if ((ifp->if_drv_flags & (IFF_DRV_RUNNING|IFF_DRV_OACTIVE)) != + IFF_DRV_RUNNING) + return; if (!sc->link_active) return;