From 6288c403e61fa635c8153caa1efc99350d4b7d60 Mon Sep 17 00:00:00 2001 From: GutPuncher Date: Wed, 17 May 2023 01:47:37 -0400 Subject: [PATCH] Increase PCNet RX/TX buf count to 64. --- src/Home/Net/Drivers/PCNet.ZC | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Home/Net/Drivers/PCNet.ZC b/src/Home/Net/Drivers/PCNet.ZC index 26b09f1d..f338ef43 100755 --- a/src/Home/Net/Drivers/PCNet.ZC +++ b/src/Home/Net/Drivers/PCNet.ZC @@ -73,8 +73,8 @@ #define PCNET_CTRL_IDON 8 #define PCNET_CTRL_RINT 10 -#define PCNET_RX_BUFF_COUNT 32 // Linux & Shrine Driver use 32 and 8 for -#define PCNET_TX_BUFF_COUNT 8 // these, we could allow more if wanted. +#define PCNET_RX_BUFF_COUNT 64 +#define PCNET_TX_BUFF_COUNT 64 #define PCNET_DESCRIPTORf_ENP 24 #define PCNET_DESCRIPTORf_STP 25 @@ -417,8 +417,9 @@ U8 *PCNetInitBlockSetup() U32 p_setup; u_setup->mode = 0; - u_setup->rlen = 5 << 4; - u_setup->tlen = 3 << 4; + u_setup->rlen = ToI64(Log2(PCNET_RX_BUFF_COUNT)) << 4; + u_setup->tlen = ToI64(Log2(PCNET_TX_BUFF_COUNT)) << 4; + MemCopy(u_setup->mac, pcnet.mac_address, 6); u_setup->reserved = 0; MemSet(u_setup->ladr, 0, 8);