Re: [PATCH v5 4/9] rust: pci: add num_vf(), to return number of VFs

From: Alexandre Courbot

Date: Mon Nov 09 2026 - 06:54:43 EST


On Sat Oct 31, 2026 at 2:12 AM JST, Simon Song wrote:
> From: Peter Colberg <peter@xxxxxxxxxxx>
>
> Add a method to return the number of Virtual Functions (VF) enabled for
> a Physical Function (PF).
>
> Expose the query in the PCI core callback context and return u16,
> matching the type of the VF count stored by the PCI core.
>
> Signed-off-by: Peter Colberg <peter@xxxxxxxxxxx>
> Signed-off-by: Zhi Wang <zhiw@xxxxxxxxxx>
> Signed-off-by: Simon Song <xinmengs@xxxxxxxxxx>

Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>