VFs in the BlueField-2 card

Hi all,

I am trying to set/define VFs in the BlueField card attached to p0/p1. I am following the available documentation NVIDIA DOCA Virtual Functions User Guide - NVIDIA Docs

However, it seems that it is not possible.
host $ echo X > /sys/class/net/<physical_function>/device/sriov_numvfs
Anyone has any ideas? Or has already tried? Perhaps the documentation is not updated.

root@localhost:/home/ubuntu# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy

Device #1:

Device Type: BlueField2
Part Number: MBF2M516C-CESO_Ax
Description: BlueField-2 E-Series DPU 100GbE Dual-Port QSFP56; integrated BMC; PCIe Gen4 x16; Secure Boot Enabled; Crypto Disabled; 16GB on-board DDR; 1GbE OOB management; Tall Bracket; FHHL
PSID: MT_0000000731
PCI Device Name: /dev/mst/mt41686_pciconf0
Base GUID: b83fd20300308c14
Base MAC: b83fd2308c14
Versions: Current Available
FW 24.41.1000 N/A
PXE 3.7.0400 N/A
UEFI 14.34.0012 N/A
UEFI Virtio blk 22.4.0013 N/A
UEFI Virtio net 21.4.0013 N/A

Status: No matching image found

X means nu#, eg 4,5 or 6

Sure, X means the number of VFs. The issue is that it is not available.

root@localhost:/home/ubuntu# echo 2 > /sys/class/net/p0/device/sriov_numvfs
bash: /sys/class/net/p0/device/sriov_numvfs: Permission denied

Do you know if I need to enable SRIOV in the grub? Or is it enabled by default in the card?

have you enable CPU virt on BIOS?

On the host or DPU side?