CSIT-604: Bootstrap file for vpp-csit-verify-master-centos7-nightly
[csit.git] / tests / vpp / perf / vm_vhost / 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/performance_setup.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 | Set up 3-node performance topology with DUT's NIC model
22 | ... | L2 | Intel-X520-DA2
23 | Suite Teardown | Tear down 3-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | Test Teardown | Tear down performance test with vhost and VM with dpdk-testpmd
27 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
28 | ... | dut1_node=${dut1} | dut1_vm_refs=${dut1_vm_refs}
29 | ... | dut2_node=${dut2} | dut2_vm_refs=${dut2_vm_refs}
30 | ...
31 | Documentation | *RFC2544: Pkt throughput 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 # Traffic profile:
67 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
68
69 *** Test Cases ***
70 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
71 | | [Documentation]
72 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
73 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
74 | | ... | using binary search start at 10GE linerate, step 10kpps.
75 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
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 '1' rxqueues in 3-node single-link circular topology
85 | | And Add PCI devices to DUTs in 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 Initialize L2 bridge domains with Vhost-User in 3-node circular topology
89 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
90 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
91 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
92 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
93 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
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} | ${traffic_profile}
98 | | ... | ${min_rate} | ${max_rate} | ${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 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
106 | | ${framesize}= | Set Variable | ${64}
107 | | ${min_rate}= | Set Variable | ${10000}
108 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
109 | | ${binary_min}= | Set Variable | ${min_rate}
110 | | ${binary_max}= | Set Variable | ${max_rate}
111 | | ${threshold}= | Set Variable | ${min_rate}
112 | | ${dut1_vm_refs}= | Create Dictionary
113 | | ${dut2_vm_refs}= | Create Dictionary
114 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
115 | | And Add PCI devices to DUTs in 3-node single link topology
116 | | And Add no multi seg to all DUTs
117 | | And Apply startup configuration on all VPP DUTs
118 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
119 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
120 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
121 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
122 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
123 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
124 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
125 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
126 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
127 | | ... | ${binary_max} | ${traffic_profile}
128 | | ... | ${min_rate} | ${max_rate} | ${threshold}
129 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
130
131 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
132 | | [Documentation]
133 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
134 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
135 | | ... | using binary search start at 10GE linerate, step 10kpps.
136 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
137 | | ${framesize}= | Set Variable | ${1518}
138 | | ${min_rate}= | Set Variable | ${10000}
139 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
140 | | ${binary_min}= | Set Variable | ${min_rate}
141 | | ${binary_max}= | Set Variable | ${max_rate}
142 | | ${threshold}= | Set Variable | ${min_rate}
143 | | ${dut1_vm_refs}= | Create Dictionary
144 | | ${dut2_vm_refs}= | Create Dictionary
145 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
146 | | And Add PCI devices to DUTs in 3-node single link topology
147 | | And Add no multi seg to all DUTs
148 | | And Apply startup configuration on all VPP DUTs
149 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
150 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
151 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
152 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
153 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
154 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
155 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
156 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
157 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
158 | | ... | ${binary_max} | ${traffic_profile}
159 | | ... | ${min_rate} | ${max_rate} | ${threshold}
160
161 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
162 | | [Documentation]
163 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
164 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
165 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
166 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
167 | | ${framesize}= | Set Variable | ${1518}
168 | | ${min_rate}= | Set Variable | ${10000}
169 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
170 | | ${binary_min}= | Set Variable | ${min_rate}
171 | | ${binary_max}= | Set Variable | ${max_rate}
172 | | ${threshold}= | Set Variable | ${min_rate}
173 | | ${dut1_vm_refs}= | Create Dictionary
174 | | ${dut2_vm_refs}= | Create Dictionary
175 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
176 | | And Add PCI devices to DUTs in 3-node single link topology
177 | | And Add no multi seg to all DUTs
178 | | And Apply startup configuration on all VPP DUTs
179 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
180 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
181 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
182 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
183 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
184 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
185 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
186 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
187 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
188 | | ... | ${binary_max} | ${traffic_profile}
189 | | ... | ${min_rate} | ${max_rate} | ${threshold}
190 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
191
192 | tc05-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
193 | | [Documentation]
194 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
195 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
196 | | ... | size using binary search start at 10GE linerate, step 5kpps.
197 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
198 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
199 | | ${framesize}= | Set Variable | IMIX_v4_1
200 | | ${min_rate}= | Set Variable | ${10000}
201 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
202 | | ${binary_min}= | Set Variable | ${min_rate}
203 | | ${binary_max}= | Set Variable | ${max_rate}
204 | | ${threshold}= | Set Variable | ${min_rate}
205 | | ${dut1_vm_refs}= | Create Dictionary
206 | | ${dut2_vm_refs}= | Create Dictionary
207 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
208 | | And Add PCI devices to DUTs in 3-node single link topology
209 | | And Add no multi seg to all DUTs
210 | | And Apply startup configuration on all VPP DUTs
211 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
212 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
213 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
214 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
215 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
216 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
217 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
218 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
219 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
220 | | ... | ${binary_max} | ${traffic_profile}
221 | | ... | ${min_rate} | ${max_rate} | ${threshold}
222
223 | tc06-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
224 | | [Documentation]
225 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
226 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
227 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
228 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
229 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
230 | | ${framesize}= | Set Variable | IMIX_v4_1
231 | | ${min_rate}= | Set Variable | ${10000}
232 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
233 | | ${binary_min}= | Set Variable | ${min_rate}
234 | | ${binary_max}= | Set Variable | ${max_rate}
235 | | ${threshold}= | Set Variable | ${min_rate}
236 | | ${dut1_vm_refs}= | Create Dictionary
237 | | ${dut2_vm_refs}= | Create Dictionary
238 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
239 | | And Add PCI devices to DUTs in 3-node single link topology
240 | | And Add no multi seg to all DUTs
241 | | And Apply startup configuration on all VPP DUTs
242 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
243 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
244 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
245 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
246 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
247 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
248 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
249 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
250 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
251 | | ... | ${binary_max} | ${traffic_profile}
252 | | ... | ${min_rate} | ${max_rate} | ${threshold}
253 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
254
255 | tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
256 | | [Documentation]
257 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
258 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
259 | | ... | using binary search start at 10GE linerate, step 10kpps.
260 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
261 | | ${framesize}= | Set Variable | ${64}
262 | | ${min_rate}= | Set Variable | ${10000}
263 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
264 | | ${binary_min}= | Set Variable | ${min_rate}
265 | | ${binary_max}= | Set Variable | ${max_rate}
266 | | ${threshold}= | Set Variable | ${min_rate}
267 | | ${dut1_vm_refs}= | Create Dictionary
268 | | ${dut2_vm_refs}= | Create Dictionary
269 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
270 | | And Add PCI devices to DUTs in 3-node single link topology
271 | | And Add no multi seg to all DUTs
272 | | And Apply startup configuration on all VPP DUTs
273 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
274 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
275 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
276 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
277 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
278 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
279 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
280 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
281 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
282 | | ... | ${binary_max} | ${traffic_profile}
283 | | ... | ${min_rate} | ${max_rate} | ${threshold}
284
285 | tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
286 | | [Documentation]
287 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
288 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
289 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
290 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
291 | | ${framesize}= | Set Variable | ${64}
292 | | ${min_rate}= | Set Variable | ${10000}
293 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
294 | | ${binary_min}= | Set Variable | ${min_rate}
295 | | ${binary_max}= | Set Variable | ${max_rate}
296 | | ${threshold}= | Set Variable | ${min_rate}
297 | | ${dut1_vm_refs}= | Create Dictionary
298 | | ${dut2_vm_refs}= | Create Dictionary
299 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
300 | | And Add PCI devices to DUTs in 3-node single link topology
301 | | And Add no multi seg to all DUTs
302 | | And Apply startup configuration on all VPP DUTs
303 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
304 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
305 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
306 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
307 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
308 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
309 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
310 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
311 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
312 | | ... | ${binary_max} | ${traffic_profile}
313 | | ... | ${min_rate} | ${max_rate} | ${threshold}
314 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
315
316 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
317 | | [Documentation]
318 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
319 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
320 | | ... | using binary search start at 10GE linerate, step 10kpps.
321 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
322 | | ${framesize}= | Set Variable | ${1518}
323 | | ${min_rate}= | Set Variable | ${10000}
324 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
325 | | ${binary_min}= | Set Variable | ${min_rate}
326 | | ${binary_max}= | Set Variable | ${max_rate}
327 | | ${threshold}= | Set Variable | ${min_rate}
328 | | ${dut1_vm_refs}= | Create Dictionary
329 | | ${dut2_vm_refs}= | Create Dictionary
330 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
331 | | And Add PCI devices to DUTs in 3-node single link topology
332 | | And Add no multi seg to all DUTs
333 | | And Apply startup configuration on all VPP DUTs
334 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
335 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
336 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
337 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
338 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
339 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
340 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
341 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
342 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
343 | | ... | ${binary_max} | ${traffic_profile}
344 | | ... | ${min_rate} | ${max_rate} | ${threshold}
345
346 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
347 | | [Documentation]
348 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
349 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
350 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
351 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
352 | | ${framesize}= | Set Variable | ${1518}
353 | | ${min_rate}= | Set Variable | ${10000}
354 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
355 | | ${binary_min}= | Set Variable | ${min_rate}
356 | | ${binary_max}= | Set Variable | ${max_rate}
357 | | ${threshold}= | Set Variable | ${min_rate}
358 | | ${dut1_vm_refs}= | Create Dictionary
359 | | ${dut2_vm_refs}= | Create Dictionary
360 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
361 | | And Add PCI devices to DUTs in 3-node single link topology
362 | | And Add no multi seg to all DUTs
363 | | And Apply startup configuration on all VPP DUTs
364 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
365 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
366 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
367 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
368 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
369 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
370 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
371 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
372 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
373 | | ... | ${binary_max} | ${traffic_profile}
374 | | ... | ${min_rate} | ${max_rate} | ${threshold}
375 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
376
377 | tc11-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
378 | | [Documentation]
379 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
380 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
381 | | ... | size using binary search start at 10GE linerate, step 10kpps.
382 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
383 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
384 | | ${framesize}= | Set Variable | IMIX_v4_1
385 | | ${min_rate}= | Set Variable | ${10000}
386 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
387 | | ${binary_min}= | Set Variable | ${min_rate}
388 | | ${binary_max}= | Set Variable | ${max_rate}
389 | | ${threshold}= | Set Variable | ${min_rate}
390 | | ${dut1_vm_refs}= | Create Dictionary
391 | | ${dut2_vm_refs}= | Create Dictionary
392 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
393 | | And Add PCI devices to DUTs in 3-node single link topology
394 | | And Add no multi seg to all DUTs
395 | | And Apply startup configuration on all VPP DUTs
396 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
397 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
398 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
399 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
400 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
401 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
402 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
403 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
404 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
405 | | ... | ${binary_max} | ${traffic_profile}
406 | | ... | ${min_rate} | ${max_rate} | ${threshold}
407
408 | tc12-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
409 | | [Documentation]
410 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
411 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
412 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
413 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
414 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
415 | | ${framesize}= | Set Variable | IMIX_v4_1
416 | | ${min_rate}= | Set Variable | ${10000}
417 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
418 | | ${binary_min}= | Set Variable | ${min_rate}
419 | | ${binary_max}= | Set Variable | ${max_rate}
420 | | ${threshold}= | Set Variable | ${min_rate}
421 | | ${dut1_vm_refs}= | Create Dictionary
422 | | ${dut2_vm_refs}= | Create Dictionary
423 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
424 | | And Add PCI devices to DUTs in 3-node single link topology
425 | | And Add no multi seg to all DUTs
426 | | And Apply startup configuration on all VPP DUTs
427 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
428 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
429 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
430 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
431 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
432 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
433 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
434 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
435 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
436 | | ... | ${binary_max} | ${traffic_profile}
437 | | ... | ${min_rate} | ${max_rate} | ${threshold}
438 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
439
440 | tc13-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
441 | | [Documentation]
442 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
443 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
444 | | ... | using binary search start at 10GE linerate, step 10kpps.
445 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
446 | | ${framesize}= | Set Variable | ${64}
447 | | ${min_rate}= | Set Variable | ${10000}
448 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
449 | | ${binary_min}= | Set Variable | ${min_rate}
450 | | ${binary_max}= | Set Variable | ${max_rate}
451 | | ${threshold}= | Set Variable | ${min_rate}
452 | | ${dut1_vm_refs}= | Create Dictionary
453 | | ${dut2_vm_refs}= | Create Dictionary
454 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
455 | | And Add PCI devices to DUTs in 3-node single link topology
456 | | And Add no multi seg to all DUTs
457 | | And Apply startup configuration on all VPP DUTs
458 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
459 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
460 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
461 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
462 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
463 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
464 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
465 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
466 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
467 | | ... | ${binary_max} | ${traffic_profile}
468 | | ... | ${min_rate} | ${max_rate} | ${threshold}
469
470 | tc14-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
471 | | [Documentation]
472 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
473 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
474 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
475 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
476 | | ${framesize}= | Set Variable | ${64}
477 | | ${min_rate}= | Set Variable | ${10000}
478 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
479 | | ${binary_min}= | Set Variable | ${min_rate}
480 | | ${binary_max}= | Set Variable | ${max_rate}
481 | | ${threshold}= | Set Variable | ${min_rate}
482 | | ${dut1_vm_refs}= | Create Dictionary
483 | | ${dut2_vm_refs}= | Create Dictionary
484 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
485 | | And Add PCI devices to DUTs in 3-node single link topology
486 | | And Add no multi seg to all DUTs
487 | | And Apply startup configuration on all VPP DUTs
488 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
489 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
490 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
491 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
492 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
493 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
494 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
495 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
496 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
497 | | ... | ${binary_max} | ${traffic_profile}
498 | | ... | ${min_rate} | ${max_rate} | ${threshold}
499 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
500
501 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
502 | | [Documentation]
503 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
504 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
505 | | ... | using binary search start at 10GE linerate, step 10kpps.
506 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
507 | | ${framesize}= | Set Variable | ${1518}
508 | | ${min_rate}= | Set Variable | ${10000}
509 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
510 | | ${binary_min}= | Set Variable | ${min_rate}
511 | | ${binary_max}= | Set Variable | ${max_rate}
512 | | ${threshold}= | Set Variable | ${min_rate}
513 | | ${dut1_vm_refs}= | Create Dictionary
514 | | ${dut2_vm_refs}= | Create Dictionary
515 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
516 | | And Add PCI devices to DUTs in 3-node single link topology
517 | | And Add no multi seg to all DUTs
518 | | And Apply startup configuration on all VPP DUTs
519 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
520 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
521 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
522 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
523 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
524 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
525 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
526 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
527 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
528 | | ... | ${binary_max} | ${traffic_profile}
529 | | ... | ${min_rate} | ${max_rate} | ${threshold}
530
531 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
532 | | [Documentation]
533 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
534 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
535 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
536 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
537 | | ${framesize}= | Set Variable | ${1518}
538 | | ${min_rate}= | Set Variable | ${10000}
539 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
540 | | ${binary_min}= | Set Variable | ${min_rate}
541 | | ${binary_max}= | Set Variable | ${max_rate}
542 | | ${threshold}= | Set Variable | ${min_rate}
543 | | ${dut1_vm_refs}= | Create Dictionary
544 | | ${dut2_vm_refs}= | Create Dictionary
545 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
546 | | And Add PCI devices to DUTs in 3-node single link topology
547 | | And Add no multi seg to all DUTs
548 | | And Apply startup configuration on all VPP DUTs
549 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
550 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
551 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
552 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
553 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
554 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
555 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
556 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
557 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
558 | | ... | ${binary_max} | ${traffic_profile}
559 | | ... | ${min_rate} | ${max_rate} | ${threshold}
560 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
561
562 | tc17-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
563 | | [Documentation]
564 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
565 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
566 | | ... | size using binary search start at 10GE linerate, step 10kpps.
567 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
568 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
569 | | ${framesize}= | Set Variable | IMIX_v4_1
570 | | ${min_rate}= | Set Variable | ${10000}
571 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
572 | | ${binary_min}= | Set Variable | ${min_rate}
573 | | ${binary_max}= | Set Variable | ${max_rate}
574 | | ${threshold}= | Set Variable | ${min_rate}
575 | | ${dut1_vm_refs}= | Create Dictionary
576 | | ${dut2_vm_refs}= | Create Dictionary
577 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
578 | | And Add PCI devices to DUTs in 3-node single link topology
579 | | And Add no multi seg to all DUTs
580 | | And Apply startup configuration on all VPP DUTs
581 | | When Initialize L2 bridge domains with Vhost-User in 3-node circular topology
582 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
583 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
584 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
585 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
586 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
587 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
588 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
589 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
590 | | ... | ${binary_max} | ${traffic_profile}
591 | | ... | ${min_rate} | ${max_rate} | ${threshold}
592
593 | tc18-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
594 | | [Documentation]
595 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
596 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
597 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
598 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
599 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
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 '2' rxqueues in 3-node single-link circular topology
609 | | And Add PCI devices to DUTs in 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 Initialize L2 bridge domains with Vhost-User in 3-node circular topology
613 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
614 | | ${vm1}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
615 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
616 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
617 | | ${vm2}= | And Configure guest VM with dpdk-testpmd connected via vhost-user
618 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
619 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
620 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
621 | | ... | ${binary_max} | ${traffic_profile}
622 | | ... | ${min_rate} | ${max_rate} | ${threshold}
623 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}