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:
@@ -143,6 +143,7 @@ impl VhostUserNetBackend {
|
||||
Some(netmask),
|
||||
&mut Some(host_mac),
|
||||
num_queues / 2,
|
||||
None,
|
||||
)
|
||||
.map_err(Error::OpenTap)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user