Re: [PATCH 7/9] IB/core: generic RDMA READ/WRITE API

Bart Van Assche
2016-02-29T23:12:55Z

On 02/29/2016 02:20 PM, Christoph Hellwig wrote:
> +static inline u32 rdma_rw_max_sge(struct ib_device *dev,
> + enum dma_data_direction dir)
> +{
> + return dir == DMA_TO_DEVICE ?
> + dev->attrs.max_sge : dev->attrs.max_sge_rd;
> +}

Hi Christoph,

Are you aware that using max_sge is safe for some but not for all HCAs?
See also http://thread.gmane.org/gmane.linux.drivers.rdma/22043.

Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html