[openib-general] Re: use of virt_to_phys in sdp

Libor Michalek libor at topspin.com
Fri May 13 09:47:26 PDT 2005


On Fri, May 13, 2005 at 05:06:00PM +0300, Michael S. Tsirkin wrote:
> Use of virt_to_phys looks wrong in sdp_recv and sdp_send.
> Must not the DMA API be used to get the physical address
> to be put in ib_sge?

  It is incorrect. The regular send/recv path uses the DMA API correctly,
but RDMA to internal buffers on both the send and receive path is still
using plain old virt_to_phys. Also, does FMR map/unmap use the DMA API,
or does that need to be taken care of as well?

-Libor



More information about the general mailing list