IB/core: Improve ib_map_mr_sg() documentation
PATCH 1/1 IB/core: Improve ib_map_mr_sg() documentation
Document that ib_map_mr_sg() is able to map physically discontiguous sg-lists as a single MR. Change IB_MR_TYPE_SG_GAPS_REG into IB_MR_TYPE_SG_GAPS.
--- drivers/infiniband/core/verbs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/infiniband/core/verbs.c +4 -4
@@ -1812,13 +1812,13 @@ EXPORT_SYMBOL(ib_set_vf_guid);* * Constraints: * - The first sg element is allowed to have an offset. -* - Each sg element must be aligned to page_size (or physically -* contiguous to the previous element). In case an sg element has a -* non contiguous offset, the mapping prefix will not include it. +* - Each sg element must either be aligned to page_size or virtually +* contiguous to the previous element. In case an sg element has a +* non-contiguous offset, the mapping prefix will not include it. * - The last sg element is allowed to have length less than page_size. * - If sg_nents total byte length exceeds the mr max_num_sge * page_size * then only max_num_sg entries will be mapped. -* - If the MR was allocated with type IB_MR_TYPE_SG_GAPS_REG, non of these +* - If the MR was allocated with type IB_MR_TYPE_SG_GAPS, none of these * constraints holds and the page_size argument is ignored. * * Returns the number of sg elements that were mapped to the memory region.
Signature · 6 lines
2.10.0 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Christoph Hellwig
Reviewed-byQuoted 3 lines · Bart Van Assche
Document that
ib_map_mr_sg()is able to map physically discontiguous sg-lists as a single MR. ChangeIB_MR_TYPE_SG_GAPS_REGintoIB_MR_TYPE_SG_GAPS.
Thanks a lot Bart, this look fine:
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Sagi Grimberg
Reviewed-byLooks good, thanks Bart
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Doug Ledford
AppliedQuoted 7 lines · Bart Van Assche
Document that
ib_map_mr_sg()is able to map physically discontiguous sg-lists as a single MR. ChangeIB_MR_TYPE_SG_GAPS_REGintoIB_MR_TYPE_SG_GAPS.Signed-off-by Bart Van Assche <[email protected]>Cc Sagi Grimberg <[email protected]>Cc Christoph Hellwig <[email protected]>
Thanks, applied.
Signature · 2 lines
Doug Ledford <[email protected]> GPG Key ID: 0E572FDD