Date: Mon, 7 Nov 2011 22:17:45 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r227319 - head/sys/dev/ti Message-ID: <201111072217.pA7MHjgr098815@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yongari Date: Mon Nov 7 22:17:44 2011 New Revision: 227319 URL: http://svn.freebsd.org/changeset/base/227319 Log: Mini ring is not available on Tigon 1 so do not create DMA maps for mini ring on Tigon 1 to save resources. Modified: head/sys/dev/ti/if_ti.c Modified: head/sys/dev/ti/if_ti.c ============================================================================== --- head/sys/dev/ti/if_ti.c Mon Nov 7 22:11:38 2011 (r227318) +++ head/sys/dev/ti/if_ti.c Mon Nov 7 22:17:44 2011 (r227319) @@ -998,6 +998,11 @@ ti_alloc_dmamaps(struct ti_softc *sc) &sc->ti_cdata.ti_rx_jumbo_maps[i])) return (ENOBUFS); } + + /* Mini ring is not available on Tigon 1. */ + if (sc->ti_hwrev == TI_HWREV_TIGON) + return (0); + for (i = 0; i < TI_MINI_RX_RING_CNT; i++) { if (bus_dmamap_create(sc->ti_mbufrx_dmat, 0, &sc->ti_cdata.ti_rx_mini_maps[i]))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111072217.pA7MHjgr098815>