Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 2010 00:06:19 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215329 - head/sys/dev/re
Message-ID:  <201011150006.oAF06JcI098152@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Mon Nov 15 00:06:19 2010
New Revision: 215329
URL: http://svn.freebsd.org/changeset/base/215329

Log:
  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:
  head/sys/dev/re/if_re.c

Modified: head/sys/dev/re/if_re.c
==============================================================================
--- head/sys/dev/re/if_re.c	Sun Nov 14 23:53:13 2010	(r215328)
+++ head/sys/dev/re/if_re.c	Mon Nov 15 00:06:19 2010	(r215329)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011150006.oAF06JcI098152>