Sure, the syntax is very simple:
Server:
# ib_send_bw -s 1025
Client:
# ib_send_bw <server ip> -s 1025
Please see the screen shot attached.
By the way, here is the output of ibv_devinfo. By default, the ib_send_bw will choose mlx5_1. However, even I use "-d mlx5_0" or "-d mlx5_1" to specify either port, the same problem exists.
hca_id: mlx5_1
transport: InfiniBand (0)
fw_ver: 12.14.2036
node_guid: 7cfe:9003:0032:797b
sys_image_guid: 7cfe:9003:0032:797a
vendor_id: 0x02c9
vendor_part_id: 4115
hw_ver: 0x0
board_id: MT_2190110032
phys_port_cnt: 1
Device ports:
port: 1
state: PORT_ACTIVE (4)
max_mtu: 4096 (5)
active_mtu: 4096 (5)
sm_lid: 0
port_lid: 0
port_lmc: 0x00
link_layer: Ethernet
hca_id: mlx5_0
transport: InfiniBand (0)
fw_ver: 12.14.2036
node_guid: 7cfe:9003:0032:797a
sys_image_guid: 7cfe:9003:0032:797a
vendor_id: 0x02c9
vendor_part_id: 4115
hw_ver: 0x0
board_id: MT_2190110032
phys_port_cnt: 1
Device ports:
port: 1
state: PORT_ACTIVE (4)
max_mtu: 4096 (5)
active_mtu: 4096 (5)
sm_lid: 1
port_lid: 1
port_lmc: 0x00
link_layer: InfiniBand