diff options
author | wpaul <wpaul@FreeBSD.org> | 1998-10-31 17:23:48 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1998-10-31 17:23:48 +0000 |
commit | 5f1b9ebf186eca5bc9d3d19a223676cca1f85d38 (patch) | |
tree | 64859fae3769f7709f0ab611d772765573b9fb59 /sys/pci/if_tlreg.h | |
parent | e5c6a4fa5eb79d781946aee7e3ffa81cc5e38b78 (diff) | |
download | FreeBSD-src-5f1b9ebf186eca5bc9d3d19a223676cca1f85d38.zip FreeBSD-src-5f1b9ebf186eca5bc9d3d19a223676cca1f85d38.tar.gz |
Increase the size of the tx and rx rings from 10 to 20 descriptors
and increase the tx interrupt threshold to 4. This fixes performance
problems on slower systems.
Also fix a mind-o in the rx ring init routine: I used the TX
constant instead of the RX. This isn't a problem as long as the
rings are the same size, but if they aren't hijinx will ensue.
Diffstat (limited to 'sys/pci/if_tlreg.h')
-rw-r--r-- | sys/pci/if_tlreg.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/pci/if_tlreg.h b/sys/pci/if_tlreg.h index a9b80ea..b8b3769 100644 --- a/sys/pci/if_tlreg.h +++ b/sys/pci/if_tlreg.h @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_tlreg.h,v 1.12 1998/09/17 21:16:31 wpaul Exp $ + * $Id: if_tlreg.h,v 1.6 1998/09/23 05:08:54 wpaul Exp $ */ @@ -49,8 +49,8 @@ struct tl_type { */ #define TL_MAXFRAGS 10 -#define TL_RX_LIST_CNT 10 -#define TL_TX_LIST_CNT 10 +#define TL_RX_LIST_CNT 20 +#define TL_TX_LIST_CNT 20 #define TL_MIN_FRAMELEN 64 struct tl_frag { @@ -141,7 +141,7 @@ struct tl_softc { /* * Transmit interrupt threshold. */ -#define TX_THR 0x00000001 +#define TX_THR 0x00000004 #define TL_FLAG_FORCEDELAY 1 #define TL_FLAG_SCHEDDELAY 2 |