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

Add 'raw' argument to get the resource in raw format.
When RDMA_NLDEV_ATTR_RES_RAW is set in the netlink message,
then the resource fields are in raw format, print it as byte array.

Example:
$rdma res show qp link rocep0s12f0/1 lqpn 1137 -j -r
[{"ifindex":7,"ifname":"mlx5_1","port":1,
"data":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,...]}]

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
man/man8/rdma-resource.8
man/man8/rdma.8
rdma/rdma.c
rdma/rdma.h
rdma/res-qp.c
rdma/res.h
rdma/utils.c