mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
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:
parent
005e7722ba
commit
87bd40393c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161239
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user