Hi David,
1) Driver version 2.4.0 is an Ethernet driver only so if you have a VPI card, please make sure the port protocol is configured as 2 which is Ethernet.
#/opt/mellanox/bin/mlxconfig -d /dev/mt4099_pciconf0 set LINK_TYPE_P1=2 LINK_TYPE_P2=2
2) Enable SRIOV with the MFT tool (Mellanox FW tool) as follow:
#/opt/mellanox/bin/mlxconfig -d /dev/mt4099_pciconf0 set SRIOV_EN=1 NUM_OF_VFS=16
3) Confirm BIOS setting supports SRIOV and/or virtualization.
4) Set the driver module parameters for VF:
#esxcli system module parameters set -m mlx4_core -p 'num_vfs=<VFs over Port1, VFs over port2, 0> port_type_array=2'
This is all documented in the driver UM.
Thank you,
Sophie.