sriov: NetworkManager Reference Manual

## sriov sriov — SR-IOV settings |

## Properties

Table 45.

Key Name | Value Type | Default Value | Value Description
--- | --- | --- | ---
    autoprobe-drivers
    NMTernary (int32)
    -1
| Whether to autoprobe virtual functions by a compatible driver. If set to 1 (true), the kernel will try to bind VFs to a compatible driver and if this succeeds a new network interface will be instantiated for each VF. If set to 0 (false), VFs will not be claimed and no network interfaces will be created for them. When set to -1 (default), the global default is used; in case the global default is unspecified it is assumed to be 1 (true).
    eswitch-encap-mode
    int32
    -1
| Select the eswitch encapsulation support. Currently it's only supported for PCI PF devices, and only if the eswitch device is managed from the same PCI address than the PF. If set to -1 (preserve) (default) the eswitch encap-mode won't be modified by NetworkManager.
    eswitch-inline-mode
    int32
    -1
| Select the eswitch inline-mode of the device. Some HWs need the VF driver to put part of the packet headers on the TX descriptor so the e-switch can do proper matching and steering. Currently it's only supported for PCI PF devices, and only if the eswitch device is managed from the same PCI address than the PF. If set to -1 (preserve) (default) the eswitch inline-mode won't be modified by NetworkManager.
    eswitch-mode
    int32
    -1
| Select the eswitch mode of the device. Currently it's only supported for PCI PF devices, and only if the eswitch device is managed from the same PCI address than the PF. If set to -1 (preserve) (default) the eswitch mode won't be modified by NetworkManager.
    preserve-on-down
    int32
    -1
| This controls whether NetworkManager preserves the SR-IOV parameters set on the device when the connection is deactivated, or whether it resets them to their default value. The SR-IOV parameters are those specified in this setting (the "sriov" setting), like the number of VFs to create, the eswitch configuration, etc. If set to 0 (no), NetworkManager resets the SR-IOV parameters when the connection is deactivated. When set to 1 (yes), NetworkManager preserves those parameters on the device. If the value is -1 (default), NetworkManager looks up a global default value in the configuration; in case no such value is defined, it uses 0 (no) as fallback.
    total-vfs
    uint32
    0
| The total number of virtual functions to create. Note that when the sriov setting is present NetworkManager enforces the number of virtual functions on the interface (also when it is zero) during activation and resets it upon deactivation. To prevent any changes to SR-IOV parameters don't add a sriov setting to the connection.
    vfs
    array of vardict
| Array of virtual function descriptors. Each VF descriptor is a dictionary mapping attribute names to GVariant values. The 'index' entry is mandatory for each VF. When represented as string a VF is in the form: "INDEX [ATTR=VALUE[ ATTR=VALUE]...]". for example: "2 mac=00:11:22:33:44:55 spoof-check=true". Multiple VFs can be specified using a comma as separator. Currently, the following attributes are supported: mac, spoof-check, trust, min-tx-rate, max-tx-rate, vlans. The "vlans" attribute is represented as a semicolon-separated list of VLAN descriptors, where each descriptor has the form "ID[.PRIORITY[.PROTO]]". PROTO can be either 'q' for 802.1Q (the default) or 'ad' for 802.1ad.