diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-06-20 07:04:33 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-06-20 07:04:33 +0000 |
commit | e6e913fb719974625ba44e9cba94f9ca8ee2f7c6 (patch) | |
tree | 482d17338c12f1b370e200ebf639a6c1849ee957 /sys/dev | |
parent | 687e1febb130407a246f60525c8d19b798f59ecb (diff) |
have bge_start() check for an empty send queue instead.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_bge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index a2c48a55022..4e2f8606a17 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.158 2006/06/20 06:54:56 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.159 2006/06/20 07:04:32 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -2708,7 +2708,7 @@ bge_start(struct ifnet *ifp) sc = ifp->if_softc; - if (!sc->bge_link || ifp->if_snd.ifq_len < 10) + if (!sc->bge_link || IFQ_IS_EMPTY(&ifp->if_snd)) return; prodidx = sc->bge_tx_prodidx; |