summaryrefslogtreecommitdiffstats
path: root/sys/dev/re
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2010-11-15 00:06:19 +0000
committeryongari <yongari@FreeBSD.org>2010-11-15 00:06:19 +0000
commit358aa55f020dadf90b4b4fdb6ff6d84c6703f7e5 (patch)
treed4b9e4fe8b2e7d1b2c494063eb2dd852bd81bd7a /sys/dev/re
parent1bdd9a86072258a0f0ab29b2cc1cf9e59b01310e (diff)
downloadFreeBSD-src-358aa55f020dadf90b4b4fdb6ff6d84c6703f7e5.zip
FreeBSD-src-358aa55f020dadf90b4b4fdb6ff6d84c6703f7e5.tar.gz
Add flow control for all re(4) controllers. re(4) controllers do
not provide any MAC configuration interface for resolved flow control parameters. There is even no register that configures water mark which will control generation of pause frames. However enabling flow control surely enhanced performance a lot.
Diffstat (limited to 'sys/dev/re')
-rw-r--r--sys/dev/re/if_re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c
index 35326cb..4df624b 100644
--- a/sys/dev/re/if_re.c
+++ b/sys/dev/re/if_re.c
@@ -1449,7 +1449,7 @@ re_attach(device_t dev)
if (sc->rl_type == RL_8169)
phy = 1;
error = mii_attach(dev, &sc->rl_miibus, ifp, re_ifmedia_upd,
- re_ifmedia_sts, BMSR_DEFCAPMASK, phy, MII_OFFSET_ANY, 0);
+ re_ifmedia_sts, BMSR_DEFCAPMASK, phy, MII_OFFSET_ANY, MIIF_DOPAUSE);
if (error != 0) {
device_printf(dev, "attaching PHYs failed\n");
goto fail;
OpenPOWER on IntegriCloud