Skip to content

Instantly share code, notes, and snippets.

@mikewebb70
Last active March 12, 2021 02:20
Show Gist options
  • Save mikewebb70/97db63d7d86c0c24c6784b78055f0ee4 to your computer and use it in GitHub Desktop.
Save mikewebb70/97db63d7d86c0c24c6784b78055f0ee4 to your computer and use it in GitHub Desktop.
#
# Commands to set protocol type between ehternet and infiniband on Mellanox ConnectX-3 VPI network cards
# LINK_TYPE 2 = Eth
# LINK_TYPE 1 = IB
# LINK_TYPE 3 = VPI
#
"C:\Program Files\Mellanox\WinMFT\mst.exe" status
MST devices:
------------
mt4099_pci_cr0
mt4099_pciconf0
#
#
#
#
"C:\Program Files\Mellanox\WinMFT\mlxconfig.exe" -d mt4099_pci_cr0 set LINK_TYPE_P1=2 LINK_TYPE_P2=1
Device #1:
----------
Device type: ConnectX3
Device: mt4099_pci_cr0
Configurations: Next Boot New
LINK_TYPE_P1 ETH(2) ETH(2)
LINK_TYPE_P2 ETH(2) IB(1)
Apply new Configuration? ? (y/n) [n] : y
Applying... Done!
-I- Please reboot machine to load new configurations.
#
#
#
C:\Program Files\Mellanox\WinMFT>mlxconfig.exe -d mt4099_pciconf0 set LINK_TYPE_P1=2 LINK_TYPE_P2=1
Device #1:
----------
Device type: ConnectX3
Device: mt4099_pciconf0
Configurations: Next Boot New
LINK_TYPE_P1 ETH(2) ETH(2)
LINK_TYPE_P2 IB(1) IB(1)
Apply new Configuration? ? (y/n) [n] : y
Applying... Done!
-I- Please reboot machine to load new configurations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment