Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2013 02:25:44 +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: r245867 - head/sys/dev/bge
Message-ID:  <201301240225.r0O2PiuH049468@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Thu Jan 24 02:25:43 2013
New Revision: 245867
URL: http://svnweb.freebsd.org/changeset/base/245867

Log:
  For 57765 class controllers, set low watermark max receive frames to 1.

Modified:
  head/sys/dev/bge/if_bge.c

Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c	Thu Jan 24 02:20:25 2013	(r245866)
+++ head/sys/dev/bge/if_bge.c	Thu Jan 24 02:25:43 2013	(r245867)
@@ -5427,7 +5427,7 @@ bge_init_locked(struct bge_softc *sc)
 	 * this number of frames, it will drop subsequent incoming
 	 * frames until the MBUF High Watermark is reached.
 	 */
-	if (sc->bge_asicrev == BGE_ASICREV_BCM57765)
+	if (BGE_IS_57765_PLUS(sc))
 		CSR_WRITE_4(sc, BGE_MAX_RX_FRAME_LOWAT, 1);
 	else
 		CSR_WRITE_4(sc, BGE_MAX_RX_FRAME_LOWAT, 2);



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