[openib-general] ib_post_recv buffer re-use

Roland Dreier roland at topspin.com
Mon Jun 20 14:19:34 PDT 2005


    Andrei> Application I'm working on needs to receive and process
    Andrei> messages from RQ, so I dma_map and ib_post_recv pool of
    Andrei> buffers. Then after I receive a message I plan to reuse
    Andrei> already mapped buffer for consequent ib_post_recv. Is that
    Andrei> safe? Should I worry about dma syncronisation?

In general it's not safe for the CPU to touch DMA buffers without
unmapping them first.  However you could look at the dma_sync_xxx API
to see if that fits what you're trying to do.

 - R.




More information about the general mailing list