Don't reset Tx threshold value whenever xl_init_locked() is called.

Instead the threshould is initialized in device attach. Later the
threshold could be increased in Tx underrun error and the new
threshold should be used in xl_init_locked().
This commit is contained in:
Pyun YongHyeon 2006-08-12 02:05:13 +00:00
parent 005e7722ba
commit 87bd40393c

View File

@ -1479,6 +1479,9 @@ xl_attach(device_t dev)
else
sc->xl_type = XL_TYPE_90X;
/* Set the TX start threshold for best performance. */
sc->xl_tx_thresh = XL_MIN_FRAMELEN;
ifp->if_mtu = ETHERMTU;
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
ifp->if_ioctl = xl_ioctl;
@ -2848,7 +2851,6 @@ xl_init_locked(struct xl_softc *sc)
CSR_WRITE_1(sc, XL_TX_FREETHRESH, XL_PACKET_SIZE >> 8);
/* Set the TX start threshold for best performance. */
sc->xl_tx_thresh = XL_MIN_FRAMELEN;
CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_TX_SET_START|sc->xl_tx_thresh);
/*