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
This commit is contained in:
parent
30a4ab088a
commit
e2c039a234
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127937
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user