diff options
author | Peter Mikus <pmikus@cisco.com> | 2020-03-24 11:03:03 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2020-05-15 09:57:49 +0000 |
commit | 936deb756045a999f919cefd4ceae77ae90e6905 (patch) | |
tree | 9b78e4c2ae2452df5c205cacbbf4625a925ca952 /resources/libraries | |
parent | 5a0bf46802294545c060d9aeea3c5b62952dfcda (diff) |
Performance: Tests with virtio driver in VM
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I20e01dfe83a961dc8202d33783a678d38e71cff2
Diffstat (limited to 'resources/libraries')
-rw-r--r-- | resources/libraries/python/QemuUtils.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/resources/libraries/python/QemuUtils.py b/resources/libraries/python/QemuUtils.py index fb707d216b..3ba64f0dbf 100644 --- a/resources/libraries/python/QemuUtils.py +++ b/resources/libraries/python/QemuUtils.py @@ -227,14 +227,15 @@ class QemuUtils: vpp_config.add_cpu_main_core(u"0") if self._opt.get(u"smp") > 1: vpp_config.add_cpu_corelist_workers(f"1-{self._opt.get(u'smp')-1}") - vpp_config.add_dpdk_dev(u"0000:00:06.0", u"0000:00:07.0") - vpp_config.add_dpdk_dev_default_rxq(kwargs[u"queues"]) - vpp_config.add_dpdk_log_level(u"debug") - if not kwargs[u"jumbo_frames"]: - vpp_config.add_dpdk_no_multi_seg() - vpp_config.add_dpdk_no_tx_checksum_offload() vpp_config.add_plugin(u"disable", u"default") - vpp_config.add_plugin(u"enable", u"dpdk_plugin.so") + if "virtio" not in self._opt.get(u'vnf'): + vpp_config.add_plugin(u"enable", u"dpdk_plugin.so") + vpp_config.add_dpdk_dev(u"0000:00:06.0", u"0000:00:07.0") + vpp_config.add_dpdk_dev_default_rxq(kwargs[u"queues"]) + vpp_config.add_dpdk_log_level(u"debug") + if not kwargs[u"jumbo_frames"]: + vpp_config.add_dpdk_no_multi_seg() + vpp_config.add_dpdk_no_tx_checksum_offload() vpp_config.write_config(startup) # Create VPP running configuration. |