I looked the patch file, it is ib_dma_unmap_page() before. I wonder why
all my tests have been passed without any problem. The mistake was made
when manually merging it. Sorry for the trouble in last min.

> +static inline void ipoib_ud_dma_unmap_rx(struct ipoib_dev_priv *priv,
> +                                        u64 *mapping)
> +{
> +       if (ipoib_ud_need_sg(priv->max_ib_mtu) {
> +               ib_dma_unmap_single(priv->ca, mapping[0], IPOIB_UD_HEAD_SIZE, 
> DMA_FROM_DEVICE);
> +               ib_dma_unmap_page(priv->ca, mapping[1], PAGE_SIZE, 
> DMA_FROM_DEVICE);
> +       } else
> +               ib_dma_unmap_single(priv->ca, mapping[0],
> +                                   IPOIB_UD_BUF_SIZE(priv->max_ib_mtu),
> +                                   DMA_FROM_DEVICE);
> +}
> 
> and something similar for allocating.

Ok, I can change it but it doesn't save anything.

Thanks
Shirley

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to