mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vhost_user_backend: Return a list of vring workers
Now that multiple worker threads can be run from the backend crate, it is important that each backend implementation can access every worker thread. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
@@ -473,7 +473,7 @@ pub fn start_net_backend(backend_command: &str) {
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
let vring_worker = net_daemon.get_vring_worker();
|
||||
let vring_worker = net_daemon.get_vring_workers();
|
||||
|
||||
net_backend
|
||||
.write()
|
||||
@@ -481,7 +481,7 @@ pub fn start_net_backend(backend_command: &str) {
|
||||
.thread
|
||||
.lock()
|
||||
.unwrap()
|
||||
.set_vring_worker(Some(vring_worker));
|
||||
.set_vring_worker(Some(vring_worker[0].clone()));
|
||||
|
||||
if let Err(e) = net_daemon.start() {
|
||||
println!(
|
||||
|
||||
Reference in New Issue
Block a user