[ofa-general] 4k MTU patch
Shirley Ma
mashirle at us.ibm.com
Mon Feb 4 22:05:46 PST 2008
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
More information about the general
mailing list