RDMA/nldev: Add support to dump device type and parent device if exists
authorMark Zhang <markzhang@nvidia.com>
Sun, 16 Jun 2024 16:08:41 +0000 (19:08 +0300)
committerLeon Romanovsky <leonro@nvidia.com>
Mon, 1 Jul 2024 12:38:05 +0000 (15:38 +0300)
commit294424839b5ec2ecd17f4c8409796846b2b8dd31
treee58a0213f4e61cfcbc692491b93c5c28255423af
parent060c642b2ab8b40b39f9db99c1d14c7d19ba507f
RDMA/nldev: Add support to dump device type and parent device if exists

If a device has a specific type or a parent device, dump them as well.

Example:
$ rdma dev show smi1
3: smi1: node_type ca fw 20.38.1002 node_guid 9803:9b03:009f:d5ef sys_image_guid 9803:9b03:009f:d5ee type smi parent ibp8s0f1

Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Link: https://lore.kernel.org/r/4c022e3e34b5de1254a3b367d502a362cdd0c53a.1718553901.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/core/nldev.c
include/uapi/rdma/rdma_netlink.h