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