From: Sepherosa Ziehau Date: Mon, 23 Jul 2012 09:17:58 +0000 (+0800) Subject: bnx: Enable MBUF low attention on buffer manager X-Git-Tag: v3.2.0~531 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/e5eebe342acec0b3ae33d186af2e2e9060f41909 bnx: Enable MBUF low attention on buffer manager According-to: tg3 --- diff --git a/sys/dev/netif/bnx/if_bnx.c b/sys/dev/netif/bnx/if_bnx.c index e0cce2ab88..3f247db6cc 100644 --- a/sys/dev/netif/bnx/if_bnx.c +++ b/sys/dev/netif/bnx/if_bnx.c @@ -1191,6 +1191,10 @@ bnx_blockinit(struct bnx_softc *sc) */ if (sc->bnx_asicrev == BGE_ASICREV_BCM5719) val |= BGE_BMANMODE_NO_TX_UNDERRUN; + if (sc->bnx_asicrev == BGE_ASICREV_BCM5717 || + sc->bnx_chipid == BGE_CHIPID_BCM5719_A0 || + sc->bnx_chipid == BGE_CHIPID_BCM5720_A0) + val |= BGE_BMANMODE_LOMBUF_ATTN; CSR_WRITE_4(sc, BGE_BMAN_MODE, val); /* Poll for buffer manager start indication */