]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: Add print of link CapabilityMask2 flags
authorMichael Guralnik <michaelgur@mellanox.com>
Sun, 23 Dec 2018 11:24:19 +0000 (13:24 +0200)
committerDavid Ahern <dsahern@gmail.com>
Thu, 27 Dec 2018 23:41:21 +0000 (15:41 -0800)
commit40fc8c2cecdda1f64ad98314fa379adbb6cee458
tree426babda8af7858902b96578110bad948d4e8317
parent0c187b7f249676e233d9dc5b0d8b6050cdec4550
rdma: Add print of link CapabilityMask2 flags

CapabilityMask2 is defined in IBTA spec as a member of PortInfo.
Add translation to string of new CapabilityMask2 expansion of link caps.

The flags are concatenated to current caps print as seen in this example
printing EXT_INFO flag:

root@server-22 $ rdma -d link
1/1: mlx5_0/1: subnet_prefix fe80:0000:0000:0000 lid 2 sm_lid 2 lmc 0
state ACTIVE physical_state LINK_UP
caps: <SM, TRAP, SL_MAP, SYS_IMAGE_GUID, CABLE_INFO, EXTENDED_SPEEDS,
CAP_MASK2, CM, DEVICE_MGMT, VENDOR_CLASS, CAP_MASK_NOTICE,
CLIENT_REG, OTHER_LOCAL_CHANGES, MULT_PKER_TRAP, EXT_INFO>

Signed-off-by: Michael Guralnik <michaelgur@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
rdma/link.c