OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
750fb16
)
mlx4_ib: set user mr attributes in struct ib_mr
author
Steve Wise
<swise@opengridcomputing.com>
Thu, 1 Mar 2018 21:58:06 +0000
(13:58 -0800)
committer
Doug Ledford
<dledford@redhat.com>
Thu, 8 Mar 2018 20:03:03 +0000
(15:03 -0500)
Setting iova, length, and page_size allows this information to be
seen via NLDEV netlink queries, which can aid in user rdma debugging.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/mr.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mlx4/mr.c
b/drivers/infiniband/hw/mlx4/mr.c
index
4975f3e
..
17f4f15
100644
(file)
--- a/
drivers/infiniband/hw/mlx4/mr.c
+++ b/
drivers/infiniband/hw/mlx4/mr.c
@@
-407,6
+407,9
@@
struct ib_mr *mlx4_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
goto err_mr;
mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key;
+ mr->ibmr.length = length;
+ mr->ibmr.iova = virt_addr;
+ mr->ibmr.page_size = 1U << shift;
return &mr->ibmr;