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