# Functions
CleanupManualConfigurationMaybe checks if "pf/auto_provisioning" (under given sysfsVFsDir) is disabled before unconfiguring requested VFs.
DeduceVFMillicores returns relative amount of millicores based on either of: - number of provisioned VFs, if auto_provisioning is enabled; - memory allocated to the VF, if auto_provisioning is disabled.
DeviceProfileExists returns true if given profileName is found for deviceId in PerDeviceIdProfiles, or false.
GetMaximumVFDoorbells returns amount of doorbells the biggest profile for deviceId has.
GetMaximumVFMemorySizeMiB returns amount of memory in MiB that the largest profile for deviceId has.
GetMinimumVFDoorbells returns amount of doorbells the smallest profile for deviceId has.
GetMimimumVFMemorySizeMiB returns amount of memory in MiB that the smallest profile for deviceId has.
GetProfileDoorbells returns amount of doorbells the profile has.
GetVFDefaults returns default VF memory amount in MiB and profile name for a given deviceId.
MaxFairVFs returns the maximum number of VFs that PF resources can be split fairly into, for the requested VF combination.
PickVFProfile selects suitable VF profile based on memory request.
PreConfigureVF sets custom VF settings from profile for manual provisioning mode for cases when fair share is not suitable.
ProfileMemoryMiB returns amount of memory in MiB given profile provides if it exists, or error.
SanitizeLmemQuotaMiB returns true is requested amount of lmemQuota in MiB is supported by at least one profile for deviceId, otherwise false.
# Constants
No description provided by the author
Name of the profile in Profiles that resets VF to fair-share provisioning.
# Variables
PerDeviceIdDefaultProfiles specifies name of default profile that should be used for particular PCI deviceId.
PerDeviceIdProfiles has to be ordered descending by size, the profile picking logic relies on this.
Profiles is a set of all supported profiles and per-sysfs-file values.
VfAttributeFiles is a list of filenames that needs to be configured for a VF profile to be applied.