mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: vhost_user: net: Move control queue back
We thought we could move the control queue to the backend as it was making some good sense. Unfortunately, doing so was a wrong design decision as it broke the compatibility with OVS-DPDK backend. This is why this commit moves the control queue back to the VMM side, meaning an additional thread is being run for handling the communication with the guest. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
committed by
Rob Bradford
parent
6c245f6cf1
commit
e9cc23ea94
+2
-2
@@ -122,12 +122,12 @@ pub fn build_net_config_space(
|
||||
mut config: &mut VirtioNetConfig,
|
||||
mac: MacAddr,
|
||||
num_queues: usize,
|
||||
mut avail_features: &mut u64,
|
||||
avail_features: &mut u64,
|
||||
) {
|
||||
config.mac.copy_from_slice(mac.get_bytes());
|
||||
*avail_features |= 1 << VIRTIO_NET_F_MAC;
|
||||
|
||||
build_net_config_space_with_mq(&mut config, num_queues, &mut avail_features);
|
||||
build_net_config_space_with_mq(&mut config, num_queues, avail_features);
|
||||
}
|
||||
|
||||
pub fn build_net_config_space_with_mq(
|
||||
|
||||
Reference in New Issue
Block a user