aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/robot/DPDK
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2017-02-14 14:09:11 +0100
committerTibor Frank <tifrank@cisco.com>2017-02-27 09:11:25 +0100
commit21702fb09c470511cc3ed7b34ca5ab0f8d30b68f (patch)
treefd36f6f589dfe826ef4199f102c249fa7c248d6c /resources/libraries/robot/DPDK
parentf8eca5691c63479e5b4c59b5d65456553d4999dd (diff)
CSIT-339: Add Keywords for SMT
- modify keywords in CpuUtils.py - add RF keywords Change-Id: I57230b3948254e8f149b2563a8e24e948bc2ec27 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/libraries/robot/DPDK')
-rw-r--r--resources/libraries/robot/DPDK/default.robot29
1 files changed, 26 insertions, 3 deletions
diff --git a/resources/libraries/robot/DPDK/default.robot b/resources/libraries/robot/DPDK/default.robot
index 474f19200f..b15d48a1d4 100644
--- a/resources/libraries/robot/DPDK/default.robot
+++ b/resources/libraries/robot/DPDK/default.robot
@@ -22,7 +22,7 @@
*** Keywords ***
| Start L2FWD '${m}' worker threads and rxqueues '${n}' with jumbo frames '${b}'
-| | [Documentation] | Start the l2fwd with M worker threads without HTT
+| | [Documentation] | Start the l2fwd with M worker threads without SMT
| | ... | and rxqueues N and B (yes or no) jumbo frames in all DUTs.
| | ...
| | ${m_int}= | Convert To Integer | ${m}
@@ -35,9 +35,32 @@
| | ${dut2_numa}= | Get interfaces numa node | ${dut2}
| | ... | ${dut2_if1} | ${dut2_if2}
| | ${dut1_cpus}= | Cpu Range Per Node Str | ${dut1} | ${dut1_numa}
-| | ... | cpu_cnt=${cpu_cnt}
+| | ... | skip_cnt=${1} | cpu_cnt=${cpu_cnt}
| | ${dut2_cpus}= | Cpu Range Per Node Str | ${dut2} | ${dut2_numa}
-| | ... | cpu_cnt=${cpu_cnt}
+| | ... | skip_cnt=${1} | cpu_cnt=${cpu_cnt}
+| | Start the l2fwd test | ${dut1} | ${dut1_cpus} | ${nb_cores} | ${rxqueues}
+| | ... | ${jumbo_frames}
+| | Start the l2fwd test | ${dut2} | ${dut2_cpus} | ${nb_cores} | ${rxqueues}
+| | ... | ${jumbo_frames}
+
+| Start L2FWD '${m}' worker threads using SMT and rxqueues '${n}' with jumbo frames '${b}'
+| | [Documentation] | Start the l2fwd with M worker threads with SMT
+| | ... | and rxqueues N and B (yes or no) jumbo frames in all DUTs.
+| | ...
+| | ${m_int}= | Convert To Integer | ${m}
+| | ${cpu_cnt}= | Evaluate | ${m_int}+1
+| | ${nb_cores_int}= | Evaluate | ${m_int}*2
+| | ${nb_cores}= | Convert to String | ${nb_cores_int}
+| | ${rxqueues}= | Convert to String | ${n}
+| | ${jumbo_frames}= | Convert to String | ${b}
+| | ${dut1_numa}= | Get interfaces numa node | ${dut1}
+| | ... | ${dut1_if1} | ${dut1_if2}
+| | ${dut2_numa}= | Get interfaces numa node | ${dut2}
+| | ... | ${dut2_if1} | ${dut2_if2}
+| | ${dut1_cpus}= | Cpu Range Per Node Str | ${dut1} | ${dut1_numa}
+| | ... | skip_cnt=${1} | cpu_cnt=${cpu_cnt} | smt_used=${True}
+| | ${dut2_cpus}= | Cpu Range Per Node Str | ${dut2} | ${dut2_numa}
+| | ... | skip_cnt=${1} | cpu_cnt=${cpu_cnt} | smt_used=${True}
| | Start the l2fwd test | ${dut1} | ${dut1_cpus} | ${nb_cores} | ${rxqueues}
| | ... | ${jumbo_frames}
| | Start the l2fwd test | ${dut2} | ${dut2_cpus} | ${nb_cores} | ${rxqueues}