Lines Matching refs:map_err
263 .map_err(NetError::DescriptorChain)?; in process_ctrl()
265 Writer::new(self.mem.clone(), desc_chain).map_err(NetError::DescriptorChain)?; in process_ctrl()
267 reader.read_obj().map_err(NetError::ReadCtrlHeader)?; in process_ctrl()
277 writer.write_all(&[ack]).map_err(NetError::WriteAck)?; in process_ctrl()
281 let offloads: Le64 = reader.read_obj().map_err(NetError::ReadCtrlData)?; in process_ctrl()
285 .map_err(NetError::TapSetOffload)?; in process_ctrl()
287 writer.write_all(&[ack]).map_err(NetError::WriteAck)?; in process_ctrl()
291 let pairs: Le16 = reader.read_obj().map_err(NetError::ReadCtrlData)?; in process_ctrl()
299 writer.write_all(&[ack]).map_err(NetError::WriteAck)?; in process_ctrl()
304 writer.write_all(&[ack]).map_err(NetError::WriteAck)?; in process_ctrl()
348 .map_err(NetError::CreateWaitContext)?; in run()
353 .map_err(NetError::CreateWaitContext)?; in run()
358 .map_err(NetError::CreateWaitContext)?; in run()
364 let events = wait_ctx.wait().map_err(NetError::WaitError)?; in run()
372 .map_err(NetError::WaitContextDisableTap)?; in run()
385 .map_err(NetError::WaitContextEnableTap)?; in run()
448 let tap: T = T::new(true, multi_queue).map_err(NetError::TapOpen)?; in new()
449 tap.set_ip_addr(ip_addr).map_err(NetError::TapSetIp)?; in new()
450 tap.set_netmask(netmask).map_err(NetError::TapSetNetmask)?; in new()
452 .map_err(NetError::TapSetMacAddress)?; in new()
454 tap.enable().map_err(NetError::TapEnable)?; in new()
462 let taps = tap.into_mq_taps(vq_pairs).map_err(NetError::TapOpen)?; in from()
488 let kill_evt = Event::new().map_err(NetError::CreateKillEvent)?; in from()
489 let worker_kill_evt = kill_evt.try_clone().map_err(NetError::CloneKillEvent)?; in from()
552 .map_err(NetError::TapSetVnetHdrSize)?; in validate_and_configure_tap()