summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorbouyer <bouyer@NetBSD.org>2002-06-01 17:24:38 +0000
committerbouyer <bouyer@NetBSD.org>2002-06-01 17:24:38 +0000
commitdc66b51bcaae7b04db6e3f787aa3f2adcc9bcbb4 (patch)
treebf6fd847d1d9dd52b6ce66a26dfa3723c89f6457 /sys/dev
parent208589bfca2a055dddcbb82557d9406265d7bd98 (diff)
When the chip gets a transmit underrun, the driver resets the chip, which
cause the link to go down for several seconds on my Dlink DFE580-TX (quad-port DL1002). This behavior is unacceptable, especially as the driver usually gets several underrun at once, causing the link to be almost unaviable for several 10s of seconds. Bump the default transmit threshold to 1504 bytes to avoid transmit underrun.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_ste.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_ste.c b/sys/dev/pci/if_ste.c
index 20438476987..767607d8baf 100644
--- a/sys/dev/pci/if_ste.c
+++ b/sys/dev/pci/if_ste.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ste.c,v 1.8 2002/06/01 17:20:13 bouyer Exp $ */
+/* $NetBSD: if_ste.c,v 1.9 2002/06/01 17:24:38 bouyer Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ste.c,v 1.8 2002/06/01 17:20:13 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ste.c,v 1.9 2002/06/01 17:24:38 bouyer Exp $");
#include "bpfilter.h"
@@ -504,9 +504,9 @@ ste_attach(struct device *parent, struct device *self, void *aux)
IFQ_SET_READY(&ifp->if_snd);
/*
- * Default the transmit threshold to 128 bytes.
+ * Default the transmit threshold to 1504 bytes.
*/
- sc->sc_txthresh = 128;
+ sc->sc_txthresh = 1504;
/*
* Disable MWI if the PCI layer tells us to.
/a>oster 2006-01-06initialize necessary members of struct buf. PR/32462 from Reinoud Zandijk.yamt 2006-01-04- add simple functions to allocate/free a buffer for i/o.yamt 2005-12-11merge ktrace-lwp.christos