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 target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html