pub struct EthernetConfig {
pub link: Option<String>,
pub virtual_function_count: Option<u16>,
pub embedded_switch_mode: Option<EmbeddedSwitchMode>,
pub delay_virtual_functions_rebind: Option<bool>,
pub common_physical: Option<CommonPropertiesPhysicalDeviceType>,
pub common_all: Option<CommonPropertiesAllDevices>,
}
Fields§
§link: Option<String>
(SR-IOV devices only) The link property declares the device as a Virtual Function of the selected Physical Function device, as identified by the given netplan id.
virtual_function_count: Option<u16>
(SR-IOV devices only) In certain special cases VFs might need to be configured outside of netplan. For such configurations virtual-function-count can be optionally used to set an explicit number of Virtual Functions for the given Physical Function. If unset, the default is to create only as many VFs as are defined in the netplan configuration. This should be used for special cases only.
embedded_switch_mode: Option<EmbeddedSwitchMode>
(SR-IOV devices only) Change the operational mode of the embedded switch of a supported SmartNIC PCI device (e.g. Mellanox ConnectX-5). Possible values are switchdev or legacy, if unspecified the vendor’s default configuration is used.
delay_virtual_functions_rebind: Option<bool>
(SR-IOV devices only) Delay rebinding of SR-IOV virtual functions to its driver after changing the embedded-switch-mode setting to a later stage. Can be enabled when bonding/VF LAG is in use. Defaults to false.
common_physical: Option<CommonPropertiesPhysicalDeviceType>
Common properties for physical device types
common_all: Option<CommonPropertiesAllDevices>
Common properties for all devices
Trait Implementations§
Source§impl Clone for EthernetConfig
impl Clone for EthernetConfig
Source§fn clone(&self) -> EthernetConfig
fn clone(&self) -> EthernetConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more