CSIT-1142 Change thread perf test TAGs
[csit.git] / tests / vpp / perf / vm_vhost / 40ge2p1xl710-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-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/performance_setup.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 | VHOST_1024
20 | ...
21 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
22 | ... | L2 | Intel-XL710
23 | Suite Teardown | Tear down 3-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | Test Teardown | Tear down performance test with vhost and VM with dpdk-testpmd
27 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
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 Guest is connected to VPP via
38 | ... | vhost-user interfaces. Guest is 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=1024, 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 | ${perf_qemu_qsz}= | 1024
60 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
61 | ${s_24.5G}= | ${24500000000}
62 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
63 | ${s_18.75Mpps}= | ${18750000}
64 # Socket names
65 | ${bd_id1}= | 1
66 | ${bd_id2}= | 2
67 | ${sock1}= | /tmp/sock-1-${bd_id1}
68 | ${sock2}= | /tmp/sock-1-${bd_id2}
69 # Traffic profile:
70 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
71
72 *** Test Cases ***
73 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
74 | | [Documentation]
75 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
76 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames\
77 | | ... | using binary search start at 40GE linerate, step 10kpps.
78 | | ...
79 | | [Tags] | 64B | 1C | NDRDISC
80 | | ...
81 | | ${framesize}= | Set Variable | ${64}
82 | | ${min_rate}= | Set Variable | ${10000}
83 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
84 | | ${binary_min}= | Set Variable | ${min_rate}
85 | | ${binary_max}= | Set Variable | ${max_rate}
86 | | ${threshold}= | Set Variable | ${min_rate}
87 | | ${dut1_vm_refs}= | Create Dictionary
88 | | ${dut2_vm_refs}= | Create Dictionary
89 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
90 | | And Add PCI devices to all DUTs
91 | | And Add no multi seg to all DUTs
92 | | And Apply startup configuration on all VPP DUTs
93 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
94 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
95 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
96 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
97 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
98 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
99 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
100 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
101 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
102 | | ... | ${binary_max} | ${traffic_profile}
103 | | ... | ${min_rate} | ${max_rate} | ${threshold}
104
105 | tc02-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
106 | | [Documentation]
107 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
108 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames\
109 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
110 | | ...
111 | | [Tags] | 64B | 1C | PDRDISC | SKIP_PATCH
112 | | ...
113 | | ${framesize}= | Set Variable | ${64}
114 | | ${min_rate}= | Set Variable | ${10000}
115 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
116 | | ${binary_min}= | Set Variable | ${min_rate}
117 | | ${binary_max}= | Set Variable | ${max_rate}
118 | | ${threshold}= | Set Variable | ${min_rate}
119 | | ${dut1_vm_refs}= | Create Dictionary
120 | | ${dut2_vm_refs}= | Create Dictionary
121 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
122 | | And Add PCI devices to all DUTs
123 | | And Add no multi seg to all DUTs
124 | | And Apply startup configuration on all VPP DUTs
125 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
126 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
127 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
128 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
129 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
130 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
131 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
132 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
133 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
134 | | ... | ${binary_max} | ${traffic_profile}
135 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
136 | | ... | ${perf_pdr_loss_acceptance_type}
137
138 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
139 | | [Documentation]
140 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
141 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames\
142 | | ... | using binary search start at 40GE linerate, step 10kpps.
143 | | ...
144 | | [Tags] | 1518B | 1C | NDRDISC
145 | | ...
146 | | ${framesize}= | Set Variable | ${1518}
147 | | ${min_rate}= | Set Variable | ${10000}
148 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
149 | | ${binary_min}= | Set Variable | ${min_rate}
150 | | ${binary_max}= | Set Variable | ${max_rate}
151 | | ${threshold}= | Set Variable | ${min_rate}
152 | | ${dut1_vm_refs}= | Create Dictionary
153 | | ${dut2_vm_refs}= | Create Dictionary
154 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
155 | | And Add PCI devices to all DUTs
156 | | And Add no multi seg to all DUTs
157 | | And Apply startup configuration on all VPP DUTs
158 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
159 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
160 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
161 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
162 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
163 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
164 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
165 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
166 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
167 | | ... | ${binary_max} | ${traffic_profile}
168 | | ... | ${min_rate} | ${max_rate} | ${threshold}
169
170 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
171 | | [Documentation]
172 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
173 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames\
174 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
175 | | ...
176 | | [Tags] | 1518B | 1C | PDRDISC | SKIP_PATCH
177 | | ...
178 | | ${framesize}= | Set Variable | ${1518}
179 | | ${min_rate}= | Set Variable | ${10000}
180 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${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 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
187 | | And Add PCI devices to all DUTs
188 | | And Add no multi seg to all DUTs
189 | | And Apply startup configuration on all VPP DUTs
190 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
191 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
192 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
193 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
194 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
195 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
196 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
197 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
198 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
199 | | ... | ${binary_max} | ${traffic_profile}
200 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
201 | | ... | ${perf_pdr_loss_acceptance_type}
202
203 | tc05-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
204 | | [Documentation]
205 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
206 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
207 | | ... | size using binary search start at 40GE linerate, step 10kpps.
208 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
209 | | ...
210 | | [Tags] | IMIX | 1C | NDRDISC
211 | | ...
212 | | ${framesize}= | Set Variable | IMIX_v4_1
213 | | ${min_rate}= | Set Variable | ${10000}
214 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
215 | | ${binary_min}= | Set Variable | ${min_rate}
216 | | ${binary_max}= | Set Variable | ${max_rate}
217 | | ${threshold}= | Set Variable | ${min_rate}
218 | | ${dut1_vm_refs}= | Create Dictionary
219 | | ${dut2_vm_refs}= | Create Dictionary
220 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
221 | | And Add PCI devices to all DUTs
222 | | And Add no multi seg to all DUTs
223 | | And Apply startup configuration on all VPP DUTs
224 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
225 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
226 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
227 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
228 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
229 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
230 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
231 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
232 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
233 | | ... | ${binary_max} | ${traffic_profile}
234 | | ... | ${min_rate} | ${max_rate} | ${threshold}
235
236 | tc06-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
237 | | [Documentation]
238 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
239 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
240 | | ... | size using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
241 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
242 | | ...
243 | | [Tags] | IMIX | 1C | PDRDISC | SKIP_PATCH
244 | | ...
245 | | ${framesize}= | Set Variable | IMIX_v4_1
246 | | ${min_rate}= | Set Variable | ${10000}
247 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
248 | | ${binary_min}= | Set Variable | ${min_rate}
249 | | ${binary_max}= | Set Variable | ${max_rate}
250 | | ${threshold}= | Set Variable | ${min_rate}
251 | | ${dut1_vm_refs}= | Create Dictionary
252 | | ${dut2_vm_refs}= | Create Dictionary
253 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
254 | | And Add PCI devices to all DUTs
255 | | And Apply startup configuration on all VPP DUTs
256 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
257 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
258 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
259 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
260 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
261 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
262 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
263 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
264 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
265 | | ... | ${binary_max} | ${traffic_profile}
266 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
267 | | ... | ${perf_pdr_loss_acceptance_type}
268
269 | tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
270 | | [Documentation]
271 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores,\
272 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames\
273 | | ... | using binary search start at 40GE linerate, step 10kpps.
274 | | ...
275 | | [Tags] | 64B | 2C | NDRDISC
276 | | ...
277 | | ${framesize}= | Set Variable | ${64}
278 | | ${min_rate}= | Set Variable | ${10000}
279 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
280 | | ${binary_min}= | Set Variable | ${min_rate}
281 | | ${binary_max}= | Set Variable | ${max_rate}
282 | | ${threshold}= | Set Variable | ${min_rate}
283 | | ${dut1_vm_refs}= | Create Dictionary
284 | | ${dut2_vm_refs}= | Create Dictionary
285 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
286 | | And Add PCI devices to all DUTs
287 | | And Add no multi seg to all DUTs
288 | | And Apply startup configuration on all VPP DUTs
289 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
290 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
291 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
292 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
293 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
294 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
295 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
296 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
297 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
298 | | ... | ${binary_max} | ${traffic_profile}
299 | | ... | ${min_rate} | ${max_rate} | ${threshold}
300
301 | tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
302 | | [Documentation]
303 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores,\
304 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames\
305 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
306 | | ...
307 | | [Tags] | 64B | 2C | PDRDISC | SKIP_PATCH
308 | | ...
309 | | ${framesize}= | Set Variable | ${64}
310 | | ${min_rate}= | Set Variable | ${10000}
311 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
312 | | ${binary_min}= | Set Variable | ${min_rate}
313 | | ${binary_max}= | Set Variable | ${max_rate}
314 | | ${threshold}= | Set Variable | ${min_rate}
315 | | ${dut1_vm_refs}= | Create Dictionary
316 | | ${dut2_vm_refs}= | Create Dictionary
317 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
318 | | And Add PCI devices to all DUTs
319 | | And Add no multi seg to all DUTs
320 | | And Apply startup configuration on all VPP DUTs
321 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
322 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
323 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
324 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
325 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
326 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
327 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
328 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
329 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
330 | | ... | ${binary_max} | ${traffic_profile}
331 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
332 | | ... | ${perf_pdr_loss_acceptance_type}
333
334 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
335 | | [Documentation]
336 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores,\
337 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames\
338 | | ... | using binary search start at 40GE linerate, step 10kpps.
339 | | ...
340 | | [Tags] | 1518B | 2C | NDRDISC | SKIP_PATCH
341 | | ...
342 | | ${framesize}= | Set Variable | ${1518}
343 | | ${min_rate}= | Set Variable | ${10000}
344 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
345 | | ${binary_min}= | Set Variable | ${min_rate}
346 | | ${binary_max}= | Set Variable | ${max_rate}
347 | | ${threshold}= | Set Variable | ${min_rate}
348 | | ${dut1_vm_refs}= | Create Dictionary
349 | | ${dut2_vm_refs}= | Create Dictionary
350 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
351 | | And Add PCI devices to all DUTs
352 | | And Add no multi seg to all DUTs
353 | | And Apply startup configuration on all VPP DUTs
354 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
355 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
356 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
357 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
358 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
359 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
360 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
361 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
362 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
363 | | ... | ${binary_max} | ${traffic_profile}
364 | | ... | ${min_rate} | ${max_rate} | ${threshold}
365
366 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
367 | | [Documentation]
368 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores,\
369 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames\
370 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
371 | | ...
372 | | [Tags] | 1518B | 2C | PDRDISC | SKIP_PATCH
373 | | ...
374 | | ${framesize}= | Set Variable | ${1518}
375 | | ${min_rate}= | Set Variable | ${10000}
376 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
377 | | ${binary_min}= | Set Variable | ${min_rate}
378 | | ${binary_max}= | Set Variable | ${max_rate}
379 | | ${threshold}= | Set Variable | ${min_rate}
380 | | ${dut1_vm_refs}= | Create Dictionary
381 | | ${dut2_vm_refs}= | Create Dictionary
382 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
383 | | And Add PCI devices to all DUTs
384 | | And Add no multi seg to all DUTs
385 | | And Apply startup configuration on all VPP DUTs
386 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
387 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
388 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
389 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
390 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
391 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
392 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
393 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
394 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
395 | | ... | ${binary_max} | ${traffic_profile}
396 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
397 | | ... | ${perf_pdr_loss_acceptance_type}
398
399 | tc11-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
400 | | [Documentation]
401 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores,\
402 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
403 | | ... | size using binary search start at 40GE linerate, step 10kpps.
404 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
405 | | ...
406 | | [Tags] | IMIX | 2C | NDRDISC | SKIP_PATCH
407 | | ...
408 | | ${framesize}= | Set Variable | IMIX_v4_1
409 | | ${min_rate}= | Set Variable | ${10000}
410 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
411 | | ${binary_min}= | Set Variable | ${min_rate}
412 | | ${binary_max}= | Set Variable | ${max_rate}
413 | | ${threshold}= | Set Variable | ${min_rate}
414 | | ${dut1_vm_refs}= | Create Dictionary
415 | | ${dut2_vm_refs}= | Create Dictionary
416 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
417 | | And Add PCI devices to all DUTs
418 | | And Add no multi seg to all DUTs
419 | | And Apply startup configuration on all VPP DUTs
420 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
421 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
422 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
423 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
424 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
425 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
426 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
427 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
428 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
429 | | ... | ${binary_max} | ${traffic_profile}
430 | | ... | ${min_rate} | ${max_rate} | ${threshold}
431
432 | tc12-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
433 | | [Documentation]
434 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores,\
435 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
436 | | ... | size using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
437 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
438 | | ...
439 | | [Tags] | IMIX | 2C | PDRDISC | SKIP_PATCH
440 | | ...
441 | | ${framesize}= | Set Variable | IMIX_v4_1
442 | | ${min_rate}= | Set Variable | ${10000}
443 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
444 | | ${binary_min}= | Set Variable | ${min_rate}
445 | | ${binary_max}= | Set Variable | ${max_rate}
446 | | ${threshold}= | Set Variable | ${min_rate}
447 | | ${dut1_vm_refs}= | Create Dictionary
448 | | ${dut2_vm_refs}= | Create Dictionary
449 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
450 | | And Add PCI devices to all DUTs
451 | | And Add no multi seg to all DUTs
452 | | And Apply startup configuration on all VPP DUTs
453 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
454 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
455 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
456 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
457 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
458 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
459 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
460 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
461 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
462 | | ... | ${binary_max} | ${traffic_profile}
463 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
464 | | ... | ${perf_pdr_loss_acceptance_type}
465
466 | tc13-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
467 | | [Documentation]
468 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores,\
469 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames\
470 | | ... | using binary search start at 40GE linerate, step 10kpps.
471 | | ...
472 | | [Tags] | 64B | 4C | NDRDISC
473 | | ...
474 | | ${framesize}= | Set Variable | ${64}
475 | | ${min_rate}= | Set Variable | ${10000}
476 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
477 | | ${binary_min}= | Set Variable | ${min_rate}
478 | | ${binary_max}= | Set Variable | ${max_rate}
479 | | ${threshold}= | Set Variable | ${min_rate}
480 | | ${dut1_vm_refs}= | Create Dictionary
481 | | ${dut2_vm_refs}= | Create Dictionary
482 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
483 | | And Add PCI devices to all DUTs
484 | | And Add no multi seg to all DUTs
485 | | And Apply startup configuration on all VPP DUTs
486 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
487 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
488 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
489 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
490 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
491 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
492 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
493 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
494 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
495 | | ... | ${binary_max} | ${traffic_profile}
496 | | ... | ${min_rate} | ${max_rate} | ${threshold}
497
498 | tc14-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
499 | | [Documentation]
500 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores,\
501 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames\
502 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
503 | | ...
504 | | [Tags] | 64B | 4C | PDRDISC | SKIP_PATCH
505 | | ...
506 | | ${framesize}= | Set Variable | ${64}
507 | | ${min_rate}= | Set Variable | ${10000}
508 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
509 | | ${binary_min}= | Set Variable | ${min_rate}
510 | | ${binary_max}= | Set Variable | ${max_rate}
511 | | ${threshold}= | Set Variable | ${min_rate}
512 | | ${dut1_vm_refs}= | Create Dictionary
513 | | ${dut2_vm_refs}= | Create Dictionary
514 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
515 | | And Add PCI devices to all DUTs
516 | | And Add no multi seg to all DUTs
517 | | And Apply startup configuration on all VPP DUTs
518 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
519 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
520 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
521 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
522 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
523 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
524 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
525 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
526 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
527 | | ... | ${binary_max} | ${traffic_profile}
528 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
529 | | ... | ${perf_pdr_loss_acceptance_type}
530
531 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
532 | | [Documentation]
533 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores,\
534 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames\
535 | | ... | using binary search start at 40GE linerate, step 10kpps.
536 | | ...
537 | | [Tags] | 1518B | 4C | NDRDISC | SKIP_PATCH
538 | | ...
539 | | ${framesize}= | Set Variable | ${1518}
540 | | ${min_rate}= | Set Variable | ${10000}
541 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
542 | | ${binary_min}= | Set Variable | ${min_rate}
543 | | ${binary_max}= | Set Variable | ${max_rate}
544 | | ${threshold}= | Set Variable | ${min_rate}
545 | | ${dut1_vm_refs}= | Create Dictionary
546 | | ${dut2_vm_refs}= | Create Dictionary
547 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
548 | | And Add PCI devices to all DUTs
549 | | And Add no multi seg to all DUTs
550 | | And Apply startup configuration on all VPP DUTs
551 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
552 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
553 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
554 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
555 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
556 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
557 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
558 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
559 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
560 | | ... | ${binary_max} | ${traffic_profile}
561 | | ... | ${min_rate} | ${max_rate} | ${threshold}
562
563 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
564 | | [Documentation]
565 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores,\
566 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames\
567 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
568 | | ...
569 | | [Tags] | 1518B | 4C | PDRDISC | SKIP_PATCH
570 | | ...
571 | | ${framesize}= | Set Variable | ${1518}
572 | | ${min_rate}= | Set Variable | ${10000}
573 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
574 | | ${binary_min}= | Set Variable | ${min_rate}
575 | | ${binary_max}= | Set Variable | ${max_rate}
576 | | ${threshold}= | Set Variable | ${min_rate}
577 | | ${dut1_vm_refs}= | Create Dictionary
578 | | ${dut2_vm_refs}= | Create Dictionary
579 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
580 | | And Add PCI devices to all DUTs
581 | | And Add no multi seg to all DUTs
582 | | And Apply startup configuration on all VPP DUTs
583 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
584 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
585 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
586 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
587 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
588 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
589 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
590 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
591 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
592 | | ... | ${binary_max} | ${traffic_profile}
593 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
594 | | ... | ${perf_pdr_loss_acceptance_type}
595
596 | tc17-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
597 | | [Documentation]
598 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores,\
599 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
600 | | ... | size using binary search start at 40GE linerate, step 10kpps.
601 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
602 | | ...
603 | | [Tags] | IMIX | 4C | NDRDISC | SKIP_PATCH
604 | | ...
605 | | ${framesize}= | Set Variable | IMIX_v4_1
606 | | ${min_rate}= | Set Variable | ${10000}
607 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
608 | | ${binary_min}= | Set Variable | ${min_rate}
609 | | ${binary_max}= | Set Variable | ${max_rate}
610 | | ${threshold}= | Set Variable | ${min_rate}
611 | | ${dut1_vm_refs}= | Create Dictionary
612 | | ${dut2_vm_refs}= | Create Dictionary
613 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
614 | | And Add PCI devices to all DUTs
615 | | And Add no multi seg to all DUTs
616 | | And Apply startup configuration on all VPP DUTs
617 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
618 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
619 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
620 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
621 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
622 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
623 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
624 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
625 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
626 | | ... | ${binary_max} | ${traffic_profile}
627 | | ... | ${min_rate} | ${max_rate} | ${threshold}
628
629 | tc18-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
630 | | [Documentation]
631 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores,\
632 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
633 | | ... | size using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
634 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
635 | | ...
636 | | [Tags] | IMIX | 4C | PDRDISC | SKIP_PATCH
637 | | ...
638 | | ${framesize}= | Set Variable | IMIX_v4_1
639 | | ${min_rate}= | Set Variable | ${10000}
640 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
641 | | ${binary_min}= | Set Variable | ${min_rate}
642 | | ${binary_max}= | Set Variable | ${max_rate}
643 | | ${threshold}= | Set Variable | ${min_rate}
644 | | ${dut1_vm_refs}= | Create Dictionary
645 | | ${dut2_vm_refs}= | Create Dictionary
646 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
647 | | And Add PCI devices to all DUTs
648 | | And Add no multi seg to all DUTs
649 | | And Apply startup configuration on all VPP DUTs
650 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
651 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
652 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
653 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
654 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
655 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
656 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
657 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
658 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
659 | | ... | ${binary_max} | ${traffic_profile}
660 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
661 | | ... | ${perf_pdr_loss_acceptance_type}