CSIT-387 collect HW stats if binary search fails
[csit.git] / tests / perf / Long_Bridge_Domain_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.QemuUtils
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 L2BD 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 switching of IPv4.
40 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
41 | ... | domain and MAC learning enabled. Qemu Guest is connected to VPP via
42 | ... | vhost-user interfaces. Guest is running DPDK testpmd interconnecting
43 | ... | vhost-user interfaces using 3 cores pinned to cpus 5,6,7 and 2048M
44 | ... | memory. Testpmd is using socket-mem=1024M (512x2M hugepages), 3 cores
45 | ... | (1 main core and 2 cores dedicated for io), forwarding mode is set to
46 | ... | io, rxq/txq=2048, burst=64. DUT1, DUT2 are tested with 2p10GE NIC X520
47 | ... | Niantic by Intel.
48 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
49 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
50 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
51 | ... | of packets transmitted. NDR and PDR are discovered for different
52 | ... | Ethernet L2 frame sizes using either binary search or linear search
53 | ... | algorithms with configured starting rate and final step that determines
54 | ... | throughput measurement resolution. Test packets are generated by TG on
55 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
56 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
57 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
58 | ... | payload. MAC addresses are matching MAC addresses of the TG node
59 | ... | interfaces.
60 | ... | *[Ref] Applicable standard specifications:* RFC2544.
61
62 *** Variables ***
63 | ${bd_id1}= | 1
64 | ${bd_id2}= | 2
65 | ${sock1}= | /tmp/sock-1-${bd_id1}
66 | ${sock2}= | /tmp/sock-1-${bd_id2}
67
68 *** Test Cases ***
69 | TC01: 64B NDR binary search - DUT L2BD-VHOST - 1thread 1core 1rxq
70 | | [Documentation]
71 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
72 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
73 | | ... | using binary search start at 10GE linerate, step 10kpps.
74 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
75 | | ${framesize}= | Set Variable | 64
76 | | ${min_rate}= | Set Variable | 10000
77 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
78 | | ${binary_min}= | Set Variable | ${min_rate}
79 | | ${binary_max}= | Set Variable | ${max_rate}
80 | | ${threshold}= | Set Variable | ${min_rate}
81 | | ${dut1_vm_refs}= | Create Dictionary
82 | | ${dut2_vm_refs}= | Create Dictionary
83 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
84 | | And   Add PCI devices to DUTs from 3-node single link topology
85 | | And   Add No Multi Seg to all DUTs
86 | | And   Apply startup configuration on all VPP DUTs
87 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
88 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
89 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
90 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
91 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
92 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
93 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
94 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
95 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
96 | | ...                                       | ${binary_max} | 3-node-bridge
97 | | ...                                       | ${min_rate} | ${max_rate}
98 | | ...                                       | ${threshold}
99
100 | TC02: 64B PDR binary search - DUT L2BD-VHOST - 1thread 1core 1rxq
101 | | [Documentation]
102 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
103 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
104 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
105 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
106 | | ${framesize}= | Set Variable | 64
107 | | ${min_rate}= | Set Variable | 10000
108 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
109 | | ${binary_min}= | Set Variable | ${min_rate}
110 | | ${binary_max}= | Set Variable | ${max_rate}
111 | | ${threshold}= | Set Variable | ${min_rate}
112 | | ${dut1_vm_refs}= | Create Dictionary
113 | | ${dut2_vm_refs}= | Create Dictionary
114 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
115 | | And   Add PCI devices to DUTs from 3-node single link topology
116 | | And   Add No Multi Seg to all DUTs
117 | | And   Apply startup configuration on all VPP DUTs
118 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
119 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
120 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
121 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
122 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
123 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
124 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
125 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
126 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
127 | | ...                                       | ${binary_max} | 3-node-bridge
128 | | ...                                       | ${min_rate} | ${max_rate}
129 | | ...                                       | ${threshold}
130 | | ...                                       | ${glob_loss_acceptance}
131 | | ...                                       | ${glob_loss_acceptance_type}
132
133 | TC03: 1518B NDR binary search - DUT L2BD-VHOST - 1thread 1core 1rxq
134 | | [Documentation]
135 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
136 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
137 | | ... | using binary search start at 10GE linerate, step 10kpps.
138 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
139 | | ${framesize}= | Set Variable | 1518
140 | | ${min_rate}= | Set Variable | 10000
141 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
142 | | ${binary_min}= | Set Variable | ${min_rate}
143 | | ${binary_max}= | Set Variable | ${max_rate}
144 | | ${threshold}= | Set Variable | ${min_rate}
145 | | ${dut1_vm_refs}= | Create Dictionary
146 | | ${dut2_vm_refs}= | Create Dictionary
147 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
148 | | And   Add PCI devices to DUTs from 3-node single link topology
149 | | And   Add No Multi Seg to all DUTs
150 | | And   Apply startup configuration on all VPP DUTs
151 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
152 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
153 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
154 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
155 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
156 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
157 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
158 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
159 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
160 | | ...                                       | ${binary_max} | 3-node-bridge
161 | | ...                                       | ${min_rate} | ${max_rate}
162 | | ...                                       | ${threshold}
163
164 | TC04: 1518B PDR binary search - DUT L2BD-VHOST - 1thread 1core 1rxq
165 | | [Documentation]
166 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
167 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
168 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
169 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
170 | | ${framesize}= | Set Variable | 1518
171 | | ${min_rate}= | Set Variable | 10000
172 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
173 | | ${binary_min}= | Set Variable | ${min_rate}
174 | | ${binary_max}= | Set Variable | ${max_rate}
175 | | ${threshold}= | Set Variable | ${min_rate}
176 | | ${dut1_vm_refs}= | Create Dictionary
177 | | ${dut2_vm_refs}= | Create Dictionary
178 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
179 | | And   Add PCI devices to DUTs from 3-node single link topology
180 | | And   Add No Multi Seg to all DUTs
181 | | And   Apply startup configuration on all VPP DUTs
182 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
183 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
184 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
185 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
186 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
187 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
188 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
189 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
190 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
191 | | ...                                       | ${binary_max} | 3-node-bridge
192 | | ...                                       | ${min_rate} | ${max_rate}
193 | | ...                                       | ${threshold}
194 | | ...                                       | ${glob_loss_acceptance}
195 | | ...                                       | ${glob_loss_acceptance_type}
196
197 | TC05: IMIX_v4_1 NDR binary search - DUT L2BD-VHOST - 1thread 1core 1rxq
198 | | [Documentation]
199 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
200 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
201 | | ... | size using binary search start at 10GE linerate, step 5kpps.
202 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
203 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
204 | | ${framesize}= | Set Variable | IMIX_v4_1
205 | | ${min_rate}= | Set Variable | 5000
206 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_IMIX_v4_1}
207 | | ${binary_min}= | Set Variable | ${min_rate}
208 | | ${binary_max}= | Set Variable | ${max_rate}
209 | | ${threshold}= | Set Variable | ${min_rate}
210 | | ${dut1_vm_refs}= | Create Dictionary
211 | | ${dut2_vm_refs}= | Create Dictionary
212 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
213 | | And   Add PCI devices to DUTs from 3-node single link topology
214 | | And   Add No Multi Seg to all DUTs
215 | | And   Apply startup configuration on all VPP DUTs
216 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
217 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
218 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
219 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
220 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
221 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
222 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
223 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
224 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
225 | | ...                                       | ${binary_max} | 3-node-bridge
226 | | ...                                       | ${min_rate} | ${max_rate}
227 | | ...                                       | ${threshold}
228
229 | TC06: IMIX_v4_1 PDR binary search - DUT L2BD-VHOST - 1thread 1core 1rxq
230 | | [Documentation]
231 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
232 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
233 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
234 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
235 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
236 | | ${framesize}= | Set Variable | IMIX_v4_1
237 | | ${min_rate}= | Set Variable | 5000
238 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_IMIX_v4_1}
239 | | ${binary_min}= | Set Variable | ${min_rate}
240 | | ${binary_max}= | Set Variable | ${max_rate}
241 | | ${threshold}= | Set Variable | ${min_rate}
242 | | ${dut1_vm_refs}= | Create Dictionary
243 | | ${dut2_vm_refs}= | Create Dictionary
244 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
245 | | And   Add PCI devices to DUTs from 3-node single link topology
246 | | And   Apply startup configuration on all VPP DUTs
247 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
248 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-VHOST - 2threads 2cores 1rxq
263 | | [Documentation]
264 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
281 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-VHOST - 2threads 2cores 1rxq
294 | | [Documentation]
295 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
312 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-VHOST - 2threads 2cores 1rxq
327 | | [Documentation]
328 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
345 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-VHOST - 2threads 2cores 1rxq
358 | | [Documentation]
359 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
376 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-VHOST - 2threads 2cores 1rxq
391 | | [Documentation]
392 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
410 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-VHOST - 2threads 2cores 1rxq
423 | | [Documentation]
424 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
442 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-VHOST - 4threads 4cores 2rxq
457 | | [Documentation]
458 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
475 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-VHOST - 4threads 4cores 2rxq
488 | | [Documentation]
489 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
506 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-VHOST - 4threads 4cores 2rxq
521 | | [Documentation]
522 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
539 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-VHOST - 4threads 4cores 2rxq
552 | | [Documentation]
553 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
570 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-VHOST - 4threads 4cores 2rxq
585 | | [Documentation]
586 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
604 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-VHOST - 4threads 4cores 2rxq
617 | | [Documentation]
618 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
636 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-DPDK-VHOST - 1thread 1core 1rxq
651 | | [Documentation]
652 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
670 | | ...   | ${bd_id1} | ${bd_id2} | ${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 L2BD-DPDK-VHOST - 1thread 1core 1rxq
683 | | [Documentation]
684 | | ... | [Cfg] DUT runs L2BD 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 bridge domains with Vhost-User initialized in a 3-node circular topology
702 | | ...   | ${bd_id1} | ${bd_id2} | ${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