ibdev2netdev

Version 2

    ibdev2netdev is one of the most useful scripts in MLNX_OFED package as it maps the adapter port to the net device.

     

    References

     

    Usage

    1. Install MLNX_OFED, see for example, HowTo Install MLNX_OFED Driver.

     

    2. Run ibdev2netdev:

    # ibdev2netdev

    mlx4_0 port 1 ==> ib0 (Down)

    mlx4_0 port 2 ==> ib1 (Down)

    mlx5_0 port 1 ==> eth1 (Down)

    mlx5_1 port 1 ==> eth2 (Up)

    mlx5_2 port 1 ==> eth3 (Up)

    mlx5_3 port 1 ==> eth4 (Up)

     

    3. For more info on the adapter type run with the flag -v (verbose). It is useful when you have several adapters installed on one server.

    # ibdev2netdev -v

    0000:83:00.0 mlx4_0 (MT4103 - MT1521X02739) CX354A - ConnectX-3 Pro QSFP fw 2.40.7000 port 1 (INIT  ) ==> ib0 (Down)

    0000:83:00.0 mlx4_0 (MT4103 - MT1521X02739) CX354A - ConnectX-3 Pro QSFP fw 2.40.7000 port 2 (DOWN  ) ==> ib1 (Down)

    0000:05:00.0 mlx5_0 (MT4115 - MT1530X08454) CX456A - ConnectX-4 QSFP fw 12.19.2274 port 1 (DOWN  ) ==> eth1 (Down)

    0000:05:00.1 mlx5_1 (MT4115 - MT1530X08454) CX456A - ConnectX-4 QSFP fw 12.19.2274 port 1 (ACTIVE) ==> eth2 (Up)

    0000:81:00.0 mlx5_2 (MT4119 - MCX556A-ECAT) CX556A - ConnectX-5 QSFP28 fw 16.19.2274 port 1 (ACTIVE) ==> eth3 (Up)

    0000:81:00.1 mlx5_3 (MT4119 - MCX556A-ECAT) CX556A - ConnectX-5 QSFP28 fw 16.19.2274 port 1 (ACTIVE) ==> eth4 (Up)