Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save therevoman/7457c5865d62d78f8f2bcb20c0c67396 to your computer and use it in GitHub Desktop.
Save therevoman/7457c5865d62d78f8f2bcb20c0c67396 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
#
"# mst.exe status"
MST devices:
------------
mt4099_pci_cr0
mt4099_pciconf0
#
#
#
#
$ mlxconfig -d mt4099_pci_cr0 set LINK_TYPE_P1=2 LINK_TYPE_P2=2
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) ETH(2)
Apply new Configuration? ? (y/n) [n] : y
Applying... Done!
-I- Please reboot machine to load new configurations.
#
#
#
$ mlxconfig.exe -d mt4099_pciconf0 set LINK_TYPE_P1=2 LINK_TYPE_P2=2
Device #1:
----------
Device type: ConnectX3
Device: mt4099_pciconf0
Configurations: Next Boot New
LINK_TYPE_P1 ETH(2) ETH(2)
LINK_TYPE_P2 IB(1) ETH(2)
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