Home
last modified time | relevance | path

Searched refs:vq_pairs (Results 1 – 3 of 3) sorted by relevance

/external/crosvm/devices/src/virtio/
Dnet.rs156 vq_pairs: u16, field
294 || pairs.to_native() != self.vq_pairs in process_ctrl()
297 pairs.to_native(), self.vq_pairs); in process_ctrl()
445 vq_pairs: u16, in new()
447 let multi_queue = vq_pairs > 1; in new()
456 Net::from(base_features, tap, vq_pairs) in new()
461 pub fn from(base_features: u64, tap: T, vq_pairs: u16) -> Result<Net<T>, NetError> { in from()
462 let taps = tap.into_mq_taps(vq_pairs).map_err(NetError::TapOpen)?; in from()
468 validate_and_configure_tap(tap, vq_pairs)?; in from()
481 if vq_pairs > 1 { in from()
[all …]
/external/crosvm/net_util/src/
Dlib.rs241 fn into_mq_taps(self, vq_pairs: u16) -> Result<Vec<Self>>; in into_mq_taps()
302 fn into_mq_taps(self, vq_pairs: u16) -> Result<Vec<Tap>> { in into_mq_taps()
305 if vq_pairs <= 1 { in into_mq_taps()
311 for _ in 0..vq_pairs - 1 { in into_mq_taps()
/external/crosvm/src/
Dlinux.rs781 let mut vq_pairs = cfg.net_vq_pairs.unwrap_or(1); in create_tap_net_device() localVariable
783 if vcpu_count < vq_pairs as usize { in create_tap_net_device()
785 vq_pairs = 1; in create_tap_net_device()
788 let dev = virtio::Net::from(features, tap, vq_pairs).map_err(Error::NetDeviceNew)?; in create_tap_net_device()
803 let mut vq_pairs = cfg.net_vq_pairs.unwrap_or(1); in create_net_device() localVariable
805 if vcpu_count < vq_pairs as usize { in create_net_device()
807 vq_pairs = 1; in create_net_device()
823 let dev = virtio::Net::<Tap>::new(features, host_ip, netmask, mac_address, vq_pairs) in create_net_device()