mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
net_util: Support supplying flags to open_tap() helper
This helper can open a TAP device and configure the interface on it. If the device needs to be opened multiple times for MQ then it also handles that correctly. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -283,7 +283,7 @@ impl Net {
|
||||
queue_size: u16,
|
||||
seccomp_action: SeccompAction,
|
||||
) -> Result<Self> {
|
||||
let taps = open_tap(if_name, ip_addr, netmask, host_mac, num_queues / 2)
|
||||
let taps = open_tap(if_name, ip_addr, netmask, host_mac, num_queues / 2, None)
|
||||
.map_err(Error::OpenTap)?;
|
||||
|
||||
Self::new_with_tap(
|
||||
|
||||
Reference in New Issue
Block a user