diff options
author | peter <peter@FreeBSD.org> | 1999-03-13 09:21:27 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-03-13 09:21:27 +0000 |
commit | be55fa9ced7fd045ebdf9d2eda081afb5922b1c8 (patch) | |
tree | 5613b8af1ca8b22e743887ed60bea52b19cb6c98 /sys/pci/if_de.c | |
parent | e9f0ce6010f96c0826bd23ccb0cfc9ae00bcb752 (diff) | |
download | FreeBSD-src-be55fa9ced7fd045ebdf9d2eda081afb5922b1c8.zip FreeBSD-src-be55fa9ced7fd045ebdf9d2eda081afb5922b1c8.tar.gz |
set if_snd.ifq_maxlen to something reasonable - note that if_de.c has
a wierd double-queue arrangement.. It always empties the if_snd queue
then puts the transmit packets into a different queue that is limited
by the number of TX descriptors and does it's own discards...
This should stop the boot-time XXX warning anyway.
Diffstat (limited to 'sys/pci/if_de.c')
-rw-r--r-- | sys/pci/if_de.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/pci/if_de.c b/sys/pci/if_de.c index f3f0a2b..9b69c0e 100644 --- a/sys/pci/if_de.c +++ b/sys/pci/if_de.c @@ -1,5 +1,5 @@ /* $NetBSD: if_de.c,v 1.80 1998/09/25 18:06:53 matt Exp $ */ -/* $Id: if_de.c,v 1.98 1999/01/29 11:31:45 bde Exp $ */ +/* $Id: if_de.c,v 1.99 1999/03/01 16:54:28 luigi Exp $ */ /*- * Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com) @@ -116,6 +116,7 @@ #include <vm/vm.h> #if defined(__FreeBSD__) +#include <net/if_var.h> #include <vm/pmap.h> #include <pci.h> #if NPCI > 0 @@ -5084,6 +5085,9 @@ tulip_attach( TULIP_ETHER_IFATTACH(sc); #else if_attach(ifp); +#if defined(__FreeBSD__) && __FreeBSD_version >= 300000 + ifp->if_snd.ifq_maxlen = ifqmaxlen; +#endif #if defined(__NetBSD__) || (defined(__FreeBSD__) && BSD >= 199506) TULIP_ETHER_IFATTACH(sc); #endif |