Lines Matching +full:add +full:- +full:user +full:- +full:device
7 // SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
54 /// Failed to open tap device.
55 #[error("Failed to open tap device")]
68 pub const SYNTAX: &str = "vhost-user-net backend parameters \
73 fn from(e: Error) -> Self { in from()
84 /// Create a new virtio network device with the given TAP interface.
85 fn new(tap: Tap) -> Result<Self> { in new()
131 ) -> Result<Self> { in new()
165 fn num_queues(&self) -> usize { in num_queues()
169 fn max_queue_size(&self) -> usize { in max_queue_size()
173 fn features(&self) -> u64 { in features()
193 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features()
207 ) -> VhostUserBackendResult<()> { in handle_event()
252 fn exit_event(&self, thread_index: usize) -> Option<EventFd> { in exit_event()
263 fn queues_per_thread(&self) -> Vec<u64> { in queues_per_thread()
270 ) -> VhostUserBackendResult<()> { in update_memory()
288 pub fn parse(backend: &str) -> Result<Self> { in parse()
292 .add("tap") in parse()
293 .add("ip") in parse()
294 .add("host_mac") in parse()
295 .add("mask") in parse()
296 .add("mtu") in parse()
297 .add("queue_size") in parse()
298 .add("num_queues") in parse()
299 .add("socket") in parse()
300 .add("client"); in parse()
375 "vhost-user-net-backend".to_string(), in start_net_backend()
400 "failed to start daemon for vhost-user-net with error: {:?}", in start_net_backend()