From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sagi Grimberg Subject: Re: Kernel fast memory registration API proposal [RFC] Date: Sun, 19 Jul 2015 08:45:26 +0300 Message-ID: <55AB3976.7060202@dev.mellanox.co.il> References: <559F8BD1.9080308@dev.mellanox.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <559F8BD1.9080308-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Christoph Hellwig , Jason Gunthorpe Cc: Steve Wise , Or Gerlitz , Oren Duer , Chuck Lever , Bart Van Assche , Liran Liss , "Hefty, Sean" , Doug Ledford , Tom Talpey List-Id: linux-rdma@vger.kernel.org > /** > * 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... Current users will just pass PAGE_SIZE. Thoughts? -- 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