diff options
author | ru <ru@FreeBSD.org> | 2004-04-06 11:04:54 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-04-06 11:04:54 +0000 |
commit | 14f109e99ebbce64845480eeaa808d6759c0d9a7 (patch) | |
tree | a8dd2f8cf86c4a75b61485a401b61f702abc245c | |
parent | 014c3b4511a0b855a5f01e9ff71c89ca1364bd95 (diff) | |
download | FreeBSD-src-14f109e99ebbce64845480eeaa808d6759c0d9a7.zip FreeBSD-src-14f109e99ebbce64845480eeaa808d6759c0d9a7.tar.gz |
Actually fix the TX performance with polling(4) enabled
by increasing the TX list size from 64 to 128, which is
adequate for HZ=1000.
Submitted by: Vsevolod Lobko
-rw-r--r-- | sys/pci/if_ste.c | 2 | ||||
-rw-r--r-- | sys/pci/if_stereg.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_ste.c b/sys/pci/if_ste.c index 1062aed..9e419df 100644 --- a/sys/pci/if_ste.c +++ b/sys/pci/if_ste.c @@ -651,7 +651,7 @@ ste_poll(struct ifnet *ifp, enum poll_cmd cmd, int count) if (ifp->if_snd.ifq_head != NULL) ste_start(ifp); - if (sc->rxcycles > 0 && cmd == POLL_AND_CHECK_STATUS) { + if (cmd == POLL_AND_CHECK_STATUS) { u_int16_t status; status = CSR_READ_2(sc, STE_ISR_ACK); diff --git a/sys/pci/if_stereg.h b/sys/pci/if_stereg.h index 213c82d..d5ecac7 100644 --- a/sys/pci/if_stereg.h +++ b/sys/pci/if_stereg.h @@ -466,7 +466,7 @@ struct ste_desc_onefrag { #define STE_PACKET_SIZE 1536 #define ETHER_ALIGN 2 #define STE_RX_LIST_CNT 64 -#define STE_TX_LIST_CNT 64 +#define STE_TX_LIST_CNT 128 #define STE_INC(x, y) (x) = (x + 1) % y #define STE_NEXT(x, y) (x + 1) % y |