Displaying the RDMA information for a PCI function

Use the ibv_devinfo command to display RDMA information for your PCI function. Depending on your distribution, the package that includes this command might be called libibverbs-utils or ibverbs-utils.

About this task

RDMA is based on the InfiniBand communications standard, so the RDMA properties of a network adapter PCI function include InfiniBand properties.

Procedure

  1. Issue ibv_devinfo -l to list your PCI functions.
    Example: This example lists 4 PCI functions:
    # ibv_devinfo -l
    4 HCAs found:
            mlx5_0
            mlx5_1
            mlx5_2
            mlx5_3

    The listed identifiers match the InfiniBand device names as listed by the smc_rnics command with the -I option.

  2. Issue ibv_devinfo -d, followed by the PCI function of interest as listed by ibv_devinfo -l.
    Example: This example list details for the PCI function with device name mlx5_1.
    # ibv_devinfo -d mlx5_1
    hca_id: mlx5_1
            transport:                InfiniBand (0)
            fw_ver:                   14.25.1020
            node_guid:                9928:1bfe:ff9b:1082
            sys_image_guid:           9803:9b03:001b:2898
            vendor_id:                0x02c9
            vendor_part_id:           4118
            hw_ver:                   0x0
            board_id:                 IBM0000000016
            phys_port_cnt:            1
                    port:                    1
                    state:                   PORT_ACTIVE (4)
                    max_mtu:                 4096 (5)
                    active_mtu:              1024 (3)
                    sm_lid:                  0
                    port_lid:                0
                    port_lmc: 0x00
                    link_layer: Ethernet
    The displayed information includes the maximum supported MTU and the current, active MTU. The state attribute indicates whether an active connection is using the port.