bnx: Using 57765_FAMILY to conf Low Watermark Maximum Receive Frame Register
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 22 Jul 2012 13:23:39 +0000 (21:23 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 26 Jul 2012 09:21:19 +0000 (17:21 +0800)
sys/dev/netif/bnx/if_bnx.c

index e9865ca..e0cce2a 100644 (file)
@@ -3021,7 +3021,7 @@ bnx_init(void *xsc)
         * this number of frames, it will drop subsequent incoming
         * frames until the MBUF High Watermark is reached.
         */
-       if (sc->bnx_asicrev == BGE_ASICREV_BCM57765)
+       if (BNX_IS_57765_FAMILY(sc))
                CSR_WRITE_4(sc, BGE_MAX_RX_FRAME_LOWAT, 1);
        else
                CSR_WRITE_4(sc, BGE_MAX_RX_FRAME_LOWAT, 2);