From 936deb756045a999f919cefd4ceae77ae90e6905 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Tue, 24 Mar 2020 11:03:03 +0000 Subject: Performance: Tests with virtio driver in VM Signed-off-by: Peter Mikus Change-Id: I20e01dfe83a961dc8202d33783a678d38e71cff2 --- resources/libraries/python/QemuUtils.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'resources/libraries') 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. -- cgit 1.2.3-korg