svn commit: r245867 - head/sys/dev/bge
Pyun YongHyeon
yongari at FreeBSD.org
Thu Jan 24 02:25:44 UTC 2013
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);
More information about the svn-src-head
mailing list