IOVCTL.CONF(5)
π NAME π
iovctl.conf β IOVCTL configuration file. Hii bestie, welcome to the IOVCTL.CONF(5) page in the File Formats Manual β¨
β¨ DESCRIPTION β¨
Okay so the iovctl.conf file is the configuration file for the iovctl(8) program. It specifies configuration parameters for a single Physical Function (PF) device. To configure SR-IOV on multiple PF devices, use one configuration file for each PF, no cap. The locations of all iovctl(8) configuration files are specified in rc.conf(5). π
The iovctl.conf file uses UCL format. UCL syntax is documented at the official UCL website: http://github.com/vstakhov/libucl.
There are three types of sections in the iovctl.conf file. A section is a key at the top level of the file with a list as its value. The list may contain the keys specified in the OPTIONS section of this manual page. Individual PF driver implementations may specify additional device-specific configuration keys that they will accept. The order in which sections appear in iovctl.conf is ignored. No two sections may have the same key. For example, two sections for VF-1 must not be defined.
- The first section type is the PF section. This section always has the key
"PF"; therefore, only one such section may be defined. This section defines configuration parameters that apply to the PF as a whole. π - The second section type is the VF section. This section has the key
"VF-"followed by a VF index. VF indices start at0and always increment by1. Valid VF indices are in the range of0to(num_vfs - 1). The VF index must be given as a decimal integer with no leading zeros. This section defines configuration parameters that apply to a single VF. π¦ - The third section type is the default section. This section always has the key
"DEFAULT"; therefore, only one such section may be specified. This section defines default configuration parameters that apply to all VFs. All configuration keys that are valid to be applied to a VF are valid in this section. An individual VF section may override a default specified in this section by providing a different value for the configuration parameter. Note that the default section applies to ALL VFs. The default section must appear before any VF sections. The default section may appear before or after the PF section. π
The following option types are supported:
booleanβ accepts a boolean value oftrueorfalse.vlanβ accepts a VLAN ID, or"trunk"to allow any VLAN ID.mac-addrβ accepts a unicast MAC address specified as a string of the formxx:xx:xx:xx:xx:xx, wherexxis one or two hexadecimal digits.stringβ accepts any string value.uint8_tβ accepts any integer in the range0to255, inclusive.uint16_tβ accepts any integer in the range0to65535, inclusive.uint32_tβ accepts any integer in the range0to(2**32 - 1), inclusive.uint64_tβ accepts any integer in the range0to(2**64 - 1), inclusive.
π OPTIONS π
The following parameters are accepted by all PF drivers:
device(string) β this parameter specifies the name of the PF device. This parameter is required to be specified. No skipping, bestie.num_vfs(uint16_t) β this parameter specifies the number of VF children to create. This parameter may not be zero. The maximum value of this parameter is device-specific.
The following parameters are accepted by all VFs:
passthrough(boolean) β this parameter controls whether the VF is reserved for the use of thebhyve(8)hypervisor as a PCI passthrough device. If this parameter is set totrue, then the VF will be reserved as a PCI passthrough device and it will not be accessible from the host OS. The default value of this parameter isfalse. π«Ά
See the PF driver manual page for configuration parameters specific to particular hardware.
πΈ EXAMPLES πΈ
This sample file will create 3 VFs as children of the ix0 device. VF-1 and VF-2 are set as bhyve(8) passthrough devices through the use of the default section. VF-0 is not configured as a passthrough device as it explicitly overrides the default. VF-0 also sets a device-specific parameter named mac-addr. Obsessed with the override moment, honestly. β¨
PF {
device : "ix0";
num_vfs : 3;
}
DEFAULT {
passthrough : true;
}
VF-0 {
mac-addr : "02:56:48:7e:d9:f7";
passthrough : false;
vlan: 1;
}
π₯ SEE ALSO π₯
π AUTHORS π
This manual page was written by Ryan Stone <rstone@FreeBSD.org>.
π Cute little sign-off: this page is from Debian, dated May 30, 2024, and itβs the IOVCTL.CONF(5) page. Byeee bestie, go configure those PFs! π«Ά
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2014 Sandvine Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms