From e6e913fb719974625ba44e9cba94f9ca8ee2f7c6 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Tue, 20 Jun 2006 07:04:33 +0000 Subject: have bge_start() check for an empty send queue instead. --- sys/dev/pci/if_bge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci') 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; -- cgit v1.2.3