]> git.baikalelectronics.ru Git - kernel.git/commit
IB: Set IOVA/LENGTH on IB_MR in core/uverbs layers
authorDaisuke Matsuda <matsuda-daisuke@fujitsu.com>
Wed, 21 Sep 2022 08:08:43 +0000 (17:08 +0900)
committerLeon Romanovsky <leon@kernel.org>
Thu, 22 Sep 2022 09:46:39 +0000 (12:46 +0300)
commitd49669c5b59bb9564a31a18f8ce6560c7ffe4886
tree688f084b5a24aa33f0e8efa1836504fdf11007b0
parentb7f5885f67643607507bc2689bafb8b1f1a688a9
IB: Set IOVA/LENGTH on IB_MR in core/uverbs layers

Set 'iova' and 'length' on ib_mr in ib_uverbs and ib_core layers to let all
drivers have the members filled. Also, this commit removes redundancy in
the respective drivers.

Previously, commit 962ad154d57b1 ("IB/uverbs: Set IOVA on IB MR in uverbs
layer") changed to set 'iova', but seems to have missed 'length' and the
ib_core layer at that time.

Fixes: 962ad154d57b1 ("IB/uverbs: Set IOVA on IB MR in uverbs layer")
Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com>
Link: https://lore.kernel.org/r/20220921080844.1616883-1-matsuda-daisuke@fujitsu.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/verbs.c
drivers/infiniband/hw/hns/hns_roce_mr.c
drivers/infiniband/hw/mlx4/mr.c