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