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