diff options
author | yongari <yongari@FreeBSD.org> | 2010-11-26 02:10:56 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2010-11-26 02:10:56 +0000 |
commit | 0d004de9dc63a89a54644e5dea11dc21114b3040 (patch) | |
tree | 36c4fb1126c0bc1a4a530c27d213b104173df9f1 /sys/dev/alc | |
parent | a634d013fdd965755a1a03899a21832f31aca5c3 (diff) | |
download | FreeBSD-src-0d004de9dc63a89a54644e5dea11dc21114b3040.zip FreeBSD-src-0d004de9dc63a89a54644e5dea11dc21114b3040.tar.gz |
Enable ethernet flow-control on all alc(4) controllers. This change
should reduce a lot of dropped frames under high network load.
Diffstat (limited to 'sys/dev/alc')
-rw-r--r-- | sys/dev/alc/if_alc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c index aee0e10..7b23fae 100644 --- a/sys/dev/alc/if_alc.c +++ b/sys/dev/alc/if_alc.c @@ -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); } |