]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: Add support to get MR in raw format
authorMaor Gottlieb <maorg@mellanox.com>
Wed, 24 Jun 2020 10:40:12 +0000 (13:40 +0300)
committerDavid Ahern <dsahern@kernel.org>
Sun, 5 Jul 2020 18:11:37 +0000 (18:11 +0000)
commite2bbf737e61bbdc3253c037af72c8ac95606a5c1
treed48687be06f8b00661bb03d947f8f32863cdb139
parent94323e96119a4fc3e575d295a9e1e6745281e3bb
rdma: Add support to get MR in raw format

Add the required support to print MR data in raw format.
Example:

$rdma res show mr dev mlx5_1 mrn 2 -r -j
[{"ifindex":7,"ifname":"mlx5_1",
"data":[0,4,255,254,0,0,0,0,0,0,0,0,16,28,0,216,...]}]

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
rdma/res-mr.c
rdma/res.h