svn commit: r216032 - stable/7/sys/dev/re

Pyun YongHyeon yongari at FreeBSD.org
Mon Nov 29 01:43:17 UTC 2010


Author: yongari
Date: Mon Nov 29 01:43:17 2010
New Revision: 216032
URL: http://svn.freebsd.org/changeset/base/216032

Log:
  MFC r215329:
    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.

Modified:
  stable/7/sys/dev/re/if_re.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/re/if_re.c
==============================================================================
--- stable/7/sys/dev/re/if_re.c	Mon Nov 29 01:41:56 2010	(r216031)
+++ stable/7/sys/dev/re/if_re.c	Mon Nov 29 01:43:17 2010	(r216032)
@@ -1450,7 +1450,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;


More information about the svn-src-stable-7 mailing list