# lspci | grep Mellanox 01:00.0 InfiniBand: Mellanox Technologies MT26428 [ConnectX IB QDR, PCIe 2.0 5GT/s] (rev b0) #echo ib > /sys/bus/pci/devices/0000\:01\:00.0/mlx4_port1 #echo eth > /sys/bus/pci/devices/0000\:01\:00.0/mlx4_port2
mlxconfig -d /dev/mst/mt4119_pciconf0 q mlxconfig -d /dev/mst/mt4119_pciconf0 set LINK_TYPE_P1=2