From eabfd1a9650808e15a6141c1e2b961ec7fa7be8e Mon Sep 17 00:00:00 2001 From: yongari Date: Thu, 11 Jul 2013 08:42:17 +0000 Subject: [PATCH] MFC r245867: For 57765 class controllers, set low watermark max receive frames to 1. git-svn-id: svn://svn.freebsd.org/base/stable/8@253198 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/dev/bge/if_bge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 04abbaa14..515bbf424 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -5466,7 +5466,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); -- 2.45.0