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