[rds-devel] IB/rds: fix for "RDS RDMA mode does not work on QLogic HCAs"
Or Gerlitz
ogerlitz at voltaire.com
Sat Dec 6 22:30:34 PST 2008
Ralph Campbell wrote:
> @@ -789,15 +789,16 @@ int rds_ib_xmit_rdma(struct rds_connecti
>
> - remote_addr += sg_dma_len(scat);
> + remote_addr += len;
>
Andy, Ralph, lets be conservative/strict and stick to conversions...
that is use ib_sg_dma_len (below), OK?
Or.
> /**
> * ib_sg_dma_len - Return the DMA length from a scatter/gather entry
> * @dev: The device for which the DMA addresses were created
> * @sg: The scatter/gather entry
> */
> static inline unsigned int ib_sg_dma_len(struct ib_device *dev,
> struct scatterlist *sg)
> {
> if (dev->dma_ops)
> return dev->dma_ops->dma_len(dev, sg);
> return sg_dma_len(sg);
> }
>
>
>
More information about the rds-devel
mailing list