From cdbb08859533a4c3e698735ab2ee98d2532aa1c8 Mon Sep 17 00:00:00 2001 From: ahothan Date: Tue, 28 May 2019 16:13:43 -0700 Subject: NFVBENCH-136 Add support for multiqueue for PVP/PVVP chains Change-Id: Ia6bc2b1f97ecdf1d94206f9cda46e62910eb6546 Signed-off-by: ahothan --- nfvbench/chaining.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nfvbench/chaining.py') 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: -- cgit 1.2.3-korg