Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2002 14:41:47 -0700
From:      "Sam Leffler (at Usenix)" <sam@usenix.org>
To:        "Andrew Gallatin" <gallatin@cs.duke.edu>, "Bosko Milekic" <bmilekic@unixdaemons.com>
Cc:        <ken@FreeBSD.ORG>, <freebsd-net@FreeBSD.ORG>
Subject:   Re: Jumbo Clusters in mb_alloc
Message-ID:  <016001c23fed$93832640$52557f42@errno.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?016001c23fed$93832640$52557f42>