summaryrefslogtreecommitdiffstats
path: root/nfvbench/chaining.py
diff options
context:
space:
mode:
authorahothan <ahothan@cisco.com>2019-05-28 16:13:43 -0700
committerahothan <ahothan@cisco.com>2019-05-29 09:39:48 -0700
commitcdbb08859533a4c3e698735ab2ee98d2532aa1c8 (patch)
tree1bf8709b5e708bbbc31e717ae777fc94b1cf0638 /nfvbench/chaining.py
parent7e9ef3835fdc7dc95c42e32fc4d0f804e90efac5 (diff)
NFVBENCH-136 Add support for multiqueue for PVP/PVVP chains3.3.0
Change-Id: Ia6bc2b1f97ecdf1d94206f9cda46e62910eb6546 Signed-off-by: ahothan <ahothan@cisco.com>
Diffstat (limited to 'nfvbench/chaining.py')
-rw-r--r--nfvbench/chaining.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/nfvbench/chaining.py b/nfvbench/chaining.py
index 60f3832..898e9ea 100644
--- a/nfvbench/chaining.py
+++ b/nfvbench/chaining.py
@@ -421,7 +421,8 @@ class ChainVnf(object):
'vnf_gateway1_cidr': g1cidr,
'vnf_gateway2_cidr': g2cidr,
'tg_mac1': remote_mac_pair[0],
- 'tg_mac2': remote_mac_pair[1]
+ 'tg_mac2': remote_mac_pair[1],
+ 'vif_mq_size': config.vif_multiqueue_size
}
return content.format(**vm_config)
@@ -1088,6 +1089,10 @@ class ChainManager(object):
LOG.info('Image %s successfully uploaded.', self.image_name)
self.image_instance = self.comp.find_image(self.image_name)
+ # image multiqueue property must be set according to the vif_multiqueue_size
+ # config value (defaults to 1 or disabled)
+ self.comp.image_set_multiqueue(self.image_instance, self.config.vif_multiqueue_size > 1)
+
def _ensure_instances_active(self):
instances = []
for chain in self.chains: