svn commit: r227319 - head/sys/dev/ti

Pyun YongHyeon yongari at FreeBSD.org
Mon Nov 7 22:17:45 UTC 2011


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]))


More information about the svn-src-head mailing list