本文轉自:
http://www.ibm.com/support/knowledgecenter/en/linuxonibm/performance/howtos/verifyrdma.htm
Use the ibv_devinfo command to verify that the ports are active.
Procedure
To view the port status of your hardware, run the ibv_devinfo command and look for the following output: Note:
- In the following output, the port_lid return refers to the local identifier (LID) of that port. This LID is unique within the InfiniBand subnet.
- The port: 1 return refers to the first physical port on the adapter.
例子:
[[email protected] ~]# ibv_devinfo
hca_id: mlx4_0
transport: InfiniBand (0)
fw_ver: 2.35.5100
node_guid: 248a:0703:005d:07f0
sys_image_guid: 248a:0703:005d:07f3
vendor_id: 0x02c9
vendor_part_id: 4099
hw_ver: 0x1
board_id: MT_1090120019
phys_port_cnt: 2
port: 1
state: PORT_ACTIVE (4)
max_mtu: 4096 (5)
active_mtu: 4096 (5)
sm_lid: 4
port_lid: 4
port_lmc: 0x00
link_layer: InfiniBand
port: 2
state: PORT_ACTIVE (4)
max_mtu: 4096 (5)
active_mtu: 4096 (5)
sm_lid: 8
port_lid: 12
port_lmc: 0x00
link_layer: InfiniBand
[[email protected] ~]#