From dc66b51bcaae7b04db6e3f787aa3f2adcc9bcbb4 Mon Sep 17 00:00:00 2001 From: bouyer Date: Sat, 1 Jun 2002 17:24:38 +0000 Subject: 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. --- sys/dev/pci/if_ste.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') 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 -__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. -- cgit