aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/DPDK/L2fwdTest.py
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2018-07-13 11:44:29 +0000
committerPeter Mikus <pmikus@cisco.com>2018-07-17 08:15:44 +0000
commit24f7c6a4d22b8d26f0aa86669fc7aadad2108f2f (patch)
treedb73acc1882cc5d42633c725ea75fee9345ca767 /resources/libraries/python/DPDK/L2fwdTest.py
parentcb66ecc82b7491823c837e2cefbf50984fcae594 (diff)
Refactor DPDK testcases to new structure
+ RXQ refactor Change-Id: Ic03a2e208b9fe5d324a5ed75a603af4cff1854a9 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python/DPDK/L2fwdTest.py')
-rw-r--r--resources/libraries/python/DPDK/L2fwdTest.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/libraries/python/DPDK/L2fwdTest.py b/resources/libraries/python/DPDK/L2fwdTest.py
index 65ad6a53a4..aaa44358c3 100644
--- a/resources/libraries/python/DPDK/L2fwdTest.py
+++ b/resources/libraries/python/DPDK/L2fwdTest.py
@@ -33,12 +33,13 @@ class L2fwdTest(object):
:param cpu_cores: The DPDK run cores.
:param nb_cores: The cores number for the forwarding.
:param queue_nums: The queues number for the NIC.
- :param jumbo_frames: Are jumbo frames used or not.
+ :param jumbo_frames: Indication if the jumbo frames are used (True) or
+ not (False).
:type dut_node: dict
:type cpu_cores: str
:type nb_cores: str
:type queue_nums: str
- :type jumbo_frames: str
+ :type jumbo_frames: bool
:raises RuntimeError: If the script "run_l2fwd.sh" fails.
"""
if dut_node['type'] == NodeType.DUT:
@@ -46,11 +47,12 @@ class L2fwdTest(object):
ssh.connect(dut_node)
arch = Topology.get_node_arch(dut_node)
+ jumbo = 'yes' if jumbo_frames else 'no'
cmd = '{fwdir}/tests/dpdk/dpdk_scripts/run_l2fwd.sh {cpu_cores} ' \
'{nb_cores} {queues} {jumbo} {arch}'.\
format(fwdir=Constants.REMOTE_FW_DIR, cpu_cores=cpu_cores,
nb_cores=nb_cores, queues=queue_nums,
- jumbo=jumbo_frames, arch=arch)
+ jumbo=jumbo, arch=arch)
ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=600)
if ret_code != 0: