# mstconfig 41:00.0 set LINK_TYPE_P1=1 LINK_TYPE_P2=1
Device #1:
----------
Device type: ConnectX3Pro
PCI device: 41:00.0
Configurations: Next Boot New
LINK_TYPE_P1 ETH(2) IB(1)
LINK_TYPE_P2 ETH(2) IB(1)
Apply new Configuration? ? (y/n) [n] : y
Applying... Done!
-I- Please reboot machine to load new configurations.
Using mstconfig to Set SR-IOV Parameters
In order to set SR-IOV parameters through mstconfig, use the following command line:
# mstconfig -d <device> set [SRIOV_EN=<0|1>] [NUM_OF_VFS=<NUM>]
Example: Turning on SR-IOV and enabling 8 Virtual Functions per Physical Function:
# mstconfig -d 41:00.0 set SRIOV_EN=1 NUM_OF_VFS=8
Device #1:
----------
Device type: ConnectX4
PCI device: 41:00.0
Configurations: Next Boot New
SRIOV_EN 0 1
NUM_OF_VFS 0 8
Apply new Configuration? ? (y/n) [n] : y Applying... Done!
-I- Please reboot machine to load new configurations.
Using mstconfig to Set Preboot Settings
For a full description of the preboot configurable parameters refer to Supported Configurations and
their Parametersunder "Preboot Settings".
Example: Enable boot option ROM on port 1, set boot retries to 3 and set the boot protocol toPXE.
# mstconfig -d 41:00.0 set BOOT_OPTION_ROM_EN_P1=1 BOOT_RETRY_CNT_P1=3
LEGACY_BOOT_PROTOCOL_P1=1
Device #1:
----------
Device type: ConnectX3Pro
PCI device: 41:00.0
Configurations: Next Boot New
BOOT_OPTION_ROM_EN_P1 False(0) True(1)
BOOT_RETRY_CNT_P1 0 3
LEGACY_BOOT_PROTOCOL_P1 2 1
Apply new Configuration? ? (y/n) [n] : y
Applying... Done!
-I- Please reboot machine to load new configurations.
Example: Configure VLAN ID to 3 on port 2