aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/QemuUtils.py
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-07-23 12:28:15 +0000
committerPeter Mikus <pmikus@cisco.com>2019-07-23 15:40:59 +0000
commit01d9a0df1ed8143daa4fdcd0a05bfdcf3f34e7a6 (patch)
treecae1e5bcb4dd73b7fa6814938813fc93446bebf0 /resources/libraries/python/QemuUtils.py
parent37f84f1ab71ca4d7401f3a04421ee3bef6c9a455 (diff)
FIX: Vhost optimization
- Testpmd 9000B - Disable fsck - Remove redundant init mounts Change-Id: Ia063520d0a206e9eee831a5cc692e32baf5a92c8 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python/QemuUtils.py')
-rw-r--r--resources/libraries/python/QemuUtils.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/resources/libraries/python/QemuUtils.py b/resources/libraries/python/QemuUtils.py
index 0895f95409..a4d8533d52 100644
--- a/resources/libraries/python/QemuUtils.py
+++ b/resources/libraries/python/QemuUtils.py
@@ -196,7 +196,7 @@ class QemuUtils(object):
self._params.add_with_value(
'append', '"ro rootfstype=9p rootflags=trans=virtio '
'root=virtioroot console={console} tsc=reliable '
- 'hugepages=256 init={init}"'.format(
+ 'hugepages=256 init={init} fastboot"'.format(
console=console, init=self._temp.get('ini')))
def create_kernelvm_config_vpp(self, **kwargs):
@@ -262,9 +262,8 @@ class QemuUtils(object):
pmd_num_mbufs=16384,
pmd_rxq=kwargs['queues'],
pmd_txq=kwargs['queues'],
- pmd_tx_offloads=False,
+ pmd_tx_offloads='0x0',
pmd_disable_hw_vlan=False,
- pmd_max_pkt_len=9200 if kwargs['jumbo_frames'] else None,
pmd_nb_cores=str(self._opt.get('smp') - 1))
self._opt['vnf_bin'] = ('{testpmd_path}/{testpmd_cmd}'.
@@ -287,9 +286,8 @@ class QemuUtils(object):
pmd_eth_peer_1='1,{mac}'.format(mac=kwargs['vif2_mac']),
pmd_rxq=kwargs['queues'],
pmd_txq=kwargs['queues'],
- pmd_tx_offloads=False,
+ pmd_tx_offloads='0x0',
pmd_disable_hw_vlan=False,
- pmd_max_pkt_len=9200 if kwargs['jumbo_frames'] else None,
pmd_nb_cores=str(self._opt.get('smp') - 1))
self._opt['vnf_bin'] = ('{testpmd_path}/{testpmd_cmd}'.