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