1. NAME

pci_sriov_set_totalvfs - - reduce the TotalVFs available

2. SYNOPSIS

int pci_sriov_set_totalvfs(struct pci_dev *  dev , u16  numvfs );

3. ARGUMENTS

dev
    the PCI PF device

numvfs
    number that should be used for TotalVFs supported

4. DESCRIPTION

Should be called from PF driverAqs probe routine with deviceAqs mutex held.

Returns 0 if PF is an SRIOV-capable device and value of numvfs valid. If not a PF with VFS, return -EINVAL; if VFs already enabled, return -EBUSY.

5. COPYRIGHT