CSIT-1142 Change thread perf test TAGs
[csit.git] / tests / dpdk / perf / 40ge2p1xl710-eth-l2xcbase-testpmd-mrr.robot
1 # Copyright (c) 2018 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/performance/performance_setup.robot
16 | Resource | resources/libraries/robot/dpdk/default.robot
17 | Library | resources.libraries.python.topology.Topology
18 | Library | resources.libraries.python.NodePath
19 | Library | resources.libraries.python.InterfaceUtil
20 | Library | resources.libraries.python.DPDK.DPDKTools
21 | ...
22 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | HW_ENV | PERFTEST | MRR | 1NUMA
23 | ... | NIC_Intel-XL710 | DPDK | ETH | L2XCFWD | BASE
24 | ...
25 | Suite Setup | Set up DPDK 3-node performance topology with DUT's NIC model
26 | ... | L2 | Intel-XL710
27 | Suite Teardown | Tear down DPDK 3-node performance topology
28 | ...
29 | Documentation | *Raw results L2 routing test cases*
30 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
31 | ... | with single links between nodes.
32 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 frame forwarding.
33 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 run the DPDK testpmd\
34 | ... | application and use the io forwarding mode. DUT1 and DUT2 tested with\
35 | ... | 2p40GE NIC XL710 by Intel.
36 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic\
37 | ... | at line rate and reports total received/sent packets over trial period.\
38 | ... | Test packets are generated by TG on\
39 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
40 | ... | (flow-group per direction, 253 flows per flow-group) with all packets\
41 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static\
42 | ... | payload. MAC addresses are matching MAC addresses of the TG node\
43 | ... | interfaces.
44
45 *** Variables ***
46 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
47 | ${s_24.5G}= | ${24500000000}
48 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
49 | ${s_18.75Mpps}= | ${18750000}
50 # Traffic profile:
51 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
52
53 *** Keywords ***
54 | Check RR for eth-l2xcbase-testpmd
55 | | [Documentation]
56 | | ... | [Cfg] DUT runs L2 frame forwarding config with ${wt} thread(s), ${wt}\
57 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
58 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
59 | | ... | trial throughput test.
60 | | ...
61 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
62 | | ...
63 | | # Test Variables required for test teardown
64 | | Set Test Variable | ${framesize}
65 | | ${get_framesize}= | Get Frame Size | ${framesize}
66 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${get_framesize}
67 | | ${max_rate}= | Set Variable If
68 | | ... | ${max_rate} > ${s_18.75Mpps} | ${s_18.75Mpps} | ${max_rate}
69 | | ${jumbo_frames}= | Set Variable If
70 | | ... | ${get_framesize} < ${1522} | no | yes
71 | | ...
72 | | Given Start L2FWD '${wt}' worker threads and '${rxq}' rxqueues with jumbo frames '${jumbo_frames}'
73 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
74 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
75
76 *** Test Cases ***
77 | tc01-64B-1t1c-eth-l2xcbase-testpmd-mrr
78 | | [Documentation]
79 | | ... | [Cfg] DUT runs L2 frame forwarding config with 1 phy core,\
80 | | ... | 1 receive queue per NIC port.
81 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
82 | | ... | trial throughput test.
83 | | ...
84 | | [Tags] | 64B | 1C
85 | | ...
86 | | [Template] | Check RR for eth-l2xcbase-testpmd
87 | | framesize=${64} | wt=1 | rxq=1
88
89 | tc02-1518B-1t1c-eth-l2xcbase-testpmd-mrr
90 | | [Documentation]
91 | | ... | [Cfg] DUT runs L2 frame forwarding config with 1 phy core,\
92 | | ... | 1 receive queue per NIC port.
93 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
94 | | ... | trial throughput test.
95 | | ...
96 | | [Tags] | 1518B | 1C
97 | | ...
98 | | [Template] | Check RR for eth-l2xcbase-testpmd
99 | | framesize=${1518} | wt=1 | rxq=1
100
101 | tc03-9000B-1t1c-eth-l2xcbase-testpmd-mrr
102 | | [Documentation]
103 | | ... | [Cfg] DUT runs L2 frame forwarding config with 1 phy core,\
104 | | ... | 1 receive queue per NIC port.
105 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
106 | | ... | trial throughput test.
107 | | ...
108 | | [Tags] | 9000B | 1C
109 | | ...
110 | | [Template] | Check RR for eth-l2xcbase-testpmd
111 | | framesize=${9000} | wt=1 | rxq=1
112
113 | tc04-IMIX-1t1c-eth-l2xcbase-testpmd-mrr
114 | | [Documentation]
115 | | ... | [Cfg] DUT runs L2 frame forwarding config with 1 phy core,\
116 | | ... | 1 receive queue per NIC port.
117 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single\
118 | | ... | trial throughput test.
119 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
120 | | ...
121 | | [Tags] | IMIX | 1C
122 | | ...
123 | | [Template] | Check RR for eth-l2xcbase-testpmd
124 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
125
126 | tc05-64B-2t2c-eth-l2xcbase-testpmd-mrr
127 | | [Documentation]
128 | | ... | [Cfg] DUT runs L2 frame forwarding config with 2 threads,\
129 | | ... | 2 phy cores, 1 receive queue per NIC port.
130 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
131 | | ... | trial throughput test.
132 | | ...
133 | | [Tags] | 64B | 2C
134 | | ...
135 | | [Template] | Check RR for eth-l2xcbase-testpmd
136 | | framesize=${64} | wt=2 | rxq=1
137
138 | tc06-1518B-2t2c-eth-l2xcbase-testpmd-mrr
139 | | [Documentation]
140 | | ... | [Cfg] DUT runs L2 frame forwarding config with 2 threads,\
141 | | ... | 2 phy cores, 1 receive queue per NIC port.
142 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
143 | | ... | trial throughput test.
144 | | ...
145 | | [Tags] | 1518B | 2C
146 | | ...
147 | | [Template] | Check RR for eth-l2xcbase-testpmd
148 | | framesize=${1518} | wt=2 | rxq=1
149
150 | tc07-9000B-2t2c-eth-l2xcbase-testpmd-mrr
151 | | [Documentation]
152 | | ... | [Cfg] DUT runs L2 frame forwarding config with 2 threads,\
153 | | ... | 2 phy cores, 1 receive queue per NIC port.
154 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
155 | | ... | trial throughput test.
156 | | ...
157 | | [Tags] | 9000B | 2C
158 | | ...
159 | | [Template] | Check RR for eth-l2xcbase-testpmd
160 | | framesize=${9000} | wt=2 | rxq=1
161
162 | tc08-IMIX-2t2c-eth-l2xcbase-testpmd-mrr
163 | | [Documentation]
164 | | ... | [Cfg] DUT runs L2 frame forwarding config with 2 threads,\
165 | | ... | 2 phy cores, 1 receive queue per NIC port.
166 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single\
167 | | ... | trial throughput test.
168 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
169 | | ...
170 | | [Tags] | IMIX | 2C
171 | | ...
172 | | [Template] | Check RR for eth-l2xcbase-testpmd
173 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
174
175 | tc09-64B-4t4c-eth-l2xcbase-testpmd-mrr
176 | | [Documentation]
177 | | ... | [Cfg] DUT runs L2 frame forwarding config with 4 threads,\
178 | | ... | 4 phy cores, 2 receive queue per NIC port.
179 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
180 | | ... | trial throughput test.
181 | | ...
182 | | [Tags] | 64B | 4C
183 | | ...
184 | | [Template] | Check RR for eth-l2xcbase-testpmd
185 | | framesize=${64} | wt=4 | rxq=2
186
187 | tc10-1518B-4t4c-eth-l2xcbase-testpmd-mrr
188 | | [Documentation]
189 | | ... | [Cfg] DUT runs L2 frame forwarding config with 4 threads,\
190 | | ... | 4 phy cores, 2 receive queue per NIC port.
191 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
192 | | ... | trial throughput test.
193 | | ...
194 | | [Tags] | 1518B | 4C
195 | | ...
196 | | [Template] | Check RR for eth-l2xcbase-testpmd
197 | | framesize=${1518} | wt=4 | rxq=2
198
199 | tc11-9000B-4t4c-eth-l2xcbase-testpmd-mrr
200 | | [Documentation]
201 | | ... | [Cfg] DUT runs L2 frame forwarding config with 4 threads,\
202 | | ... | 4 phy cores, 2 receive queue per NIC port.
203 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
204 | | ... | trial throughput test.
205 | | ...
206 | | [Tags] | 9000B | 4C
207 | | ...
208 | | [Template] | Check RR for eth-l2xcbase-testpmd
209 | | framesize=${9000} | wt=4 | rxq=2
210
211 | tc12-IMIX-4t4c-eth-l2xcbase-testpmd-mrr
212 | | [Documentation]
213 | | ... | [Cfg] DUT runs L2 frame forwarding config with 4 threads,\
214 | | ... | 4 phy cores, 2 receive queue per NIC port.
215 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single\
216 | | ... | trial throughput test.
217 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
218 | | ...
219 | | [Tags] | IMIX | 4C
220 | | ...
221 | | [Template] | Check RR for eth-l2xcbase-testpmd
222 | | framesize=IMIX_v4_1 | wt=4 | rxq=2