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