The following diff to adjust the early TX threshold needs testing
with any re(4) adapter other than the original 8139C+. Please also
do some performance testing if you can.

Please provide a dmesg.


Index: re.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/re.c,v
retrieving revision 1.94
diff -u -p -r1.94 re.c
--- re.c        11 Oct 2008 23:49:05 -0000      1.94
+++ re.c        12 Oct 2008 05:10:13 -0000
@@ -1976,7 +1976,10 @@ re_init(struct ifnet *ifp)
        } else
                CSR_WRITE_4(sc, RL_TXCFG, RL_TXCFG_CONFIG);
 
-       CSR_WRITE_1(sc, RL_EARLY_TX_THRESH, 16);
+       if (sc->sc_hwrev == RL_HWREV_8139CPLUS)
+               CSR_WRITE_1(sc, RL_EARLY_TX_THRESH, 16);
+       else
+               CSR_WRITE_1(sc, RL_EARLY_TX_THRESH, RL_EARLYTXTHRESH_CNT);
 
        CSR_WRITE_4(sc, RL_RXCFG, RL_RXCFG_CONFIG);
 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to