[ofa-general] Re: socket buffer accounting with UDP/ipoib
Michael S. Tsirkin
mst at dev.mellanox.co.il
Wed Jul 18 00:46:32 PDT 2007
> + ib_dma_sync_single_for_cpu(priv->ca, addr, IPOIB_BUF_SIZE,
> + DMA_FROM_DEVICE);
> + skb_copy_from_linear_data_offset(skb, IB_GRH_BYTES, new_skb->data,
> + wc->byte_len - IB_GRH_BYTES);
> + ib_dma_sync_single_for_device(priv->ca, addr, IPOIB_BUF_SIZE,
> + DMA_FROM_DEVICE);
BTW, why is ib_dma_sync_single_for_device necessary here?
--
MST
More information about the general
mailing list