On Sun, Jul 19, 2015 at 08:45:26AM +0300, Sagi Grimberg wrote: > > >/** > > * ib_mr_set_sg() - populate memory region buffers > > * array from a SG list > > * @mr: memory region > > * @sg: sg list > > * @sg_nents: number of elements in the sg > > * > > * Can fail if the HW is not able to register this > > * sg list. In case of failure - caller is responsible > > * to handle it (bounce-buffer, multiple registrations...) > > */ > >int ib_mr_set_sg(struct ib_mr *mr, > > struct scatterlist *sg, > > unsigned short sg_nents); > > I'm thinking now that this should have an input argument > of block_size. Maybe in the future ULPs would want to register > huge pages, it will be a shame to map it into PAGE_SIZE chunks... Why wouldn't it just transparently support huge pages? sg seems to have enough information. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html