From owner-freebsd-net Fri Aug 9 14:42: 6 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBEDE37B400; Fri, 9 Aug 2002 14:42:03 -0700 (PDT) Received: from usenix.org (voyager.usenix.org [131.106.3.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66A0F43E70; Fri, 9 Aug 2002 14:42:03 -0700 (PDT) (envelope-from sam@usenix.org) Received: from melange (melange.errno.com [66.127.85.82]) (authenticated (0 bits)) by usenix.org (Switch-2.1.3/Switch-2.1.0) with ESMTP id g79LflS04462 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified NO); Fri, 9 Aug 2002 14:41:53 -0700 (PDT) Message-ID: <016001c23fed$93832640$52557f42@errno.com> From: "Sam Leffler (at Usenix)" To: "Andrew Gallatin" , "Bosko Milekic" Cc: , References: <20020809151627.A88180@unixdaemons.com><15700.9669.885383.727182@grasshopper.cs.duke.edu><20020809164136.A88798@unixdaemons.com> <15700.13575.470677.723138@grasshopper.cs.duke.edu> Subject: Re: Jumbo Clusters in mb_alloc Date: Fri, 9 Aug 2002 14:41:47 -0700 Organization: Usenix Association MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-DCC-Usenix-Metrics: voyager 1010; Body=4 Fuz1=4 Fuz2=4 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Ideally, I'd love to see an interface where I call a function > dma_map_mbuf_chain (m, ...) and get back an array of DMA addresses. > Hmm.. WWNBD (what would NetBSD do..). > > Ah, yes: > > bus_dmamap_load_mbuf(sc->sc_dmat, dmamap, m0, > BUS_DMA_WRITE|BUS_DMA_NOWAIT) != 0) { > MGETHDR(m, M_DONTWAIT, MT_DATA); > > Methinks its high time we adopted this interface. I use bus_dmamap_load_mbuf (and _uio) in the crypto drivers I import from openbsd. I think it would be good to adopt this interface. Sam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message