CSIT-387 collect HW stats if binary search fails
[csit.git] / tests / perf / Long_Xconnect_Vhost_Intel-X520-DA2.robot
1 # Copyright (c) 2016 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/performance.robot
16 | Library | resources.libraries.python.NodePath
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
18 | ...        | PERFTEST_VHOST | NIC_Intel-X520-DA2
19 | Suite Setup | Run Keywords | 3-node Performance Suite Setup with DUT's NIC model
20 | ... | L2 | Intel-X520-DA2
21 | ...         | AND          | Kill QEMU on all DUTs
22 | ...         | AND          | Build QEMU on all DUTs
23 | Suite Teardown | 3-node Performance Suite Teardown
24 | Test Setup | Setup all DUTs before test
25 | Test Teardown | Run Keywords
26 | ...           | Run Keyword If Test Failed
27 | ...           | Traffic should pass with no loss | 10
28 | ...           | ${min_rate}pps | ${framesize} | 3-node-bridge
29 | ...           | fail_on_loss=${False}
30 | ...           | AND |  Remove startup configuration of VPP from all DUTs
31 | ...           | AND | Guest VM with dpdk-testpmd Teardown | ${dut1}
32 | ...                 | ${dut1_vm_refs}
33 | ...           | AND | Guest VM with dpdk-testpmd Teardown | ${dut2}
34 | ...                 | ${dut2_vm_refs}
35 | Documentation | *RFC2544: Pkt throughput L2XC test cases with vhost*
36 | ...
37 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
38 | ... | with single links between nodes.
39 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect.
40 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
41 | ... | connect. Qemu Guest is connected to VPP via vhost-user interfaces.
42 | ... | Guest is running DPDK testpmd interconnecting vhost-user interfaces
43 | ... | using 3 cores pinned to cpus 5,6,7 and 2048M memory. Testpmd is using
44 | ... | socket-mem=1024M (512x2M hugepages), 3 cores (1 main core and 2 cores
45 | ... | 2 cores dedicated for io), forwarding mode is set to io, rxq/txq=2048,
46 | ... | burst=64. DUT1, DUT2 are tested with 2p10GE NIC X520 Niantic by Intel.
47 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
48 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
49 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
50 | ... | of packets transmitted. NDR and PDR are discovered for different
51 | ... | Ethernet L2 frame sizes using either binary search or linear search
52 | ... | algorithms with configured starting rate and final step that determines
53 | ... | throughput measurement resolution. Test packets are generated by TG on
54 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
55 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
56 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
57 | ... | payload. MAC addresses are matching MAC addresses of the TG node
58 | ... | interfaces.
59 | ... | *[Ref] Applicable standard specifications:* RFC2544.
60
61 *** Variables ***
62 | ${bd_id1}= | 1
63 | ${bd_id2}= | 2
64 | ${sock1}= | /tmp/sock-1-${bd_id1}
65 | ${sock2}= | /tmp/sock-1-${bd_id2}
66
67 *** Test Cases ***
68 | TC01: 64B NDR binary search - DUT L2XC-VHOST - 1thread 1core 1rxq
69 | | [Documentation]
70 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
71 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
72 | | ... | using binary search start at 10GE linerate, step 10kpps.
73 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
74 | | ${framesize}= | Set Variable | 64
75 | | ${min_rate}= | Set Variable | 10000
76 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
77 | | ${binary_min}= | Set Variable | ${min_rate}
78 | | ${binary_max}= | Set Variable | ${max_rate}
79 | | ${threshold}= | Set Variable | ${min_rate}
80 | | ${dut1_vm_refs}= | Create Dictionary
81 | | ${dut2_vm_refs}= | Create Dictionary
82 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
83 | | And   Add PCI devices to DUTs from 3-node single link topology
84 | | And   Add No Multi Seg to all DUTs
85 | | And   Apply startup configuration on all VPP DUTs
86 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
87 | | ...   | ${sock1} | ${sock2}
88 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
89 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
90 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
91 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
92 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
93 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
94 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
95 | | ...                                       | ${binary_max} | 3-node-bridge
96 | | ...                                       | ${min_rate} | ${max_rate}
97 | | ...                                       | ${threshold}
98
99 | TC02: 64B PDR binary search - DUT L2XC-VHOST - 1thread 1core 1rxq
100 | | [Documentation]
101 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
102 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
103 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
104 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
105 | | ${framesize}= | Set Variable | 64
106 | | ${min_rate}= | Set Variable | 10000
107 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
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 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
114 | | And   Add PCI devices to DUTs from 3-node single link topology
115 | | And   Add No Multi Seg to all DUTs
116 | | And   Apply startup configuration on all VPP DUTs
117 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
118 | | ...   | ${sock1} | ${sock2}
119 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
120 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
121 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
122 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
123 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
124 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
125 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
126 | | ...                                       | ${binary_max} | 3-node-bridge
127 | | ...                                       | ${min_rate} | ${max_rate}
128 | | ...                                       | ${threshold}
129 | | ...                                       | ${glob_loss_acceptance}
130 | | ...                                       | ${glob_loss_acceptance_type}
131
132 | TC03: 1518B NDR binary search - DUT L2XC-VHOST - 1thread 1core 1rxq
133 | | [Documentation]
134 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
135 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
136 | | ... | using binary search start at 10GE linerate, step 10kpps.
137 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
138 | | ${framesize}= | Set Variable | 1518
139 | | ${min_rate}= | Set Variable | 10000
140 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
141 | | ${binary_min}= | Set Variable | ${min_rate}
142 | | ${binary_max}= | Set Variable | ${max_rate}
143 | | ${threshold}= | Set Variable | ${min_rate}
144 | | ${dut1_vm_refs}= | Create Dictionary
145 | | ${dut2_vm_refs}= | Create Dictionary
146 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
147 | | And   Add PCI devices to DUTs from 3-node single link topology
148 | | And   Add No Multi Seg to all DUTs
149 | | And   Apply startup configuration on all VPP DUTs
150 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
151 | | ...   | ${sock1} | ${sock2}
152 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
153 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
154 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
155 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
156 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
157 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
158 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
159 | | ...                                       | ${binary_max} | 3-node-bridge
160 | | ...                                       | ${min_rate} | ${max_rate}
161 | | ...                                       | ${threshold}
162
163 | TC04: 1518B PDR binary search - DUT L2XC-VHOST - 1thread 1core 1rxq
164 | | [Documentation]
165 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
166 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
167 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
168 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
169 | | ${framesize}= | Set Variable | 1518
170 | | ${min_rate}= | Set Variable | 10000
171 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
172 | | ${binary_min}= | Set Variable | ${min_rate}
173 | | ${binary_max}= | Set Variable | ${max_rate}
174 | | ${threshold}= | Set Variable | ${min_rate}
175 | | ${dut1_vm_refs}= | Create Dictionary
176 | | ${dut2_vm_refs}= | Create Dictionary
177 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
178 | | And   Add PCI devices to DUTs from 3-node single link topology
179 | | And   Add No Multi Seg to all DUTs
180 | | And   Apply startup configuration on all VPP DUTs
181 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
182 | | ...   | ${sock1} | ${sock2}
183 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
184 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
185 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
186 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
187 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
188 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
189 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
190 | | ...                                       | ${binary_max} | 3-node-bridge
191 | | ...                                       | ${min_rate} | ${max_rate}
192 | | ...                                       | ${threshold}
193 | | ...                                       | ${glob_loss_acceptance}
194 | | ...                                       | ${glob_loss_acceptance_type}
195
196 | TC05: IMIX_v4_1 NDR binary search - DUT L2XC-VHOST - 1thread 1core 1rxq
197 | | [Documentation]
198 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
199 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
200 | | ... | size using binary search start at 10GE linerate, step 5kpps.
201 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
202 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
203 | | ${framesize}= | Set Variable | IMIX_v4_1
204 | | ${min_rate}= | Set Variable | 5000
205 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_IMIX_v4_1}
206 | | ${binary_min}= | Set Variable | ${min_rate}
207 | | ${binary_max}= | Set Variable | ${max_rate}
208 | | ${threshold}= | Set Variable | ${min_rate}
209 | | ${dut1_vm_refs}= | Create Dictionary
210 | | ${dut2_vm_refs}= | Create Dictionary
211 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
212 | | And   Add PCI devices to DUTs from 3-node single link topology
213 | | And   Add No Multi Seg to all DUTs
214 | | And   Apply startup configuration on all VPP DUTs
215 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
216 | | ...   | ${sock1} | ${sock2}
217 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
218 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
219 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
220 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
221 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
222 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
223 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
224 | | ...                                       | ${binary_max} | 3-node-bridge
225 | | ...                                       | ${min_rate} | ${max_rate}
226 | | ...                                       | ${threshold}
227
228 | TC06: IMIX_v4_1 PDR binary search - DUT L2XC-VHOST - 1thread 1core 1rxq
229 | | [Documentation]
230 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
231 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
232 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
233 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
234 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
235 | | ${framesize}= | Set Variable | IMIX_v4_1
236 | | ${min_rate}= | Set Variable | 5000
237 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_IMIX_v4_1}
238 | | ${binary_min}= | Set Variable | ${min_rate}
239 | | ${binary_max}= | Set Variable | ${max_rate}
240 | | ${threshold}= | Set Variable | ${min_rate}
241 | | ${dut1_vm_refs}= | Create Dictionary
242 | | ${dut2_vm_refs}= | Create Dictionary
243 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
244 | | And   Add PCI devices to DUTs from 3-node single link topology
245 | | And   Add No Multi Seg to all DUTs
246 | | And   Apply startup configuration on all VPP DUTs
247 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
248 | | ...   | ${sock1} | ${sock2}
249 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
250 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
251 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
252 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
253 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
254 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
255 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
256 | | ...                                       | ${binary_max} | 3-node-bridge
257 | | ...                                       | ${min_rate} | ${max_rate}
258 | | ...                                       | ${threshold}
259 | | ...                                       | ${glob_loss_acceptance}
260 | | ...                                       | ${glob_loss_acceptance_type}
261
262 | TC07: 64B NDR binary search - DUT L2XC-VHOST - 2threads 2cores 1rxq
263 | | [Documentation]
264 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
265 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
266 | | ... | using binary search start at 10GE linerate, step 10kpps.
267 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
268 | | ${framesize}= | Set Variable | 64
269 | | ${min_rate}= | Set Variable | 10000
270 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
271 | | ${binary_min}= | Set Variable | ${min_rate}
272 | | ${binary_max}= | Set Variable | ${max_rate}
273 | | ${threshold}= | Set Variable | ${min_rate}
274 | | ${dut1_vm_refs}= | Create Dictionary
275 | | ${dut2_vm_refs}= | Create Dictionary
276 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
277 | | And   Add PCI devices to DUTs from 3-node single link topology
278 | | And   Add No Multi Seg to all DUTs
279 | | And   Apply startup configuration on all VPP DUTs
280 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
281 | | ...   | ${sock1} | ${sock2}
282 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
283 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
284 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
285 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
286 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
287 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
288 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
289 | | ...                                       | ${binary_max} | 3-node-bridge
290 | | ...                                       | ${min_rate} | ${max_rate}
291 | | ...                                       | ${threshold}
292
293 | TC08: 64B PDR binary search - DUT L2XC-VHOST - 2threads 2cores 1rxq
294 | | [Documentation]
295 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
296 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
297 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
298 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
299 | | ${framesize}= | Set Variable | 64
300 | | ${min_rate}= | Set Variable | 10000
301 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
302 | | ${binary_min}= | Set Variable | ${min_rate}
303 | | ${binary_max}= | Set Variable | ${max_rate}
304 | | ${threshold}= | Set Variable | ${min_rate}
305 | | ${dut1_vm_refs}= | Create Dictionary
306 | | ${dut2_vm_refs}= | Create Dictionary
307 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
308 | | And   Add PCI devices to DUTs from 3-node single link topology
309 | | And   Add No Multi Seg to all DUTs
310 | | And   Apply startup configuration on all VPP DUTs
311 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
312 | | ...   | ${sock1} | ${sock2}
313 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
314 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
315 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
316 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
317 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
318 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
319 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
320 | | ...                                       | ${binary_max} | 3-node-bridge
321 | | ...                                       | ${min_rate} | ${max_rate}
322 | | ...                                       | ${threshold}
323 | | ...                                       | ${glob_loss_acceptance}
324 | | ...                                       | ${glob_loss_acceptance_type}
325
326 | TC09: 1518B NDR binary search - DUT L2XC-VHOST - 2threads 2cores 1rxq
327 | | [Documentation]
328 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
329 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
330 | | ... | using binary search start at 10GE linerate, step 10kpps.
331 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
332 | | ${framesize}= | Set Variable | 1518
333 | | ${min_rate}= | Set Variable | 10000
334 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
335 | | ${binary_min}= | Set Variable | ${min_rate}
336 | | ${binary_max}= | Set Variable | ${max_rate}
337 | | ${threshold}= | Set Variable | ${min_rate}
338 | | ${dut1_vm_refs}= | Create Dictionary
339 | | ${dut2_vm_refs}= | Create Dictionary
340 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
341 | | And   Add PCI devices to DUTs from 3-node single link topology
342 | | And   Add No Multi Seg to all DUTs
343 | | And   Apply startup configuration on all VPP DUTs
344 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
345 | | ...   | ${sock1} | ${sock2}
346 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
347 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
348 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
349 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
350 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
351 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
352 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
353 | | ...                                       | ${binary_max} | 3-node-bridge
354 | | ...                                       | ${min_rate} | ${max_rate}
355 | | ...                                       | ${threshold}
356
357 | TC10: 1518B PDR binary search - DUT L2XC-VHOST - 2threads 2cores 1rxq
358 | | [Documentation]
359 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
360 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
361 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
362 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
363 | | ${framesize}= | Set Variable | 1518
364 | | ${min_rate}= | Set Variable | 10000
365 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
366 | | ${binary_min}= | Set Variable | ${min_rate}
367 | | ${binary_max}= | Set Variable | ${max_rate}
368 | | ${threshold}= | Set Variable | ${min_rate}
369 | | ${dut1_vm_refs}= | Create Dictionary
370 | | ${dut2_vm_refs}= | Create Dictionary
371 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
372 | | And   Add PCI devices to DUTs from 3-node single link topology
373 | | And   Add No Multi Seg to all DUTs
374 | | And   Apply startup configuration on all VPP DUTs
375 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
376 | | ...   | ${sock1} | ${sock2}
377 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
378 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
379 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
380 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
381 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
382 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
383 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
384 | | ...                                       | ${binary_max} | 3-node-bridge
385 | | ...                                       | ${min_rate} | ${max_rate}
386 | | ...                                       | ${threshold}
387 | | ...                                       | ${glob_loss_acceptance}
388 | | ...                                       | ${glob_loss_acceptance_type}
389
390 | TC11: IMIX_v4_1 NDR binary search - DUT L2XC-VHOST - 2threads 2cores 1rxq
391 | | [Documentation]
392 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
393 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
394 | | ... | size using binary search start at 10GE linerate, step 5kpps.
395 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
396 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
397 | | ${framesize}= | Set Variable | IMIX_v4_1
398 | | ${min_rate}= | Set Variable | 5000
399 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_IMIX_v4_1}
400 | | ${binary_min}= | Set Variable | ${min_rate}
401 | | ${binary_max}= | Set Variable | ${max_rate}
402 | | ${threshold}= | Set Variable | ${min_rate}
403 | | ${dut1_vm_refs}= | Create Dictionary
404 | | ${dut2_vm_refs}= | Create Dictionary
405 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
406 | | And   Add PCI devices to DUTs from 3-node single link topology
407 | | And   Add No Multi Seg to all DUTs
408 | | And   Apply startup configuration on all VPP DUTs
409 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
410 | | ...   | ${sock1} | ${sock2}
411 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
412 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
413 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
414 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
415 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
416 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
417 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
418 | | ...                                       | ${binary_max} | 3-node-bridge
419 | | ...                                       | ${min_rate} | ${max_rate}
420 | | ...                                       | ${threshold}
421
422 | TC12: IMIX_v4_1 PDR binary search - DUT L2XC-VHOST - 2threads 2cores 1rxq
423 | | [Documentation]
424 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
425 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
426 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
427 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
428 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
429 | | ${framesize}= | Set Variable | IMIX_v4_1
430 | | ${min_rate}= | Set Variable | 5000
431 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_IMIX_v4_1}
432 | | ${binary_min}= | Set Variable | ${min_rate}
433 | | ${binary_max}= | Set Variable | ${max_rate}
434 | | ${threshold}= | Set Variable | ${min_rate}
435 | | ${dut1_vm_refs}= | Create Dictionary
436 | | ${dut2_vm_refs}= | Create Dictionary
437 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
438 | | And   Add PCI devices to DUTs from 3-node single link topology
439 | | And   Add No Multi Seg to all DUTs
440 | | And   Apply startup configuration on all VPP DUTs
441 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
442 | | ...   | ${sock1} | ${sock2}
443 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
444 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
445 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
446 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
447 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
448 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
449 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
450 | | ...                                       | ${binary_max} | 3-node-bridge
451 | | ...                                       | ${min_rate} | ${max_rate}
452 | | ...                                       | ${threshold}
453 | | ...                                       | ${glob_loss_acceptance}
454 | | ...                                       | ${glob_loss_acceptance_type}
455
456 | TC13: 64B NDR binary search - DUT L2XC-VHOST - 4threads 4cores 2rxq
457 | | [Documentation]
458 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
459 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
460 | | ... | using binary search start at 10GE linerate, step 10kpps.
461 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
462 | | ${framesize}= | Set Variable | 64
463 | | ${min_rate}= | Set Variable | 10000
464 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
465 | | ${binary_min}= | Set Variable | ${min_rate}
466 | | ${binary_max}= | Set Variable | ${max_rate}
467 | | ${threshold}= | Set Variable | ${min_rate}
468 | | ${dut1_vm_refs}= | Create Dictionary
469 | | ${dut2_vm_refs}= | Create Dictionary
470 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
471 | | And   Add PCI devices to DUTs from 3-node single link topology
472 | | And   Add No Multi Seg to all DUTs
473 | | And   Apply startup configuration on all VPP DUTs
474 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
475 | | ...   | ${sock1} | ${sock2}
476 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
477 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
478 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
479 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
480 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
481 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
482 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
483 | | ...                                       | ${binary_max} | 3-node-bridge
484 | | ...                                       | ${min_rate} | ${max_rate}
485 | | ...                                       | ${threshold}
486
487 | TC14: 64B PDR binary search - DUT L2XC-VHOST - 4threads 4cores 2rxq
488 | | [Documentation]
489 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
490 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
491 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
492 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
493 | | ${framesize}= | Set Variable | 64
494 | | ${min_rate}= | Set Variable | 10000
495 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
496 | | ${binary_min}= | Set Variable | ${min_rate}
497 | | ${binary_max}= | Set Variable | ${max_rate}
498 | | ${threshold}= | Set Variable | ${min_rate}
499 | | ${dut1_vm_refs}= | Create Dictionary
500 | | ${dut2_vm_refs}= | Create Dictionary
501 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
502 | | And   Add PCI devices to DUTs from 3-node single link topology
503 | | And   Add No Multi Seg to all DUTs
504 | | And   Apply startup configuration on all VPP DUTs
505 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
506 | | ...   | ${sock1} | ${sock2}
507 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
508 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
509 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
510 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
511 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
512 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
513 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
514 | | ...                                       | ${binary_max} | 3-node-bridge
515 | | ...                                       | ${min_rate} | ${max_rate}
516 | | ...                                       | ${threshold}
517 | | ...                                       | ${glob_loss_acceptance}
518 | | ...                                       | ${glob_loss_acceptance_type}
519
520 | TC15: 1518B NDR binary search - DUT L2XC-VHOST - 4threads 4cores 2rxq
521 | | [Documentation]
522 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
523 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
524 | | ... | using binary search start at 10GE linerate, step 10kpps.
525 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
526 | | ${framesize}= | Set Variable | 1518
527 | | ${min_rate}= | Set Variable | 10000
528 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
529 | | ${binary_min}= | Set Variable | ${min_rate}
530 | | ${binary_max}= | Set Variable | ${max_rate}
531 | | ${threshold}= | Set Variable | ${min_rate}
532 | | ${dut1_vm_refs}= | Create Dictionary
533 | | ${dut2_vm_refs}= | Create Dictionary
534 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
535 | | And   Add PCI devices to DUTs from 3-node single link topology
536 | | And   Add No Multi Seg to all DUTs
537 | | And   Apply startup configuration on all VPP DUTs
538 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
539 | | ...   | ${sock1} | ${sock2}
540 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
541 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
542 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
543 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
544 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
545 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
546 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
547 | | ...                                       | ${binary_max} | 3-node-bridge
548 | | ...                                       | ${min_rate} | ${max_rate}
549 | | ...                                       | ${threshold}
550
551 | TC16: 1518B PDR binary search - DUT L2XC-VHOST - 4threads 4cores 2rxq
552 | | [Documentation]
553 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
554 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
555 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
556 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
557 | | ${framesize}= | Set Variable | 1518
558 | | ${min_rate}= | Set Variable | 10000
559 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
560 | | ${binary_min}= | Set Variable | ${min_rate}
561 | | ${binary_max}= | Set Variable | ${max_rate}
562 | | ${threshold}= | Set Variable | ${min_rate}
563 | | ${dut1_vm_refs}= | Create Dictionary
564 | | ${dut2_vm_refs}= | Create Dictionary
565 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
566 | | And   Add PCI devices to DUTs from 3-node single link topology
567 | | And   Add No Multi Seg to all DUTs
568 | | And   Apply startup configuration on all VPP DUTs
569 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
570 | | ...   | ${sock1} | ${sock2}
571 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
572 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
573 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
574 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
575 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
576 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
577 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
578 | | ...                                       | ${binary_max} | 3-node-bridge
579 | | ...                                       | ${min_rate} | ${max_rate}
580 | | ...                                       | ${threshold}
581 | | ...                                       | ${glob_loss_acceptance}
582 | | ...                                       | ${glob_loss_acceptance_type}
583
584 | TC17: IMIX_v4_1 NDR binary search - DUT L2XC-VHOST - 4threads 4cores 2rxq
585 | | [Documentation]
586 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
587 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
588 | | ... | size using binary search start at 10GE linerate, step 5kpps.
589 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
590 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
591 | | ${framesize}= | Set Variable | IMIX_v4_1
592 | | ${min_rate}= | Set Variable | 5000
593 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_IMIX_v4_1}
594 | | ${binary_min}= | Set Variable | ${min_rate}
595 | | ${binary_max}= | Set Variable | ${max_rate}
596 | | ${threshold}= | Set Variable | ${min_rate}
597 | | ${dut1_vm_refs}= | Create Dictionary
598 | | ${dut2_vm_refs}= | Create Dictionary
599 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
600 | | And   Add PCI devices to DUTs from 3-node single link topology
601 | | And   Add No Multi Seg to all DUTs
602 | | And   Apply startup configuration on all VPP DUTs
603 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
604 | | ...   | ${sock1} | ${sock2}
605 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
606 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
607 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
608 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
609 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
610 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
611 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
612 | | ...                                       | ${binary_max} | 3-node-bridge
613 | | ...                                       | ${min_rate} | ${max_rate}
614 | | ...                                       | ${threshold}
615
616 | TC18: IMIX_v4_1 PDR binary search - DUT L2XC-VHOST - 4threads 4cores 2rxq
617 | | [Documentation]
618 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
619 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
620 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
621 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
622 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
623 | | ${framesize}= | Set Variable | IMIX_v4_1
624 | | ${min_rate}= | Set Variable | 5000
625 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_IMIX_v4_1}
626 | | ${binary_min}= | Set Variable | ${min_rate}
627 | | ${binary_max}= | Set Variable | ${max_rate}
628 | | ${threshold}= | Set Variable | ${min_rate}
629 | | ${dut1_vm_refs}= | Create Dictionary
630 | | ${dut2_vm_refs}= | Create Dictionary
631 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
632 | | And   Add PCI devices to DUTs from 3-node single link topology
633 | | And   Add No Multi Seg to all DUTs
634 | | And   Apply startup configuration on all VPP DUTs
635 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
636 | | ...   | ${sock1} | ${sock2}
637 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
638 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
639 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
640 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
641 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
642 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
643 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
644 | | ...                                       | ${binary_max} | 3-node-bridge
645 | | ...                                       | ${min_rate} | ${max_rate}
646 | | ...                                       | ${threshold}
647 | | ...                                       | ${glob_loss_acceptance}
648 | | ...                                       | ${glob_loss_acceptance_type}
649
650 | TC19: 64B NDR binary search - DUT L2XC-DPDK-VHOST - 1thread 1core 1rxq
651 | | [Documentation]
652 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
653 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
654 | | ... | using binary search start at 10GE linerate, step 10kpps.
655 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
656 | | ${framesize}= | Set Variable | 64
657 | | ${min_rate}= | Set Variable | 10000
658 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
659 | | ${binary_min}= | Set Variable | ${min_rate}
660 | | ${binary_max}= | Set Variable | ${max_rate}
661 | | ${threshold}= | Set Variable | ${min_rate}
662 | | ${dut1_vm_refs}= | Create Dictionary
663 | | ${dut2_vm_refs}= | Create Dictionary
664 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
665 | | And   Add PCI devices to DUTs from 3-node single link topology
666 | | And   Add No Multi Seg to all DUTs
667 | | And   Add Enable Vhost User to all DUTs
668 | | And   Apply startup configuration on all VPP DUTs
669 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
670 | | ...   | ${sock1} | ${sock2}
671 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
672 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
673 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
674 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
675 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
676 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
677 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
678 | | ...                                       | ${binary_max} | 3-node-bridge
679 | | ...                                       | ${min_rate} | ${max_rate}
680 | | ...                                       | ${threshold}
681
682 | TC20: 64B PDR binary search - DUT L2XC-DPDK-VHOST - 1thread 1core 1rxq
683 | | [Documentation]
684 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
685 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
686 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
687 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
688 | | ${framesize}= | Set Variable | 64
689 | | ${min_rate}= | Set Variable | 10000
690 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
691 | | ${binary_min}= | Set Variable | ${min_rate}
692 | | ${binary_max}= | Set Variable | ${max_rate}
693 | | ${threshold}= | Set Variable | ${min_rate}
694 | | ${dut1_vm_refs}= | Create Dictionary
695 | | ${dut2_vm_refs}= | Create Dictionary
696 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
697 | | And   Add PCI devices to DUTs from 3-node single link topology
698 | | And   Add No Multi Seg to all DUTs
699 | | And   Add Enable Vhost User to all DUTs
700 | | And   Apply startup configuration on all VPP DUTs
701 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
702 | | ...   | ${sock1} | ${sock2}
703 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
704 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
705 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
706 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
707 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
708 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
709 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
710 | | ...                                       | ${binary_max} | 3-node-bridge
711 | | ...                                       | ${min_rate} | ${max_rate}
712 | | ...                                       | ${threshold}
713 | | ...                                       | ${glob_loss_acceptance}
714 | | ...                                       | ${glob_loss_acceptance_type}
715