From 5b398217260d48eb6535ccb767828ec7474b2117 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Mon, 27 Jan 2025 11:35:08 +0100 Subject: fix(dpdk): EAL params Signed-off-by: Peter Mikus Change-Id: I47280deb55e200ac4bda9e74b158aa04369648b7 --- resources/libraries/python/QemuUtils.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'resources/libraries/python/QemuUtils.py') 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", -- cgit 1.2.3-korg