bnx: Enable MBUF low attention on buffer manager
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 23 Jul 2012 09:17:58 +0000 (17:17 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 26 Jul 2012 09:21:19 +0000 (17:21 +0800)
According-to: tg3

sys/dev/netif/bnx/if_bnx.c

index e0cce2a..3f247db 100644 (file)
@@ -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 */