CSIT-562 HC Test: Persistence suite rework, part1
[csit.git] / tests / perf / 10ge2p1x520-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrpdrdisc.robot
1 # Copyright (c) 2016 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.robot
16 | Library | resources.libraries.python.QemuUtils
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
18 | ...        | NIC_Intel-X520-DA2 | ETH | L2BDMACLRN | BASE | VHOST | VM
19 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
20 | ... | L2 | Intel-X520-DA2
21 | Suite Teardown | 3-node Performance Suite Teardown
22 | Test Setup | Setup all DUTs before test
23 | Test Teardown | Run Keywords
24 | ... | Show Bridge Domain Data On All DUTs
25 | ... | AND | Performance test with vhost and VM with dpdk-testpmd teardown
26 | ...       | ${min_rate}pps | ${framesize} | 3-node-bridge
27 | ...       | dut1_node=${dut1} | dut1_vm_refs=${dut1_vm_refs}
28 | ...       | dut2_node=${dut2} | dut2_vm_refs=${dut2_vm_refs}
29 | Documentation | *RFC2544: Pkt throughput L2BD test cases with vhost*
30 | ...
31 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
35 | ... | domains and MAC learning enabled. Qemu Guests are connected to VPP via
36 | ... | vhost-user interfaces. Guests are running DPDK testpmd interconnecting
37 | ... | vhost-user interfaces using 5 cores pinned to cpus 6-10 and 11-15 and
38 | ... | 2048M memory. Testpmd is using socket-mem=1024M (512x2M hugepages),
39 | ... | 5 cores (1 main core and 4 cores dedicated for io), forwarding mode is
40 | ... | set to io, rxd/txd=256, burst=64. DUT1, DUT2 are tested with 2p10GE NIC
41 | ... | X520 Niantic by Intel.
42 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
43 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
44 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
45 | ... | of packets transmitted. NDR and PDR are discovered for different
46 | ... | Ethernet L2 frame sizes using either binary search or linear search
47 | ... | algorithms with configured starting rate and final step that determines
48 | ... | throughput measurement resolution. Test packets are generated by TG on
49 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
50 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
51 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
52 | ... | payload. MAC addresses are matching MAC addresses of the TG node
53 | ... | interfaces.
54 | ... | *[Ref] Applicable standard specifications:* RFC2544.
55
56 *** Variables ***
57 #X520-DA2 bandwidth limit
58 | ${s_limit}= | ${10000000000}
59 #CPU settings
60 | ${system_cpus}= | ${1}
61 | ${vpp_cpus}= | ${5}
62 | ${vm_cpus}= | ${5}
63
64 *** Test Cases ***
65 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc
66 | | [Documentation]
67 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
68 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
69 | | ... | using binary search start at 10GE linerate, step 10kpps.
70 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
71 | | ${framesize}= | Set Variable | ${64}
72 | | ${min_rate}= | Set Variable | ${10000}
73 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
74 | | ${binary_min}= | Set Variable | ${min_rate}
75 | | ${binary_max}= | Set Variable | ${max_rate}
76 | | ${threshold}= | Set Variable | ${min_rate}
77 | | ${dut1_vm_refs}= | Create Dictionary
78 | | ${dut2_vm_refs}= | Create Dictionary
79 | | Set Test Variable | ${dut1_vm_refs}
80 | | Set Test Variable | ${dut2_vm_refs}
81 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
82 | | And   Add PCI devices to DUTs from 3-node single link topology
83 | | And   Add No Multi Seg to all DUTs
84 | | And   Apply startup configuration on all VPP DUTs
85 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
86 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
87 | | Then  Find NDR using binary search and pps
88 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
89 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
90
91 | tc02-64B-1t1c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc
92 | | [Documentation]
93 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
94 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
95 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
96 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
97 | | ${framesize}= | Set Variable | ${64}
98 | | ${min_rate}= | Set Variable | ${10000}
99 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
100 | | ${binary_min}= | Set Variable | ${min_rate}
101 | | ${binary_max}= | Set Variable | ${max_rate}
102 | | ${threshold}= | Set Variable | ${min_rate}
103 | | ${dut1_vm_refs}= | Create Dictionary
104 | | ${dut2_vm_refs}= | Create Dictionary
105 | | Set Test Variable | ${dut1_vm_refs}
106 | | Set Test Variable | ${dut2_vm_refs}
107 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
108 | | And   Add PCI devices to DUTs from 3-node single link topology
109 | | And   Add No Multi Seg to all DUTs
110 | | And   Apply startup configuration on all VPP DUTs
111 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
112 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
113 | | Then  Find PDR using binary search and pps
114 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
115 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
116 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
117
118 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc
119 | | [Documentation]
120 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
121 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
122 | | ... | using binary search start at 10GE linerate, step 10kpps.
123 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
124 | | ${framesize}= | Set Variable | ${1518}
125 | | ${min_rate}= | Set Variable | ${10000}
126 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
127 | | ${binary_min}= | Set Variable | ${min_rate}
128 | | ${binary_max}= | Set Variable | ${max_rate}
129 | | ${threshold}= | Set Variable | ${min_rate}
130 | | ${dut1_vm_refs}= | Create Dictionary
131 | | ${dut2_vm_refs}= | Create Dictionary
132 | | Set Test Variable | ${dut1_vm_refs}
133 | | Set Test Variable | ${dut2_vm_refs}
134 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
135 | | And   Add PCI devices to DUTs from 3-node single link topology
136 | | And   Add No Multi Seg to all DUTs
137 | | And   Apply startup configuration on all VPP DUTs
138 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
139 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
140 | | Then  Find NDR using binary search and pps
141 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
142 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
143
144 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc
145 | | [Documentation]
146 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
147 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
148 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
149 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
150 | | ${framesize}= | Set Variable | ${1518}
151 | | ${min_rate}= | Set Variable | ${10000}
152 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
153 | | ${binary_min}= | Set Variable | ${min_rate}
154 | | ${binary_max}= | Set Variable | ${max_rate}
155 | | ${threshold}= | Set Variable | ${min_rate}
156 | | ${dut1_vm_refs}= | Create Dictionary
157 | | ${dut2_vm_refs}= | Create Dictionary
158 | | Set Test Variable | ${dut1_vm_refs}
159 | | Set Test Variable | ${dut2_vm_refs}
160 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
161 | | And   Add PCI devices to DUTs from 3-node single link topology
162 | | And   Add No Multi Seg to all DUTs
163 | | And   Apply startup configuration on all VPP DUTs
164 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
165 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
166 | | Then  Find PDR using binary search and pps
167 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
168 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
169 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
170
171 | tc05-IMIX-1t1c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
174 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
175 | | ... | size using binary search start at 10GE linerate, step 10kpps.
176 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
177 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
178 | | ${framesize}= | Set Variable | IMIX_v4_1
179 | | ${min_rate}= | Set Variable | ${10000}
180 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
181 | | ${binary_min}= | Set Variable | ${min_rate}
182 | | ${binary_max}= | Set Variable | ${max_rate}
183 | | ${threshold}= | Set Variable | ${min_rate}
184 | | ${dut1_vm_refs}= | Create Dictionary
185 | | ${dut2_vm_refs}= | Create Dictionary
186 | | Set Test Variable | ${dut1_vm_refs}
187 | | Set Test Variable | ${dut2_vm_refs}
188 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
189 | | And   Add PCI devices to DUTs from 3-node single link topology
190 | | And   Add No Multi Seg to all DUTs
191 | | And   Apply startup configuration on all VPP DUTs
192 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
193 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
194 | | Then  Find NDR using binary search and pps
195 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
196 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
197
198 | tc06-IMIX-1t1c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc
199 | | [Documentation]
200 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
201 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
202 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
203 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
204 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
205 | | ${framesize}= | Set Variable | IMIX_v4_1
206 | | ${min_rate}= | Set Variable | ${10000}
207 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
208 | | ${binary_min}= | Set Variable | ${min_rate}
209 | | ${binary_max}= | Set Variable | ${max_rate}
210 | | ${threshold}= | Set Variable | ${min_rate}
211 | | ${dut1_vm_refs}= | Create Dictionary
212 | | ${dut2_vm_refs}= | Create Dictionary
213 | | Set Test Variable | ${dut1_vm_refs}
214 | | Set Test Variable | ${dut2_vm_refs}
215 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
216 | | And   Add PCI devices to DUTs from 3-node single link topology
217 | | And   Add No Multi Seg to all DUTs
218 | | And   Apply startup configuration on all VPP DUTs
219 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
220 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
221 | | Then  Find PDR using binary search and pps
222 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
223 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
224 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
225
226 | tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc
227 | | [Documentation]
228 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
229 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
230 | | ... | using binary search start at 10GE linerate, step 10kpps.
231 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
232 | | ${framesize}= | Set Variable | ${64}
233 | | ${min_rate}= | Set Variable | ${10000}
234 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
235 | | ${binary_min}= | Set Variable | ${min_rate}
236 | | ${binary_max}= | Set Variable | ${max_rate}
237 | | ${threshold}= | Set Variable | ${min_rate}
238 | | ${dut1_vm_refs}= | Create Dictionary
239 | | ${dut2_vm_refs}= | Create Dictionary
240 | | Set Test Variable | ${dut1_vm_refs}
241 | | Set Test Variable | ${dut2_vm_refs}
242 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
243 | | And   Add PCI devices to DUTs from 3-node single link topology
244 | | And   Add No Multi Seg to all DUTs
245 | | And   Apply startup configuration on all VPP DUTs
246 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
247 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
248 | | Then  Find NDR using binary search and pps
249 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
250 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
251
252 | tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc
253 | | [Documentation]
254 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
255 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
256 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
257 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
258 | | ${framesize}= | Set Variable | ${64}
259 | | ${min_rate}= | Set Variable | ${10000}
260 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
261 | | ${binary_min}= | Set Variable | ${min_rate}
262 | | ${binary_max}= | Set Variable | ${max_rate}
263 | | ${threshold}= | Set Variable | ${min_rate}
264 | | ${dut1_vm_refs}= | Create Dictionary
265 | | ${dut2_vm_refs}= | Create Dictionary
266 | | Set Test Variable | ${dut1_vm_refs}
267 | | Set Test Variable | ${dut2_vm_refs}
268 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
269 | | And   Add PCI devices to DUTs from 3-node single link topology
270 | | And   Add No Multi Seg to all DUTs
271 | | And   Apply startup configuration on all VPP DUTs
272 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
273 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
274 | | Then  Find PDR using binary search and pps
275 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
276 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
277 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
278
279 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc
280 | | [Documentation]
281 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
282 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
283 | | ... | using binary search start at 10GE linerate, step 10kpps.
284 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
285 | | ${framesize}= | Set Variable | ${1518}
286 | | ${min_rate}= | Set Variable | ${10000}
287 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
288 | | ${binary_min}= | Set Variable | ${min_rate}
289 | | ${binary_max}= | Set Variable | ${max_rate}
290 | | ${threshold}= | Set Variable | ${min_rate}
291 | | ${dut1_vm_refs}= | Create Dictionary
292 | | ${dut2_vm_refs}= | Create Dictionary
293 | | Set Test Variable | ${dut1_vm_refs}
294 | | Set Test Variable | ${dut2_vm_refs}
295 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
296 | | And   Add PCI devices to DUTs from 3-node single link topology
297 | | And   Add No Multi Seg to all DUTs
298 | | And   Apply startup configuration on all VPP DUTs
299 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
300 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
301 | | Then  Find NDR using binary search and pps
302 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
303 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
304
305 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc
306 | | [Documentation]
307 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
308 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
309 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
310 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
311 | | ${framesize}= | Set Variable | ${1518}
312 | | ${min_rate}= | Set Variable | ${10000}
313 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
314 | | ${binary_min}= | Set Variable | ${min_rate}
315 | | ${binary_max}= | Set Variable | ${max_rate}
316 | | ${threshold}= | Set Variable | ${min_rate}
317 | | ${dut1_vm_refs}= | Create Dictionary
318 | | ${dut2_vm_refs}= | Create Dictionary
319 | | Set Test Variable | ${dut1_vm_refs}
320 | | Set Test Variable | ${dut2_vm_refs}
321 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
322 | | And   Add PCI devices to DUTs from 3-node single link topology
323 | | And   Add No Multi Seg to all DUTs
324 | | And   Apply startup configuration on all VPP DUTs
325 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
326 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
327 | | Then  Find PDR using binary search and pps
328 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
329 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
330 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
331
332 | tc11-IMIX-2t2c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc
333 | | [Documentation]
334 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
335 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
336 | | ... | size using binary search start at 10GE linerate, step 10kpps.
337 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
338 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
339 | | ${framesize}= | Set Variable | IMIX_v4_1
340 | | ${min_rate}= | Set Variable | ${10000}
341 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
342 | | ${binary_min}= | Set Variable | ${min_rate}
343 | | ${binary_max}= | Set Variable | ${max_rate}
344 | | ${threshold}= | Set Variable | ${min_rate}
345 | | ${dut1_vm_refs}= | Create Dictionary
346 | | ${dut2_vm_refs}= | Create Dictionary
347 | | Set Test Variable | ${dut1_vm_refs}
348 | | Set Test Variable | ${dut2_vm_refs}
349 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
350 | | And   Add PCI devices to DUTs from 3-node single link topology
351 | | And   Add No Multi Seg to all DUTs
352 | | And   Apply startup configuration on all VPP DUTs
353 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
354 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
355 | | Then  Find NDR using binary search and pps
356 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
357 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
358
359 | tc12-IMIX-2t2c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc
360 | | [Documentation]
361 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
362 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
363 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
364 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
365 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
366 | | ${framesize}= | Set Variable | IMIX_v4_1
367 | | ${min_rate}= | Set Variable | ${10000}
368 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
369 | | ${binary_min}= | Set Variable | ${min_rate}
370 | | ${binary_max}= | Set Variable | ${max_rate}
371 | | ${threshold}= | Set Variable | ${min_rate}
372 | | ${dut1_vm_refs}= | Create Dictionary
373 | | ${dut2_vm_refs}= | Create Dictionary
374 | | Set Test Variable | ${dut1_vm_refs}
375 | | Set Test Variable | ${dut2_vm_refs}
376 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
377 | | And   Add PCI devices to DUTs from 3-node single link topology
378 | | And   Add No Multi Seg to all DUTs
379 | | And   Apply startup configuration on all VPP DUTs
380 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
381 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
382 | | Then  Find PDR using binary search and pps
383 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
384 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
385 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
386
387 | tc13-64B-4t4c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc
388 | | [Documentation]
389 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
390 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
391 | | ... | using binary search start at 10GE linerate, step 10kpps.
392 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
393 | | ${framesize}= | Set Variable | ${64}
394 | | ${min_rate}= | Set Variable | ${10000}
395 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
396 | | ${binary_min}= | Set Variable | ${min_rate}
397 | | ${binary_max}= | Set Variable | ${max_rate}
398 | | ${threshold}= | Set Variable | ${min_rate}
399 | | ${dut1_vm_refs}= | Create Dictionary
400 | | ${dut2_vm_refs}= | Create Dictionary
401 | | Set Test Variable | ${dut1_vm_refs}
402 | | Set Test Variable | ${dut2_vm_refs}
403 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
404 | | And   Add PCI devices to DUTs from 3-node single link topology
405 | | And   Add No Multi Seg to all DUTs
406 | | And   Apply startup configuration on all VPP DUTs
407 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
408 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
409 | | Then  Find NDR using binary search and pps
410 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
411 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
412
413 | tc14-64B-4t4c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc
414 | | [Documentation]
415 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
416 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
417 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
418 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
419 | | ${framesize}= | Set Variable | ${64}
420 | | ${min_rate}= | Set Variable | ${10000}
421 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
422 | | ${binary_min}= | Set Variable | ${min_rate}
423 | | ${binary_max}= | Set Variable | ${max_rate}
424 | | ${threshold}= | Set Variable | ${min_rate}
425 | | ${dut1_vm_refs}= | Create Dictionary
426 | | ${dut2_vm_refs}= | Create Dictionary
427 | | Set Test Variable | ${dut1_vm_refs}
428 | | Set Test Variable | ${dut2_vm_refs}
429 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
430 | | And   Add PCI devices to DUTs from 3-node single link topology
431 | | And   Add No Multi Seg to all DUTs
432 | | And   Apply startup configuration on all VPP DUTs
433 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
434 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
435 | | Then  Find PDR using binary search and pps
436 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
437 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
438 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
439
440 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc
441 | | [Documentation]
442 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
443 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
444 | | ... | using binary search start at 10GE linerate, step 10kpps.
445 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
446 | | ${framesize}= | Set Variable | ${1518}
447 | | ${min_rate}= | Set Variable | ${10000}
448 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
449 | | ${binary_min}= | Set Variable | ${min_rate}
450 | | ${binary_max}= | Set Variable | ${max_rate}
451 | | ${threshold}= | Set Variable | ${min_rate}
452 | | ${dut1_vm_refs}= | Create Dictionary
453 | | ${dut2_vm_refs}= | Create Dictionary
454 | | Set Test Variable | ${dut1_vm_refs}
455 | | Set Test Variable | ${dut2_vm_refs}
456 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
457 | | And   Add PCI devices to DUTs from 3-node single link topology
458 | | And   Add No Multi Seg to all DUTs
459 | | And   Apply startup configuration on all VPP DUTs
460 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
461 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
462 | | Then  Find NDR using binary search and pps
463 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
464 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
465
466 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc
467 | | [Documentation]
468 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
469 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
470 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
471 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
472 | | ${framesize}= | Set Variable | ${1518}
473 | | ${min_rate}= | Set Variable | ${10000}
474 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
475 | | ${binary_min}= | Set Variable | ${min_rate}
476 | | ${binary_max}= | Set Variable | ${max_rate}
477 | | ${threshold}= | Set Variable | ${min_rate}
478 | | ${dut1_vm_refs}= | Create Dictionary
479 | | ${dut2_vm_refs}= | Create Dictionary
480 | | Set Test Variable | ${dut1_vm_refs}
481 | | Set Test Variable | ${dut2_vm_refs}
482 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
483 | | And   Add PCI devices to DUTs from 3-node single link topology
484 | | And   Add No Multi Seg to all DUTs
485 | | And   Apply startup configuration on all VPP DUTs
486 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
487 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
488 | | Then  Find PDR using binary search and pps
489 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
490 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
491 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
492
493 | tc17-IMIX-4t4c-eth-l2bdbasemaclrn-eth-4vhost-2vm-ndrdisc
494 | | [Documentation]
495 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
496 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
497 | | ... | size using binary search start at 10GE linerate, step 10kpps.
498 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
499 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
500 | | ${framesize}= | Set Variable | IMIX_v4_1
501 | | ${min_rate}= | Set Variable | ${10000}
502 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
503 | | ${binary_min}= | Set Variable | ${min_rate}
504 | | ${binary_max}= | Set Variable | ${max_rate}
505 | | ${threshold}= | Set Variable | ${min_rate}
506 | | ${dut1_vm_refs}= | Create Dictionary
507 | | ${dut2_vm_refs}= | Create Dictionary
508 | | Set Test Variable | ${dut1_vm_refs}
509 | | Set Test Variable | ${dut2_vm_refs}
510 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
511 | | And   Add PCI devices to DUTs from 3-node single link topology
512 | | And   Add No Multi Seg to all DUTs
513 | | And   Apply startup configuration on all VPP DUTs
514 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
515 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
516 | | Then  Find NDR using binary search and pps
517 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
518 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
519
520 | tc18-IMIX-4t4c-eth-l2bdbasemaclrn-eth-4vhost-2vm-pdrdisc
521 | | [Documentation]
522 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
523 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
524 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
525 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
526 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
527 | | ${framesize}= | Set Variable | IMIX_v4_1
528 | | ${min_rate}= | Set Variable | ${10000}
529 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
530 | | ${binary_min}= | Set Variable | ${min_rate}
531 | | ${binary_max}= | Set Variable | ${max_rate}
532 | | ${threshold}= | Set Variable | ${min_rate}
533 | | ${dut1_vm_refs}= | Create Dictionary
534 | | ${dut2_vm_refs}= | Create Dictionary
535 | | Set Test Variable | ${dut1_vm_refs}
536 | | Set Test Variable | ${dut2_vm_refs}
537 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
538 | | And   Add PCI devices to DUTs from 3-node single link topology
539 | | And   Add No Multi Seg to all DUTs
540 | | And   Apply startup configuration on all VPP DUTs
541 | | When  L2 bridge domains with Vhost-User for '2' VMs initialized in a 3-node circular topology
542 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
543 | | Then  Find PDR using binary search and pps
544 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
545 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
546 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}