rdma: Add link option and parsing
Add link object interface together with port capability parsing command
$ rdma link
1/1: mlx5_0/1: caps 0x20
2/1: mlx5_1/1: caps 0x20
3/1: mlx5_2/1: caps 0x20
4/1: mlx5_3/1: caps 0x4010000
5/1: mlx5_4/1: caps 0x20
$ rdma link show mlx5_4
5/1: mlx5_4/1: caps 0x20
$ rdma link show mlx5_3 caps
4/1: mlx5_3/1: caps 0x4010000
Bit Description
------------------------------------------
16 PORT_CM
26 PORT_IP_BASED_GIDS
$ rdma link show mlx5_4/1 caps
5/1: mlx5_4/1: caps 0x20
Bit Description
------------------------------------------
05 PORT_AUTO_MIGR
$ rdma link show mlx5_4/1 caps_flags
Unknown parameter 'caps_flags'
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
5 files changed