Networking ESXi Driver User Manual

Module Parameters

Setting and Viewing Driver Parameter Values

A comprehensive guide is available at https://knowledge.broadcom.com/external/article/310348/configuring-advanced-driver-module-param.html

Set Parameters

Parameter settings are persistent across reboots.

Bash
esxcfg-module -s "param1=value1 param2=value2" nmlx5_core
esxcfg-module -s "param1=value1" nmlx5_rdma

Set Array Parameters

Bash
esxcfg-module -s "max_vfs=8,8" nmlx5_core

View Currently Configured Parameters

Bash
esxcfg-module -g nmlx5_core
esxcfg-module -g nmlx5_rdma

List Available Parameters and Descriptions

Bash
esxcli system module parameters list -m nmlx5_core
esxcli system module parameters list -m nmlx5_rdma

Parameters

nmlx5_core

Parameter

Description

Type

Default

Range

Notes

max_vfs

Number of PCI VFs to initialize per PF/port

uint[]

0

0–128 per entry (device may limit); max 16 entries; 0 = disabled

Array is one value per port/PF

max_dvx_vfs

Max PCI VFs to initialize as DVX devices

uint[]

0

0–128 per entry; max 16 entries

Must align with max_vfs

vf_mempool_extend

Add X MB to the VF mempool size

int

0

≥ 0

Ignored if max_vfs=0; use only if IB/RoCE VFs run out of memory;

enable_nmlx_debug

Enable debug prints

int

0

0 = disabled, 1 = enabled

Deprecated; driver forces 0 and warns if set to 1

data_path_control

Datapath control options bitmask

ulong

0

b0 (1): disable striding RQ


mst_recovery

Enable recovery mode (only NMST module loaded)

int

0

0 = disabled, 1 = enabled


supported_num_ports

Total number of ports to reserve memory for

uint

1

0–16; 0 = preserve no memory


trust_state

Port policy for switch priority and packet color from incoming packets

int

1

1 = TRUST_PCP, 2 = TRUST_DSCP


trust_dscp_same_priority

Enable TRUST_DSCP and map all priorities to the same class

uint

0

0 = disabled, 1 = enabled


upt_provider_mode

UPT datapath provider mode

uint

0

0 = PREFER_DPA_FALLBACK_TO_ACE, 1 = FORCE_DPA, 2 = FORCE_ACE


nmlx5_rdma

Parameter

Description

Type

Default

Range

Notes

enable_nmlx_debug

Enable debug prints

int

0

0 = disabled, 1 = enabled

Deprecated; driver forces 0 and warns if set to 1

pcp_force

PCP value to force on outgoing RoCE traffic

int

-1

-1 = disabled, 0–7 = PCP value

Cannot be active when dscp_to_pcp=1

dscp_force

DSCP value to force on outgoing RoCE traffic

int

-1

-1 = disabled, 0–63 = DSCP value


dscp_to_pcp

Map the three MSBs of DSCP to PCP on outgoing RoCE traffic

int

0

0 = disabled, 1 = enabled

Cannot be enabled when pcp_force is active (!= -1)

roce_version

RoCE versions enable option

int

3

1 = RoCE v1, 2 = RoCE v2, 3 = RoCE v1 + v2

Not in inbox builds (VMKAPI ≥ 2.10)

Last updated: