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.
This commit is contained in:
bouyer 2002-06-01 17:24:38 +00:00
parent 208589bfca
commit dc66b51bca
1 changed files with 4 additions and 4 deletions

View File

@ -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.