Skip to content

Commit 5274612

Browse files
Bart Van Asschedledford
authored andcommitted
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. Signed-off-by: Bart Van Assche <[email protected]> Cc: Sagi Grimberg <[email protected]> Cc: Christoph Hellwig <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent fd10ed8 commit 5274612

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/infiniband/core/verbs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,13 +1811,13 @@ EXPORT_SYMBOL(ib_set_vf_guid);
18111811
*
18121812
* Constraints:
18131813
* - The first sg element is allowed to have an offset.
1814-
* - Each sg element must be aligned to page_size (or physically
1815-
* contiguous to the previous element). In case an sg element has a
1816-
* non contiguous offset, the mapping prefix will not include it.
1814+
* - Each sg element must either be aligned to page_size or virtually
1815+
* contiguous to the previous element. In case an sg element has a
1816+
* non-contiguous offset, the mapping prefix will not include it.
18171817
* - The last sg element is allowed to have length less than page_size.
18181818
* - If sg_nents total byte length exceeds the mr max_num_sge * page_size
18191819
* then only max_num_sg entries will be mapped.
1820-
* - If the MR was allocated with type IB_MR_TYPE_SG_GAPS_REG, non of these
1820+
* - If the MR was allocated with type IB_MR_TYPE_SG_GAPS, none of these
18211821
* constraints holds and the page_size argument is ignored.
18221822
*
18231823
* Returns the number of sg elements that were mapped to the memory region.

0 commit comments

Comments
 (0)