History

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

Mark Zhang committed 2 years ago

Commit 29442481 parent 060c6422 files · +12 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/rdma/rdma_netlink.h+2−0
@@ -570,6 +570,8 @@ enum rdma_nldev_attr { · 569 unmodified lines
570570
571571 RDMA_NLDEV_ATTR_DEV_TYPE, /* u8 */
572572
573+ RDMA_NLDEV_ATTR_PARENT_NAME, /* string */
574+
573575 /*
574576 * Always the end
575577 */