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