mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-03 02:26:37 +00:00
virtcontainers: network: Rely on hypervisor capabilities for multi queues
In order to properly setup the network, hence allocate or not multiple queues, this commit makes sure that the hypervisor capabilities are checked for this. Fixes #1027 Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
a227ab852a
commit
a1af1cb099
@ -505,7 +505,12 @@ func getLinkByName(netHandle *netlink.Handle, name string, expectedLink netlink.
|
||||
func xConnectVMNetwork(endpoint Endpoint, h hypervisor) error {
|
||||
netPair := endpoint.NetworkPair()
|
||||
|
||||
queues := int(h.hypervisorConfig().NumVCPUs)
|
||||
queues := 0
|
||||
caps := h.capabilities()
|
||||
if caps.isMultiQueueSupported() {
|
||||
queues = int(h.hypervisorConfig().NumVCPUs)
|
||||
}
|
||||
|
||||
disableVhostNet := h.hypervisorConfig().DisableVhostNet
|
||||
|
||||
if netPair.NetInterworkingModel == NetXConnectDefaultModel {
|
||||
|
Loading…
Reference in New Issue
Block a user