数量限制
In the BlueField, 每个port最多32个VF。 port是指物理口。如果2个port,DPU里面就是64个VF
The BlueField ECPF driver in the BlueField’s Arm OS limits the
number of VFs it supports to 32 per port.
In the host OS, 每个port最多126个PF。如果2个port,总的就是252个。
配置方式
dpu:
bf> mlxconfig -d 03:00.0 -y s PF_NUM_OF_VF=32
bf> mlxconfig -d 03:00.1 -y s PF_NUM_OF_VF=32
host:
host> mlxconfig -d 03:00.0 -y s PF_NUM_OF_VF=126
host> mlxconfig -d 03:00.1 -y s PF_NUM_OF_VF=126
其他:
Once PF_NUM_OF_VF_VALID is set, the NUM_OF_VFS mlxcong
option is not relevant and the user must set PF_NUM_OF_VF for each
host and EC function. It is recommended for the number of VFs for
each ECPF and each host PF be the same.
具体参考官网:
https://docs.nvidia.com/doca/sdk/bluefield-sr-iov.pdf
https://enterprise-support.nvidia.com/s/article/howto-map-vf-number-and-the-vm-in-sr-iov-mode