aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2005-09-20 13:37:17 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2005-09-20 13:37:17 +0000
commitaecb98c94d19db859b293374cb1fc98dc202bc64 (patch)
treee759570c07f3b60489b16f3655679b57f9949fcb /sys/dev
parentd32484135ddc0e55a477d5d05c5b7dd679119480 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/em/if_em.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c
index 3fa1180d050e..9d1a7452666f 100644
--- a/sys/dev/em/if_em.c
+++ b/sys/dev/em/if_em.c
@@ -644,7 +644,9 @@ em_start(struct ifnet *ifp)
struct adapter *adapter = ifp->if_softc;
EM_LOCK(adapter);
- em_start_locked(ifp);
+ if (ifp->if_drv_flags & IFF_DRV_RUNNING &&
+ !IFQ_DRV_IS_EMPTY(&ifp->if_snd))
+ em_start_locked(ifp);
EM_UNLOCK(adapter);
return;
}