mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Enable ethernet flow-control on all alc(4) controllers. This change
should reduce a lot of dropped frames under high network load.
This commit is contained in:
parent
fc519a189b
commit
9f4e8f4601
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215850
@ -974,7 +974,7 @@ alc_attach(device_t dev)
|
||||
/* Set up MII bus. */
|
||||
error = mii_attach(dev, &sc->alc_miibus, ifp, alc_mediachange,
|
||||
alc_mediastatus, BMSR_DEFCAPMASK, sc->alc_phyaddr, MII_OFFSET_ANY,
|
||||
0);
|
||||
MIIF_DOPAUSE);
|
||||
if (error != 0) {
|
||||
device_printf(dev, "attaching PHYs failed\n");
|
||||
goto fail;
|
||||
@ -2475,12 +2475,10 @@ alc_mac_config(struct alc_softc *sc)
|
||||
}
|
||||
if ((IFM_OPTIONS(mii->mii_media_active) & IFM_FDX) != 0) {
|
||||
reg |= MAC_CFG_FULL_DUPLEX;
|
||||
#ifdef notyet
|
||||
if ((IFM_OPTIONS(mii->mii_media_active) & IFM_ETH_TXPAUSE) != 0)
|
||||
reg |= MAC_CFG_TX_FC;
|
||||
if ((IFM_OPTIONS(mii->mii_media_active) & IFM_ETH_RXPAUSE) != 0)
|
||||
reg |= MAC_CFG_RX_FC;
|
||||
#endif
|
||||
}
|
||||
CSR_WRITE_4(sc, ALC_MAC_CFG, reg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user