Function crosvm::crosvm::sys::unix::device_helpers::create_virtio_net_device_from_tap
source · pub fn create_virtio_net_device_from_tap<T: TapT + ReadNotifier + 'static>(
protection_type: ProtectionType,
jail_config: &Option<JailConfig>,
vq_pairs: u16,
vcpu_count: usize,
tap: T,
mac: Option<MacAddress>
) -> Result<VirtioDeviceStub>
Expand description
Returns a virtio network device created from a new TAP device.