Add vhost and memif MRR suite
[csit.git] / tests / vpp / perf / vm_vhost / 10ge2p1x520-dot1q-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-X520-DA2 | DOT1Q | L2BDMACLRN | BASE | VHOST | VM | VHOST_1024
20 | ...
21 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
22 | ... | L2 | Intel-X520-DA2
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. 802.1q
36 | ... | tagging is applied on link between DUT1 and DUT2.
37 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
38 | ... | domain and MAC learning enabled. Qemu Guest is connected to VPP via
39 | ... | vhost-user interfaces. Guest is running DPDK testpmd interconnecting
40 | ... | vhost-user interfaces using 5 cores pinned to cpus 5-9 and 2048M
41 | ... | memory. Testpmd is using socket-mem=1024M (512x2M hugepages), 5 cores
42 | ... | (1 main core and 4 cores dedicated for io), forwarding mode is set to
43 | ... | io, rxd/txd=256, burst=64. DUT1, DUT2 are tested with 2p10GE NIC X520
44 | ... | Niantic by Intel.
45 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
46 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
47 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
48 | ... | of packets transmitted. NDR and PDR are discovered for different
49 | ... | Ethernet L2 frame sizes using either binary search or linear search
50 | ... | algorithms with configured starting rate and final step that determines
51 | ... | throughput measurement resolution. Test packets are generated by TG on
52 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
53 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
54 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
55 | ... | payload. MAC addresses are matching MAC addresses of the TG node
56 | ... | interfaces.
57 | ... | *[Ref] Applicable standard specifications:* RFC2544.
58
59 *** Variables ***
60 | ${subid}= | 10
61 | ${tag_rewrite}= | pop-1
62 | ${vlan_overhead}= | ${4}
63 # X520-DA2 bandwidth limit
64 | ${s_limit} | ${10000000000}
65 # Socket names
66 | ${bd_id1}= | 1
67 | ${bd_id2}= | 2
68 | ${sock1}= | /tmp/sock-1-${bd_id1}
69 | ${sock2}= | /tmp/sock-1-${bd_id2}
70 # Traffic profile:
71 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
72
73 *** Test Cases ***
74 | tc01-64B-1t1c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
75 | | [Documentation]
76 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
77 | | ... | 1 receive queue per NIC port.
78 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
79 | | ... | linerate, step 10kpps.
80 | | ...
81 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
82 | | ...
83 | | ${framesize}= | Set Variable | ${64}
84 | | ${min_rate}= | Set Variable | ${10000}
85 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vlan_overhead}}
86 | | ${binary_min}= | Set Variable | ${min_rate}
87 | | ${binary_max}= | Set Variable | ${max_rate}
88 | | ${threshold}= | Set Variable | ${min_rate}
89 | | ${dut1_vm_refs}= | Create Dictionary
90 | | ${dut2_vm_refs}= | Create Dictionary
91 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
92 | | And Add PCI devices to DUTs in 3-node single link topology
93 | | And Add no multi seg to all DUTs
94 | | And Apply startup configuration on all VPP DUTs
95 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
96 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
97 | | ... | ${tag_rewrite}
98 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
99 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
100 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
101 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
102 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
103 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
104 | | ... | ${True}
105 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
106 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
107 | | ... | ${binary_max} | ${traffic_profile}
108 | | ... | ${min_rate} | ${max_rate} | ${threshold}
109
110 | tc02-64B-1t1c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
111 | | [Documentation]
112 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
113 | | ... | 1 receive queue per NIC port.
114 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
115 | | ... | linerate, step 10kpps, LT=0.5%.
116 | | ...
117 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
118 | | ...
119 | | ${framesize}= | Set Variable | ${64}
120 | | ${min_rate}= | Set Variable | ${10000}
121 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vlan_overhead}}
122 | | ${binary_min}= | Set Variable | ${min_rate}
123 | | ${binary_max}= | Set Variable | ${max_rate}
124 | | ${threshold}= | Set Variable | ${min_rate}
125 | | ${dut1_vm_refs}= | Create Dictionary
126 | | ${dut2_vm_refs}= | Create Dictionary
127 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
128 | | And Add PCI devices to DUTs in 3-node single link topology
129 | | And Add no multi seg to all DUTs
130 | | And Apply startup configuration on all VPP DUTs
131 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
132 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
133 | | ... | ${tag_rewrite}
134 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
135 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
136 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
137 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
138 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
139 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
140 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
141 | | ... | ${True}
142 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
143 | | ... | ${binary_max} | ${traffic_profile}
144 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
145 | | ... | ${perf_pdr_loss_acceptance_type}
146
147 | tc03-1518B-1t1c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
148 | | [Documentation]
149 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
150 | | ... | 1 receive queue per NIC port.
151 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
152 | | ... | linerate, step 10kpps.
153 | | ...
154 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
155 | | ...
156 | | ${framesize}= | Set Variable | ${1518}
157 | | ${min_rate}= | Set Variable | ${10000}
158 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vlan_overhead}}
159 | | ${binary_min}= | Set Variable | ${min_rate}
160 | | ${binary_max}= | Set Variable | ${max_rate}
161 | | ${threshold}= | Set Variable | ${min_rate}
162 | | ${dut1_vm_refs}= | Create Dictionary
163 | | ${dut2_vm_refs}= | Create Dictionary
164 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
165 | | And Add PCI devices to DUTs in 3-node single link topology
166 | | And Add no multi seg to all DUTs
167 | | And Apply startup configuration on all VPP DUTs
168 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
169 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
170 | | ... | ${tag_rewrite}
171 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
172 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
173 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
174 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
175 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
176 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
177 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
178 | | ... | ${True}
179 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
180 | | ... | ${binary_max} | ${traffic_profile}
181 | | ... | ${min_rate} | ${max_rate} | ${threshold}
182
183 | tc04-1518B-1t1c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
186 | | ... | 1 receive queue per NIC port.
187 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
188 | | ... | linerate, step 10kpps, LT=0.5%.
189 | | ...
190 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
191 | | ...
192 | | ${framesize}= | Set Variable | ${1518}
193 | | ${min_rate}= | Set Variable | ${10000}
194 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vlan_overhead}}
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 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
201 | | And Add PCI devices to DUTs in 3-node single link topology
202 | | And Add no multi seg to all DUTs
203 | | And Apply startup configuration on all VPP DUTs
204 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
205 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
206 | | ... | ${tag_rewrite}
207 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
208 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
209 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
210 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
211 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
212 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
213 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
214 | | ... | ${True}
215 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
216 | | ... | ${binary_max} | ${traffic_profile}
217 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
218 | | ... | ${perf_pdr_loss_acceptance_type}
219
220 | tc05-IMIX-1t1c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
221 | | [Documentation]
222 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
223 | | ... | 1 receive queue per NIC port.
224 | | ... | [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at\
225 | | ... | 10GE linerate, step 10kpps.
226 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
227 | | ...
228 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
229 | | ...
230 | | ${framesize}= | Set Variable | IMIX_v4_1
231 | | ${avg_framesize}= | Set Variable | ${357.833}
232 | | ${min_rate}= | Set Variable | ${10000}
233 | | ${max_rate}= | Calculate pps | ${s_limit} | ${avg_framesize}
234 | | ${binary_min}= | Set Variable | ${min_rate}
235 | | ${binary_max}= | Set Variable | ${max_rate}
236 | | ${threshold}= | Set Variable | ${min_rate}
237 | | ${dut1_vm_refs}= | Create Dictionary
238 | | ${dut2_vm_refs}= | Create Dictionary
239 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
240 | | And Add PCI devices to DUTs in 3-node single link topology
241 | | And Add no multi seg to all DUTs
242 | | And Apply startup configuration on all VPP DUTs
243 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
244 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
245 | | ... | ${tag_rewrite}
246 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
247 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
248 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
249 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
250 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
251 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
252 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
253 | | ... | ${True}
254 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
255 | | ... | ${binary_max} | ${traffic_profile}
256 | | ... | ${min_rate} | ${max_rate} | ${threshold}
257
258 | tc06-IMIX-1t1c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
259 | | [Documentation]
260 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
261 | | ... | 1 receive queue per NIC port.
262 | | ... | [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at\
263 | | ... | 10GE linerate, step 10kpps, LT=0.5%.
264 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
265 | | ...
266 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
267 | | ...
268 | | ${framesize}= | Set Variable | IMIX_v4_1
269 | | ${avg_framesize}= | Set Variable | ${357.833}
270 | | ${min_rate}= | Set Variable | ${10000}
271 | | ${max_rate}= | Calculate pps | ${s_limit} | ${avg_framesize}
272 | | ${binary_min}= | Set Variable | ${min_rate}
273 | | ${binary_max}= | Set Variable | ${max_rate}
274 | | ${threshold}= | Set Variable | ${min_rate}
275 | | ${dut1_vm_refs}= | Create Dictionary
276 | | ${dut2_vm_refs}= | Create Dictionary
277 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
278 | | And Add PCI devices to DUTs in 3-node single link topology
279 | | And Add no multi seg to all DUTs
280 | | And Apply startup configuration on all VPP DUTs
281 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
282 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
283 | | ... | ${tag_rewrite}
284 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
285 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
286 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
287 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
288 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
289 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
290 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
291 | | ... | ${True}
292 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
293 | | ... | ${binary_max} | ${traffic_profile}
294 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
295 | | ... | ${perf_pdr_loss_acceptance_type}
296
297 | tc07-64B-2t2c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
298 | | [Documentation]
299 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
300 | | ... | 1 receive queue per NIC port.
301 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
302 | | ... | linerate, step 10kpps.
303 | | ...
304 | | [Tags] | 64B | 2T2C | STHREAD | NDRDISC
305 | | ...
306 | | ${framesize}= | Set Variable | ${64}
307 | | ${min_rate}= | Set Variable | ${10000}
308 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vlan_overhead}}
309 | | ${binary_min}= | Set Variable | ${min_rate}
310 | | ${binary_max}= | Set Variable | ${max_rate}
311 | | ${threshold}= | Set Variable | ${min_rate}
312 | | ${dut1_vm_refs}= | Create Dictionary
313 | | ${dut2_vm_refs}= | Create Dictionary
314 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
315 | | And Add PCI devices to DUTs in 3-node single link topology
316 | | And Add no multi seg to all DUTs
317 | | And Apply startup configuration on all VPP DUTs
318 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
319 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
320 | | ... | ${tag_rewrite}
321 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
322 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
323 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
324 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
325 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
326 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
327 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
328 | | ... | ${True}
329 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
330 | | ... | ${binary_max} | ${traffic_profile}
331 | | ... | ${min_rate} | ${max_rate} | ${threshold}
332
333 | tc08-64B-2t2c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
334 | | [Documentation]
335 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
336 | | ... | 1 receive queue per NIC port.
337 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
338 | | ... | linerate, step 10kpps, LT=0.5%.
339 | | ...
340 | | [Tags] | 64B | 2T2C | STHREAD | PDRDISC | SKIP_PATCH
341 | | ...
342 | | ${framesize}= | Set Variable | ${64}
343 | | ${min_rate}= | Set Variable | ${10000}
344 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vlan_overhead}}
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 DUTs in 3-node single link topology
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 and VLAN in a 3-node circular topology
355 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
356 | | ... | ${tag_rewrite}
357 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
358 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
359 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
360 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
361 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
362 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
363 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
364 | | ... | ${True}
365 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
366 | | ... | ${binary_max} | ${traffic_profile}
367 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
368 | | ... | ${perf_pdr_loss_acceptance_type}
369
370 | tc09-1518B-2t2c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
371 | | [Documentation]
372 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
373 | | ... | 1 receive queue per NIC port.
374 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
375 | | ... | linerate, step 10kpps.
376 | | ...
377 | | [Tags] | 1518B | 2T2C | STHREAD | NDRDISC | SKIP_PATCH
378 | | ...
379 | | ${framesize}= | Set Variable | ${1518}
380 | | ${min_rate}= | Set Variable | ${10000}
381 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vlan_overhead}}
382 | | ${binary_min}= | Set Variable | ${min_rate}
383 | | ${binary_max}= | Set Variable | ${max_rate}
384 | | ${threshold}= | Set Variable | ${min_rate}
385 | | ${dut1_vm_refs}= | Create Dictionary
386 | | ${dut2_vm_refs}= | Create Dictionary
387 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
388 | | And Add PCI devices to DUTs in 3-node single link topology
389 | | And Add no multi seg to all DUTs
390 | | And Apply startup configuration on all VPP DUTs
391 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
392 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
393 | | ... | ${tag_rewrite}
394 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
395 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
396 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
397 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
398 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
399 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
400 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
401 | | ... | ${True}
402 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
403 | | ... | ${binary_max} | ${traffic_profile}
404 | | ... | ${min_rate} | ${max_rate} | ${threshold}
405
406 | tc10-1518B-2t2c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
407 | | [Documentation]
408 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
409 | | ... | 1 receive queue per NIC port.
410 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
411 | | ... | linerate, step 10kpps, LT=0.5%.
412 | | ...
413 | | [Tags] | 1518B | 2T2C | STHREAD | PDRDISC | SKIP_PATCH
414 | | ...
415 | | ${framesize}= | Set Variable | ${1518}
416 | | ${min_rate}= | Set Variable | ${10000}
417 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vlan_overhead}}
418 | | ${binary_min}= | Set Variable | ${min_rate}
419 | | ${binary_max}= | Set Variable | ${max_rate}
420 | | ${threshold}= | Set Variable | ${min_rate}
421 | | ${dut1_vm_refs}= | Create Dictionary
422 | | ${dut2_vm_refs}= | Create Dictionary
423 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
424 | | And Add PCI devices to DUTs in 3-node single link topology
425 | | And Add no multi seg to all DUTs
426 | | And Apply startup configuration on all VPP DUTs
427 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
428 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
429 | | ... | ${tag_rewrite}
430 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
431 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
432 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
433 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
434 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
435 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
436 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
437 | | ... | ${True}
438 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
439 | | ... | ${binary_max} | ${traffic_profile}
440 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
441 | | ... | ${perf_pdr_loss_acceptance_type}
442
443 | tc11-IMIX-2t2c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
444 | | [Documentation]
445 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
446 | | ... | 1 receive queue per NIC port.
447 | | ... | [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at\
448 | | ... | 10GE linerate, step 10kpps.
449 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
450 | | ...
451 | | [Tags] | IMIX | 2T2C | STHREAD | NDRDISC | SKIP_PATCH
452 | | ...
453 | | ${framesize}= | Set Variable | IMIX_v4_1
454 | | ${avg_framesize}= | Set Variable | ${357.833}
455 | | ${min_rate}= | Set Variable | ${10000}
456 | | ${max_rate}= | Calculate pps | ${s_limit} | ${avg_framesize}
457 | | ${binary_min}= | Set Variable | ${min_rate}
458 | | ${binary_max}= | Set Variable | ${max_rate}
459 | | ${threshold}= | Set Variable | ${min_rate}
460 | | ${dut1_vm_refs}= | Create Dictionary
461 | | ${dut2_vm_refs}= | Create Dictionary
462 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
463 | | And Add PCI devices to DUTs in 3-node single link topology
464 | | And Add no multi seg to all DUTs
465 | | And Apply startup configuration on all VPP DUTs
466 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
467 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
468 | | ... | ${tag_rewrite}
469 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
470 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
471 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
472 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
473 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
474 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
475 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
476 | | ... | ${True}
477 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
478 | | ... | ${binary_max} | ${traffic_profile}
479 | | ... | ${min_rate} | ${max_rate} | ${threshold}
480
481 | tc12-IMIX-2t2c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
482 | | [Documentation]
483 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
484 | | ... | 1 receive queue per NIC port.
485 | | ... | [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at\
486 | | ... | 10GE linerate, step 10kpps.
487 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
488 | | ...
489 | | [Tags] | IMIX | 2T2C | STHREAD | PDRDISC | SKIP_PATCH
490 | | ...
491 | | ${framesize}= | Set Variable | IMIX_v4_1
492 | | ${avg_framesize}= | Set Variable | ${357.833}
493 | | ${min_rate}= | Set Variable | ${10000}
494 | | ${max_rate}= | Calculate pps | ${s_limit} | ${avg_framesize}
495 | | ${binary_min}= | Set Variable | ${min_rate}
496 | | ${binary_max}= | Set Variable | ${max_rate}
497 | | ${threshold}= | Set Variable | ${min_rate}
498 | | ${dut1_vm_refs}= | Create Dictionary
499 | | ${dut2_vm_refs}= | Create Dictionary
500 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
501 | | And Add PCI devices to DUTs in 3-node single link topology
502 | | And Add no multi seg to all DUTs
503 | | And Apply startup configuration on all VPP DUTs
504 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
505 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
506 | | ... | ${tag_rewrite}
507 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
508 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
509 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
510 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
511 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
512 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
513 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
514 | | ... | ${True}
515 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
516 | | ... | ${binary_max} | ${traffic_profile}
517 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
518 | | ... | ${perf_pdr_loss_acceptance_type}
519
520 | tc13-64B-4t4c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
521 | | [Documentation]
522 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
523 | | ... | 2 receive queues per NIC port.
524 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
525 | | ... | linerate, step 10kpps.
526 | | ...
527 | | [Tags] | 64B | 4T4C | STHREAD | NDRDISC
528 | | ...
529 | | ${framesize}= | Set Variable | ${64}
530 | | ${min_rate}= | Set Variable | ${10000}
531 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vlan_overhead}}
532 | | ${binary_min}= | Set Variable | ${min_rate}
533 | | ${binary_max}= | Set Variable | ${max_rate}
534 | | ${threshold}= | Set Variable | ${min_rate}
535 | | ${dut1_vm_refs}= | Create Dictionary
536 | | ${dut2_vm_refs}= | Create Dictionary
537 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
538 | | And Add PCI devices to DUTs in 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 Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
542 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
543 | | ... | ${tag_rewrite}
544 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
545 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
546 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
547 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
548 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
549 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
550 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
551 | | ... | ${True}
552 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
553 | | ... | ${binary_max} | ${traffic_profile}
554 | | ... | ${min_rate} | ${max_rate} | ${threshold}
555
556 | tc14-64B-4t4c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
557 | | [Documentation]
558 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
559 | | ... | 2 receive queues per NIC port.
560 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
561 | | ... | linerate, step 10kpps, LT=0.5%.
562 | | ...
563 | | [Tags] | 64B | 4T4C | STHREAD | PDRDISC | SKIP_PATCH
564 | | ...
565 | | ${framesize}= | Set Variable | ${64}
566 | | ${min_rate}= | Set Variable | ${10000}
567 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vlan_overhead}}
568 | | ${binary_min}= | Set Variable | ${min_rate}
569 | | ${binary_max}= | Set Variable | ${max_rate}
570 | | ${threshold}= | Set Variable | ${min_rate}
571 | | ${dut1_vm_refs}= | Create Dictionary
572 | | ${dut2_vm_refs}= | Create Dictionary
573 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
574 | | And Add PCI devices to DUTs in 3-node single link topology
575 | | And Add no multi seg to all DUTs
576 | | And Apply startup configuration on all VPP DUTs
577 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
578 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
579 | | ... | ${tag_rewrite}
580 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
581 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
582 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
583 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
584 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
585 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
586 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
587 | | ... | ${True}
588 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
589 | | ... | ${binary_max} | ${traffic_profile}
590 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
591 | | ... | ${perf_pdr_loss_acceptance_type}
592
593 | tc15-1518B-4t4c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
594 | | [Documentation]
595 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
596 | | ... | 2 receive queues per NIC port.
597 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
598 | | ... | linerate, step 10kpps.
599 | | ...
600 | | [Tags] | 1518B | 4T4C | STHREAD | NDRDISC | SKIP_PATCH
601 | | ...
602 | | ${framesize}= | Set Variable | ${1518}
603 | | ${min_rate}= | Set Variable | ${10000}
604 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vlan_overhead}}
605 | | ${binary_min}= | Set Variable | ${min_rate}
606 | | ${binary_max}= | Set Variable | ${max_rate}
607 | | ${threshold}= | Set Variable | ${min_rate}
608 | | ${dut1_vm_refs}= | Create Dictionary
609 | | ${dut2_vm_refs}= | Create Dictionary
610 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
611 | | And Add PCI devices to DUTs in 3-node single link topology
612 | | And Add no multi seg to all DUTs
613 | | And Apply startup configuration on all VPP DUTs
614 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
615 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
616 | | ... | ${tag_rewrite}
617 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
618 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
619 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
620 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
621 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
622 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
623 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
624 | | ... | ${True}
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 | tc16-1518B-4t4c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
630 | | [Documentation]
631 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
632 | | ... | 2 receive queues per NIC port.
633 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
634 | | ... | linerate, step 10kpps, LT=0.5%.
635 | | ...
636 | | [Tags] | 1518B | 4T4C | STHREAD | PDRDISC | SKIP_PATCH
637 | | ...
638 | | ${framesize}= | Set Variable | ${1518}
639 | | ${min_rate}= | Set Variable | ${10000}
640 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize + ${vlan_overhead}}
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 DUTs in 3-node single link topology
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 and VLAN in a 3-node circular topology
651 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
652 | | ... | ${tag_rewrite}
653 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
654 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
655 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
656 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
657 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
658 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
659 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
660 | | ... | ${True}
661 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
662 | | ... | ${binary_max} | ${traffic_profile}
663 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
664 | | ... | ${perf_pdr_loss_acceptance_type}
665
666 | tc17-IMIX-4t4c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-ndrdisc
667 | | [Documentation]
668 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
669 | | ... | 2 receive queues per NIC port.
670 | | ... | [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at\
671 | | ... | 10GE linerate, step 10kpps.
672 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
673 | | ...
674 | | [Tags] | IMIX | 4T4C | STHREAD | NDRDISC | SKIP_PATCH
675 | | ...
676 | | ${framesize}= | Set Variable | IMIX_v4_1
677 | | ${avg_framesize}= | Set Variable | ${357.833}
678 | | ${min_rate}= | Set Variable | ${10000}
679 | | ${max_rate}= | Calculate pps | ${s_limit} | ${avg_framesize}
680 | | ${binary_min}= | Set Variable | ${min_rate}
681 | | ${binary_max}= | Set Variable | ${max_rate}
682 | | ${threshold}= | Set Variable | ${min_rate}
683 | | ${dut1_vm_refs}= | Create Dictionary
684 | | ${dut2_vm_refs}= | Create Dictionary
685 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
686 | | And Add PCI devices to DUTs in 3-node single link topology
687 | | And Add no multi seg to all DUTs
688 | | And Apply startup configuration on all VPP DUTs
689 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
690 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
691 | | ... | ${tag_rewrite}
692 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
693 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
694 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
695 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
696 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
697 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
698 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
699 | | ... | ${True}
700 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
701 | | ... | ${binary_max} | ${traffic_profile}
702 | | ... | ${min_rate} | ${max_rate} | ${threshold}
703
704 | tc18-IMIX-4t4c-dot1q-l2bdbasemaclrn-eth-2vhostvr1024-1vm-pdrdisc
705 | | [Documentation]
706 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
707 | | ... | 2 receive queues per NIC port.
708 | | ... | [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at\
709 | | ... | 10GE linerate, step 10kpps, LT=0.5%.
710 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
711 | | ...
712 | | [Tags] | IMIX | 4T4C | STHREAD | PDRDISC | SKIP_PATCH
713 | | ...
714 | | ${framesize}= | Set Variable | IMIX_v4_1
715 | | ${avg_framesize}= | Set Variable | ${357.833}
716 | | ${min_rate}= | Set Variable | ${10000}
717 | | ${max_rate}= | Calculate pps | ${s_limit} | ${avg_framesize}
718 | | ${binary_min}= | Set Variable | ${min_rate}
719 | | ${binary_max}= | Set Variable | ${max_rate}
720 | | ${threshold}= | Set Variable | ${min_rate}
721 | | ${dut1_vm_refs}= | Create Dictionary
722 | | ${dut2_vm_refs}= | Create Dictionary
723 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
724 | | And Add PCI devices to DUTs in 3-node single link topology
725 | | And Add no multi seg to all DUTs
726 | | And Apply startup configuration on all VPP DUTs
727 | | When Initialize L2 bridge domains with Vhost-User and VLAN in a 3-node circular topology
728 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2} | ${subid}
729 | | ... | ${tag_rewrite}
730 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
731 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
732 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
733 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
734 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
735 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
736 | | Run Keyword Unless | ${qemu_built} | Set Suite Variable | ${qemu_built}
737 | | ... | ${True}
738 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
739 | | ... | ${binary_max} | ${traffic_profile}
740 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
741 | | ... | ${perf_pdr_loss_acceptance_type}