bnx: Adjust RX/TX ring limit for BCM57785 family
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 22 Jul 2012 10:52:55 +0000 (18:52 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 26 Jul 2012 09:21:18 +0000 (17:21 +0800)
sys/dev/netif/bnx/if_bnx.c

index 775a6fa..3dfc6f8 100644 (file)
@@ -1325,6 +1325,8 @@ bnx_blockinit(struct bnx_softc *sc)
         */
        if (BNX_IS_5717_PLUS(sc))
                limit = 4;
+       else if (BNX_IS_57765_FAMILY(sc))
+               limit = 2;
        else
                limit = 1;
        vrcb = BGE_MEMWIN_START + BGE_SEND_RING_RCB;
@@ -1359,7 +1361,7 @@ bnx_blockinit(struct bnx_softc *sc)
        if (BNX_IS_5717_PLUS(sc)) {
                /* Should be 17, use 16 until we get an SRAM map. */
                limit = 16;
-       } else if (sc->bnx_asicrev == BGE_ASICREV_BCM57765) {
+       } else if (BNX_IS_57765_FAMILY(sc)) {
                limit = 4;
        } else {
                limit = 1;