Skip to content

Commit f713dba

Browse files
committed
ch: Create ch num_queues based on actual fd size
The tapfdSize element of the vm's private data will always have the correct number of queue pairs in use for the network even when queues were not specified so use that data to set num_queues.
1 parent 9e4268c commit f713dba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ch/ch_monitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ virCHMonitorBuildNetJson(virDomainObjPtr vm, virJSONValuePtr nets, virDomainNetD
405405
goto cleanup;
406406
}
407407
}
408-
if (netdef->driver.virtio.queues) {
408+
if (priv->tapfdSize) {
409409
if (virJSONValueObjectAppendNumberInt(net, "num_queues", 2 * priv->tapfdSize) < 0)
410410
goto cleanup;
411411
}

0 commit comments

Comments
 (0)