diff options
author | 2025-01-27 11:35:08 +0100 | |
---|---|---|
committer | 2025-01-28 09:00:07 +0100 | |
commit | 5b398217260d48eb6535ccb767828ec7474b2117 (patch) | |
tree | 2a2b399da37338011d005fc6ab3a39f8ca13bf87 /resources/libraries/python/QemuUtils.py | |
parent | f86fd9c72af1ae892b21d83b574795101d681978 (diff) |
fix(dpdk): EAL params
Signed-off-by: Peter Mikus <peter.mikus@icloud.com>
Change-Id: I47280deb55e200ac4bda9e74b158aa04369648b7
Diffstat (limited to 'resources/libraries/python/QemuUtils.py')
-rw-r--r-- | resources/libraries/python/QemuUtils.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/resources/libraries/python/QemuUtils.py b/resources/libraries/python/QemuUtils.py index 8dac06001c..d538e1fb0a 100644 --- a/resources/libraries/python/QemuUtils.py +++ b/resources/libraries/python/QemuUtils.py @@ -1,4 +1,4 @@ -# Copyright (c) 2024-2024 Cisco and/or its affiliates. +# Copyright (c) 2025 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -371,9 +371,10 @@ class QemuUtils: :param kwargs: Key-value pairs to construct command line parameters. :type kwargs: dict """ - pmd_max_pkt_len = u"9200" if kwargs[u"jumbo"] else u"1518" + pmd_max_pkt_len = "9200" if kwargs["jumbo"] else "1518" + eal_coremap = ",".join([str(x) for x in range(self._opt.get("smp"))]) testpmd_cmd = DpdkUtil.get_testpmd_cmdline( - eal_corelist=f"0-{self._opt.get(u'smp') - 1}", + eal_coremap=eal_coremap, eal_driver=False, eal_pci_whitelist0=u"0000:00:06.0", eal_pci_whitelist1=u"0000:00:07.0", @@ -399,8 +400,9 @@ class QemuUtils: :type kwargs: dict """ pmd_max_pkt_len = u"9200" if kwargs[u"jumbo"] else u"1518" + eal_coremap = ",".join([str(x) for x in range(self._opt.get("smp"))]) testpmd_cmd = DpdkUtil.get_testpmd_cmdline( - eal_corelist=f"0-{self._opt.get(u'smp') - 1}", + eal_coremap=eal_coremap, eal_driver=False, eal_pci_whitelist0=u"0000:00:06.0", eal_pci_whitelist1=u"0000:00:07.0", |