From owner-svn-src-projects@FreeBSD.ORG Sat Nov 9 19:43:16 2013 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D374576F; Sat, 9 Nov 2013 19:43:16 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C10C92F48; Sat, 9 Nov 2013 19:43:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rA9JhGvc012260; Sat, 9 Nov 2013 19:43:16 GMT (envelope-from marcel@svn.freebsd.org) Received: (from marcel@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rA9JhGo5012259; Sat, 9 Nov 2013 19:43:16 GMT (envelope-from marcel@svn.freebsd.org) Message-Id: <201311091943.rA9JhGo5012259@svn.freebsd.org> From: Marcel Moolenaar Date: Sat, 9 Nov 2013 19:43:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r257893 - projects/altix2/sys/dev/bge X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Nov 2013 19:43:16 -0000 Author: marcel Date: Sat Nov 9 19:43:16 2013 New Revision: 257893 URL: http://svnweb.freebsd.org/changeset/base/257893 Log: Use the correct map to setup the jumbo RX ring entry. Modified: projects/altix2/sys/dev/bge/if_bge.c Modified: projects/altix2/sys/dev/bge/if_bge.c ============================================================================== --- projects/altix2/sys/dev/bge/if_bge.c Sat Nov 9 18:46:11 2013 (r257892) +++ projects/altix2/sys/dev/bge/if_bge.c Sat Nov 9 19:43:16 2013 (r257893) @@ -1408,7 +1408,7 @@ bge_newbuf_jumbo(struct bge_softc *sc, i r->bge_flags = BGE_RXBDFLAG_JUMBO_RING | BGE_RXBDFLAG_END; r->bge_idx = i; r->bge_len3 = r->bge_len2 = r->bge_len1 = 0; - map = sc->bge_cdata.bge_rx_jumbo_sparemap; + map = sc->bge_cdata.bge_rx_jumbo_dmamap[i]; nsegs = busdma_md_get_nsegs(map); switch (nsegs) { case 4: @@ -1444,7 +1444,7 @@ bge_newbuf_jumbo(struct bge_softc *sc, i panic("%s: %d segments\n", __func__, nsegs); } - busdma_sync(sc->bge_cdata.bge_rx_jumbo_dmamap[i], BUSDMA_SYNC_PREREAD); + busdma_sync(map, BUSDMA_SYNC_PREREAD); return (0); }