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