diff options
author | ahothan <ahothan@cisco.com> | 2019-05-28 16:13:43 -0700 |
---|---|---|
committer | ahothan <ahothan@cisco.com> | 2019-05-29 09:39:48 -0700 |
commit | cdbb08859533a4c3e698735ab2ee98d2532aa1c8 (patch) | |
tree | 1bf8709b5e708bbbc31e717ae777fc94b1cf0638 /nfvbench/nfvbench.py | |
parent | 7e9ef3835fdc7dc95c42e32fc4d0f804e90efac5 (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/nfvbench.py')
-rw-r--r-- | nfvbench/nfvbench.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nfvbench/nfvbench.py b/nfvbench/nfvbench.py index e585154..b2163ba 100644 --- a/nfvbench/nfvbench.py +++ b/nfvbench/nfvbench.py @@ -203,6 +203,9 @@ class NFVBench(object): if config.openrc_file: config.openrc_file = os.path.expanduser(config.openrc_file) + if config.flavor.vcpus < 2: + raise Exception("Flavor vcpus must be >= 2") + config.ndr_run = (not config.no_traffic and 'ndr' in config.rate.strip().lower().split('_')) @@ -224,6 +227,11 @@ class NFVBench(object): raise Exception('Please provide existing path for storing results in JSON file. ' 'Path used: {path}'.format(path=config.std_json_path)) + # Check that multiqueue is between 1 and 8 (8 is the max allowed by libvirt/qemu) + if config.vif_multiqueue_size < 1 or config.vif_multiqueue_size > 8: + raise Exception('vif_multiqueue_size (%d) must be in [1..8]' % + config.vif_multiqueue_size) + # VxLAN sanity checks if config.vxlan: if config.vlan_tagging: |