diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2004-04-06 11:04:54 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2004-04-06 11:04:54 +0000 |
commit | e2c039a2349d5b3893eb01a7afa58b2c6910dbb8 (patch) | |
tree | a8dd2f8cf86c4a75b61485a401b61f702abc245c /sys/pci | |
parent | 30a4ab088ad5a46c50c9e74810b5a2433bb4868b (diff) | |
download | src-e2c039a2349d5b3893eb01a7afa58b2c6910dbb8.tar.gz src-e2c039a2349d5b3893eb01a7afa58b2c6910dbb8.zip |
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
Notes
Notes:
svn path=/head/; revision=127937
Diffstat (limited to 'sys/pci')
-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 1062aed6bf2f..9e419df0f081 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 213c82d30e57..d5ecac7c17e6 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 |