Lines Matching refs:vq_pairs
156 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()
495 queue_sizes: vec![QUEUE_SIZE; (vq_pairs * 2 + 1) as usize].into_boxed_slice(), in from()
506 let vq_pairs = self.queue_sizes.len() as u16 / 2; in build_config() localVariable
509 max_vq_pairs: Le16::from(vq_pairs), in build_config()
520 fn validate_and_configure_tap<T: TapT>(tap: &T, vq_pairs: u16) -> Result<(), NetError> { in validate_and_configure_tap()
527 if vq_pairs > 1 { in validate_and_configure_tap()
658 let vq_pairs = self.queue_sizes.len() / 2; in activate() localVariable
659 if self.taps.len() != vq_pairs { in activate()
660 error!("net: expected {} taps, got {}", vq_pairs, self.taps.len()); in activate()
663 if self.workers_kill_evt.len() != vq_pairs { in activate()
666 vq_pairs, in activate()
672 for i in 0..vq_pairs { in activate()
686 let pairs = vq_pairs as u16; in activate()
705 vq_pairs: pairs, in activate()