HC Tests: remove vpp-dpdk-dkms dependency
[csit.git] / tests / vpp / perf / vm_vhost / 10ge2p1x520-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrpdrdisc.robot
1 # Copyright (c) 2017 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/performance_setup.robot
16 | Library | resources.libraries.python.NodePath
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Intel-X520-DA2 | ETH | L2XCFWD | BASE | VHOST | VM | VHOST_1024
20 | ...
21 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
22 | ... | L2 | Intel-X520-DA2
23 | Suite Teardown | Tear down 3-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | Test Teardown | Tear down performance test with vhost and VM with dpdk-testpmd
27 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
28 | ... | dut1_node=${dut1} | dut1_vm_refs=${dut1_vm_refs}
29 | ... | dut2_node=${dut2} | dut2_vm_refs=${dut2_vm_refs}
30 | ...
31 | Documentation | *RFC2544: Pkt throughput L2XC test cases with vhost*
32 | ...
33 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
34 | ... | with single links between nodes.
35 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect.
36 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
37 | ... | connect. Qemu Guest is connected to VPP via vhost-user interfaces.
38 | ... | Guest is running DPDK testpmd interconnecting vhost-user interfaces
39 | ... | using 5 cores pinned to cpus 5-9 and 2048M memory. Testpmd is using
40 | ... | socket-mem=1024M (512x2M hugepages), 5 cores (1 main core and 4 cores
41 | ... | dedicated for io), forwarding mode is set to io, rxd/txd=1024,
42 | ... | burst=64. DUT1, DUT2 are tested with 2p10GE NIC X520 Niantic by Intel.
43 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
44 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
45 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
46 | ... | of packets transmitted. NDR and PDR are discovered for different
47 | ... | Ethernet L2 frame sizes using either binary search or linear search
48 | ... | algorithms with configured starting rate and final step that determines
49 | ... | throughput measurement resolution. Test packets are generated by TG on
50 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
51 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
52 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
53 | ... | payload. MAC addresses are matching MAC addresses of the TG node
54 | ... | interfaces.
55 | ... | *[Ref] Applicable standard specifications:* RFC2544.
56
57 *** Variables ***
58 | ${perf_qemu_qsz}= | 1024
59 | ${sock1}= | /tmp/sock-1-1
60 | ${sock2}= | /tmp/sock-1-2
61 # X520-DA2 bandwidth limit
62 | ${s_limit} | ${10000000000}
63 # Traffic profile:
64 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
65
66 *** Test Cases ***
67 | tc01-64B-1t1c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
68 | | [Documentation]
69 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
70 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
71 | | ... | using binary search start at 10GE linerate, step 10kpps.
72 | | [Tags] | 64B | 1C | NDRDISC
73 | | ${framesize}= | Set Variable | ${64}
74 | | ${min_rate}= | Set Variable | ${10000}
75 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
76 | | ${binary_min}= | Set Variable | ${min_rate}
77 | | ${binary_max}= | Set Variable | ${max_rate}
78 | | ${threshold}= | Set Variable | ${min_rate}
79 | | ${dut1_vm_refs}= | Create Dictionary
80 | | ${dut2_vm_refs}= | Create Dictionary
81 | | Given Add worker threads and rxqueues to all DUTs | 1
82 | | And Add PCI devices to all DUTs
83 | | And Add no multi seg to all DUTs
84 | | And Apply startup configuration on all VPP DUTs
85 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
86 | | ... | ${sock1} | ${sock2}
87 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
88 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
89 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
90 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
91 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
92 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
93 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
94 | | ... | ${binary_max} | ${traffic_profile}
95 | | ... | ${min_rate} | ${max_rate} | ${threshold}
96
97 | tc02-64B-1t1c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
98 | | [Documentation]
99 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
100 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
101 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
102 | | [Tags] | 64B | 1C | PDRDISC | SKIP_PATCH
103 | | ${framesize}= | Set Variable | ${64}
104 | | ${min_rate}= | Set Variable | ${10000}
105 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
106 | | ${binary_min}= | Set Variable | ${min_rate}
107 | | ${binary_max}= | Set Variable | ${max_rate}
108 | | ${threshold}= | Set Variable | ${min_rate}
109 | | ${dut1_vm_refs}= | Create Dictionary
110 | | ${dut2_vm_refs}= | Create Dictionary
111 | | Given Add worker threads and rxqueues to all DUTs | 1
112 | | And Add PCI devices to all DUTs
113 | | And Add no multi seg to all DUTs
114 | | And Apply startup configuration on all VPP DUTs
115 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
116 | | ... | ${sock1} | ${sock2}
117 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
118 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
119 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
120 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
121 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
122 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
123 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
124 | | ... | ${binary_max} | ${traffic_profile}
125 | | ... | ${min_rate} | ${max_rate} | ${threshold}
126 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
127
128 | tc03-1518B-1t1c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
129 | | [Documentation]
130 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
131 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
132 | | ... | using binary search start at 10GE linerate, step 10kpps.
133 | | [Tags] | 1518B | 1C | NDRDISC
134 | | ${framesize}= | Set Variable | ${1518}
135 | | ${min_rate}= | Set Variable | ${10000}
136 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
137 | | ${binary_min}= | Set Variable | ${min_rate}
138 | | ${binary_max}= | Set Variable | ${max_rate}
139 | | ${threshold}= | Set Variable | ${min_rate}
140 | | ${dut1_vm_refs}= | Create Dictionary
141 | | ${dut2_vm_refs}= | Create Dictionary
142 | | Given Add worker threads and rxqueues to all DUTs | 1
143 | | And Add PCI devices to all DUTs
144 | | And Add no multi seg to all DUTs
145 | | And Apply startup configuration on all VPP DUTs
146 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
147 | | ... | ${sock1} | ${sock2}
148 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
149 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
150 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
151 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
152 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
153 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
154 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
155 | | ... | ${binary_max} | ${traffic_profile}
156 | | ... | ${min_rate} | ${max_rate} | ${threshold}
157
158 | tc04-1518B-1t1c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
159 | | [Documentation]
160 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
161 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
162 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
163 | | [Tags] | 1518B | 1C | PDRDISC | SKIP_PATCH
164 | | ${framesize}= | Set Variable | ${1518}
165 | | ${min_rate}= | Set Variable | ${10000}
166 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
167 | | ${binary_min}= | Set Variable | ${min_rate}
168 | | ${binary_max}= | Set Variable | ${max_rate}
169 | | ${threshold}= | Set Variable | ${min_rate}
170 | | ${dut1_vm_refs}= | Create Dictionary
171 | | ${dut2_vm_refs}= | Create Dictionary
172 | | Given Add worker threads and rxqueues to all DUTs | 1
173 | | And Add PCI devices to all DUTs
174 | | And Add no multi seg to all DUTs
175 | | And Apply startup configuration on all VPP DUTs
176 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
177 | | ... | ${sock1} | ${sock2}
178 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
179 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
180 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
181 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
182 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
183 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
184 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
185 | | ... | ${binary_max} | ${traffic_profile}
186 | | ... | ${min_rate} | ${max_rate} | ${threshold}
187 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
188
189 | tc05-IMIX-1t1c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
190 | | [Documentation]
191 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
192 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
193 | | ... | size using binary search start at 10GE linerate, step 10kpps.
194 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
195 | | [Tags] | IMIX | 1C | NDRDISC
196 | | ${framesize}= | Set Variable | IMIX_v4_1
197 | | ${min_rate}= | Set Variable | ${10000}
198 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
199 | | ${binary_min}= | Set Variable | ${min_rate}
200 | | ${binary_max}= | Set Variable | ${max_rate}
201 | | ${threshold}= | Set Variable | ${min_rate}
202 | | ${dut1_vm_refs}= | Create Dictionary
203 | | ${dut2_vm_refs}= | Create Dictionary
204 | | Given Add worker threads and rxqueues to all DUTs | 1
205 | | And Add PCI devices to all DUTs
206 | | And Add no multi seg to all DUTs
207 | | And Apply startup configuration on all VPP DUTs
208 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
209 | | ... | ${sock1} | ${sock2}
210 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
211 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
212 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
213 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
214 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
215 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
216 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
217 | | ... | ${binary_max} | ${traffic_profile}
218 | | ... | ${min_rate} | ${max_rate} | ${threshold}
219
220 | tc06-IMIX-1t1c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
221 | | [Documentation]
222 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
223 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
224 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
225 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
226 | | [Tags] | IMIX | 1C | PDRDISC | SKIP_PATCH
227 | | ${framesize}= | Set Variable | IMIX_v4_1
228 | | ${min_rate}= | Set Variable | ${10000}
229 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
230 | | ${binary_min}= | Set Variable | ${min_rate}
231 | | ${binary_max}= | Set Variable | ${max_rate}
232 | | ${threshold}= | Set Variable | ${min_rate}
233 | | ${dut1_vm_refs}= | Create Dictionary
234 | | ${dut2_vm_refs}= | Create Dictionary
235 | | Given Add worker threads and rxqueues to all DUTs | 1
236 | | And Add PCI devices to all DUTs
237 | | And Add no multi seg to all DUTs
238 | | And Apply startup configuration on all VPP DUTs
239 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
240 | | ... | ${sock1} | ${sock2}
241 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
242 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
243 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
244 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
245 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
246 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
247 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
248 | | ... | ${binary_max} | ${traffic_profile}
249 | | ... | ${min_rate} | ${max_rate} | ${threshold}
250 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
251
252 | tc07-64B-2t2c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
253 | | [Documentation]
254 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
255 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
256 | | ... | using binary search start at 10GE linerate, step 10kpps.
257 | | [Tags] | 64B | 2C | NDRDISC
258 | | ${framesize}= | Set Variable | ${64}
259 | | ${min_rate}= | Set Variable | ${10000}
260 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
261 | | ${binary_min}= | Set Variable | ${min_rate}
262 | | ${binary_max}= | Set Variable | ${max_rate}
263 | | ${threshold}= | Set Variable | ${min_rate}
264 | | ${dut1_vm_refs}= | Create Dictionary
265 | | ${dut2_vm_refs}= | Create Dictionary
266 | | Given Add worker threads and rxqueues to all DUTs | 2
267 | | And Add PCI devices to all DUTs
268 | | And Add no multi seg to all DUTs
269 | | And Apply startup configuration on all VPP DUTs
270 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
271 | | ... | ${sock1} | ${sock2}
272 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
273 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
274 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
275 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
276 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
277 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
278 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
279 | | ... | ${binary_max} | ${traffic_profile}
280 | | ... | ${min_rate} | ${max_rate} | ${threshold}
281
282 | tc08-64B-2t2c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
283 | | [Documentation]
284 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
285 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
286 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
287 | | [Tags] | 64B | 2C | PDRDISC | SKIP_PATCH
288 | | ${framesize}= | Set Variable | ${64}
289 | | ${min_rate}= | Set Variable | ${10000}
290 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
291 | | ${binary_min}= | Set Variable | ${min_rate}
292 | | ${binary_max}= | Set Variable | ${max_rate}
293 | | ${threshold}= | Set Variable | ${min_rate}
294 | | ${dut1_vm_refs}= | Create Dictionary
295 | | ${dut2_vm_refs}= | Create Dictionary
296 | | Given Add worker threads and rxqueues to all DUTs | 2
297 | | And Add PCI devices to all DUTs
298 | | And Add no multi seg to all DUTs
299 | | And Apply startup configuration on all VPP DUTs
300 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
301 | | ... | ${sock1} | ${sock2}
302 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
303 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
304 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
305 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
306 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
307 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
308 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
309 | | ... | ${binary_max} | ${traffic_profile}
310 | | ... | ${min_rate} | ${max_rate} | ${threshold}
311 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
312
313 | tc09-1518B-2t2c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
314 | | [Documentation]
315 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
316 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
317 | | ... | using binary search start at 10GE linerate, step 10kpps.
318 | | [Tags] | 1518B | 2C | NDRDISC | SKIP_PATCH
319 | | ${framesize}= | Set Variable | ${1518}
320 | | ${min_rate}= | Set Variable | ${10000}
321 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
322 | | ${binary_min}= | Set Variable | ${min_rate}
323 | | ${binary_max}= | Set Variable | ${max_rate}
324 | | ${threshold}= | Set Variable | ${min_rate}
325 | | ${dut1_vm_refs}= | Create Dictionary
326 | | ${dut2_vm_refs}= | Create Dictionary
327 | | Given Add worker threads and rxqueues to all DUTs | 2
328 | | And Add PCI devices to all DUTs
329 | | And Add no multi seg to all DUTs
330 | | And Apply startup configuration on all VPP DUTs
331 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
332 | | ... | ${sock1} | ${sock2}
333 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
334 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
335 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
336 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
337 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
338 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
339 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
340 | | ... | ${binary_max} | ${traffic_profile}
341 | | ... | ${min_rate} | ${max_rate} | ${threshold}
342
343 | tc10-1518B-2t2c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
344 | | [Documentation]
345 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
346 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
347 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
348 | | [Tags] | 1518B | 2C | PDRDISC | SKIP_PATCH
349 | | ${framesize}= | Set Variable | ${1518}
350 | | ${min_rate}= | Set Variable | ${10000}
351 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
352 | | ${binary_min}= | Set Variable | ${min_rate}
353 | | ${binary_max}= | Set Variable | ${max_rate}
354 | | ${threshold}= | Set Variable | ${min_rate}
355 | | ${dut1_vm_refs}= | Create Dictionary
356 | | ${dut2_vm_refs}= | Create Dictionary
357 | | Given Add worker threads and rxqueues to all DUTs | 2
358 | | And Add PCI devices to all DUTs
359 | | And Add no multi seg to all DUTs
360 | | And Apply startup configuration on all VPP DUTs
361 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
362 | | ... | ${sock1} | ${sock2}
363 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
364 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
365 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
366 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
367 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
368 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
369 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
370 | | ... | ${binary_max} | ${traffic_profile}
371 | | ... | ${min_rate} | ${max_rate} | ${threshold}
372 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
373
374 | tc11-IMIX-2t2c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
375 | | [Documentation]
376 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
377 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
378 | | ... | size using binary search start at 10GE linerate, step 10kpps.
379 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
380 | | [Tags] | IMIX | 2C | NDRDISC | SKIP_PATCH
381 | | ${framesize}= | Set Variable | IMIX_v4_1
382 | | ${min_rate}= | Set Variable | ${10000}
383 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
384 | | ${binary_min}= | Set Variable | ${min_rate}
385 | | ${binary_max}= | Set Variable | ${max_rate}
386 | | ${threshold}= | Set Variable | ${min_rate}
387 | | ${dut1_vm_refs}= | Create Dictionary
388 | | ${dut2_vm_refs}= | Create Dictionary
389 | | Given Add worker threads and rxqueues to all DUTs | 2
390 | | And Add PCI devices to all DUTs
391 | | And Add no multi seg to all DUTs
392 | | And Apply startup configuration on all VPP DUTs
393 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
394 | | ... | ${sock1} | ${sock2}
395 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
396 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
397 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
398 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
399 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
400 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
401 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
402 | | ... | ${binary_max} | ${traffic_profile}
403 | | ... | ${min_rate} | ${max_rate} | ${threshold}
404
405 | tc12-IMIX-2t2c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
406 | | [Documentation]
407 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
408 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
409 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
410 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
411 | | [Tags] | IMIX | 2C | PDRDISC | SKIP_PATCH
412 | | ${framesize}= | Set Variable | IMIX_v4_1
413 | | ${min_rate}= | Set Variable | ${10000}
414 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
415 | | ${binary_min}= | Set Variable | ${min_rate}
416 | | ${binary_max}= | Set Variable | ${max_rate}
417 | | ${threshold}= | Set Variable | ${min_rate}
418 | | ${dut1_vm_refs}= | Create Dictionary
419 | | ${dut2_vm_refs}= | Create Dictionary
420 | | Given Add worker threads and rxqueues to all DUTs | 2
421 | | And Add PCI devices to all DUTs
422 | | And Add no multi seg to all DUTs
423 | | And Apply startup configuration on all VPP DUTs
424 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
425 | | ... | ${sock1} | ${sock2}
426 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
427 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
428 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
429 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
430 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
431 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
432 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
433 | | ... | ${binary_max} | ${traffic_profile}
434 | | ... | ${min_rate} | ${max_rate} | ${threshold}
435 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
436
437 | tc13-64B-4t4c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
438 | | [Documentation]
439 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
440 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
441 | | ... | using binary search start at 10GE linerate, step 10kpps.
442 | | [Tags] | 64B | 4C | NDRDISC
443 | | ${framesize}= | Set Variable | ${64}
444 | | ${min_rate}= | Set Variable | ${10000}
445 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
446 | | ${binary_min}= | Set Variable | ${min_rate}
447 | | ${binary_max}= | Set Variable | ${max_rate}
448 | | ${threshold}= | Set Variable | ${min_rate}
449 | | ${dut1_vm_refs}= | Create Dictionary
450 | | ${dut2_vm_refs}= | Create Dictionary
451 | | Given Add worker threads and rxqueues to all DUTs | 4
452 | | And Add PCI devices to all DUTs
453 | | And Add no multi seg to all DUTs
454 | | And Apply startup configuration on all VPP DUTs
455 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
456 | | ... | ${sock1} | ${sock2}
457 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
458 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
459 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
460 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
461 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
462 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
463 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
464 | | ... | ${binary_max} | ${traffic_profile}
465 | | ... | ${min_rate} | ${max_rate} | ${threshold}
466
467 | tc14-64B-4t4c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
468 | | [Documentation]
469 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
470 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
471 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
472 | | [Tags] | 64B | 4C | PDRDISC | SKIP_PATCH
473 | | ${framesize}= | Set Variable | ${64}
474 | | ${min_rate}= | Set Variable | ${10000}
475 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
476 | | ${binary_min}= | Set Variable | ${min_rate}
477 | | ${binary_max}= | Set Variable | ${max_rate}
478 | | ${threshold}= | Set Variable | ${min_rate}
479 | | ${dut1_vm_refs}= | Create Dictionary
480 | | ${dut2_vm_refs}= | Create Dictionary
481 | | Given Add worker threads and rxqueues to all DUTs | 4
482 | | And Add PCI devices to all DUTs
483 | | And Add no multi seg to all DUTs
484 | | And Apply startup configuration on all VPP DUTs
485 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
486 | | ... | ${sock1} | ${sock2}
487 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
488 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
489 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
490 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
491 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
492 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
493 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
494 | | ... | ${binary_max} | ${traffic_profile}
495 | | ... | ${min_rate} | ${max_rate} | ${threshold}
496 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
497
498 | tc15-1518B-4t4c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
499 | | [Documentation]
500 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
501 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
502 | | ... | using binary search start at 10GE linerate, step 10kpps.
503 | | [Tags] | 1518B | 4C | NDRDISC | SKIP_PATCH
504 | | ${framesize}= | Set Variable | ${1518}
505 | | ${min_rate}= | Set Variable | ${10000}
506 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
507 | | ${binary_min}= | Set Variable | ${min_rate}
508 | | ${binary_max}= | Set Variable | ${max_rate}
509 | | ${threshold}= | Set Variable | ${min_rate}
510 | | ${dut1_vm_refs}= | Create Dictionary
511 | | ${dut2_vm_refs}= | Create Dictionary
512 | | Given Add worker threads and rxqueues to all DUTs | 4
513 | | And Add PCI devices to all DUTs
514 | | And Add no multi seg to all DUTs
515 | | And Apply startup configuration on all VPP DUTs
516 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
517 | | ... | ${sock1} | ${sock2}
518 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
519 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
520 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
521 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
522 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
523 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
524 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
525 | | ... | ${binary_max} | ${traffic_profile}
526 | | ... | ${min_rate} | ${max_rate} | ${threshold}
527
528 | tc16-1518B-4t4c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
529 | | [Documentation]
530 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
531 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
532 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
533 | | [Tags] | 1518B | 4C | PDRDISC | SKIP_PATCH
534 | | ${framesize}= | Set Variable | ${1518}
535 | | ${min_rate}= | Set Variable | ${10000}
536 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
537 | | ${binary_min}= | Set Variable | ${min_rate}
538 | | ${binary_max}= | Set Variable | ${max_rate}
539 | | ${threshold}= | Set Variable | ${min_rate}
540 | | ${dut1_vm_refs}= | Create Dictionary
541 | | ${dut2_vm_refs}= | Create Dictionary
542 | | Given Add worker threads and rxqueues to all DUTs | 4
543 | | And Add PCI devices to all DUTs
544 | | And Add no multi seg to all DUTs
545 | | And Apply startup configuration on all VPP DUTs
546 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
547 | | ... | ${sock1} | ${sock2}
548 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
549 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
550 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
551 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
552 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
553 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
554 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
555 | | ... | ${binary_max} | ${traffic_profile}
556 | | ... | ${min_rate} | ${max_rate} | ${threshold}
557 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
558
559 | tc17-IMIX-4t4c-eth-l2xcbase-eth-2vhostvr1024-1vm-ndrdisc
560 | | [Documentation]
561 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
562 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
563 | | ... | size using binary search start at 10GE linerate, step 10kpps.
564 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
565 | | [Tags] | IMIX | 4C | NDRDISC | SKIP_PATCH
566 | | ${framesize}= | Set Variable | IMIX_v4_1
567 | | ${min_rate}= | Set Variable | ${10000}
568 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
569 | | ${binary_min}= | Set Variable | ${min_rate}
570 | | ${binary_max}= | Set Variable | ${max_rate}
571 | | ${threshold}= | Set Variable | ${min_rate}
572 | | ${dut1_vm_refs}= | Create Dictionary
573 | | ${dut2_vm_refs}= | Create Dictionary
574 | | Given Add worker threads and rxqueues to all DUTs | 4
575 | | And Add PCI devices to all DUTs
576 | | And Add no multi seg to all DUTs
577 | | And Apply startup configuration on all VPP DUTs
578 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
579 | | ... | ${sock1} | ${sock2}
580 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
581 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
582 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
583 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
584 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
585 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
586 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
587 | | ... | ${binary_max} | ${traffic_profile}
588 | | ... | ${min_rate} | ${max_rate} | ${threshold}
589
590 | tc18-IMIX-4t4c-eth-l2xcbase-eth-2vhostvr1024-1vm-pdrdisc
591 | | [Documentation]
592 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
593 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
594 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
595 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
596 | | [Tags] | IMIX | 4C | PDRDISC | SKIP_PATCH
597 | | ${framesize}= | Set Variable | IMIX_v4_1
598 | | ${min_rate}= | Set Variable | ${10000}
599 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
600 | | ${binary_min}= | Set Variable | ${min_rate}
601 | | ${binary_max}= | Set Variable | ${max_rate}
602 | | ${threshold}= | Set Variable | ${min_rate}
603 | | ${dut1_vm_refs}= | Create Dictionary
604 | | ${dut2_vm_refs}= | Create Dictionary
605 | | Given Add worker threads and rxqueues to all DUTs | 4
606 | | And Add PCI devices to all DUTs
607 | | And Add no multi seg to all DUTs
608 | | And Apply startup configuration on all VPP DUTs
609 | | When Initialize L2 xconnect with Vhost-User in 3-node circular topology
610 | | ... | ${sock1} | ${sock2}
611 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
612 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
613 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
614 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
615 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
616 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
617 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
618 | | ... | ${binary_max} | ${traffic_profile}
619 | | ... | ${min_rate} | ${max_rate} | ${threshold}
620 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}