a4aa2a06b440d03cba4a33874b05304ca7394637
[csit.git] / tests / vpp / perf / hoststack / 10ge2p1x710-eth-ip4udpbase-ldpreload-iperf3-bps.robot
1 # Copyright (c) 2021 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 | Library  | resources.libraries.python.HoststackUtil
16 | Resource | resources/libraries/robot/shared/default.robot
17 | Resource | resources/libraries/robot/hoststack/hoststack.robot
18 |
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV
20 | ... | UDP | NIC_Intel-X710 | DRV_VFIO_PCI
21 | ... | RXQ_SIZE_0 | TXQ_SIZE_0 | HOSTSTACK
22 | ... | LDPRELOAD | IPERF3 | 1CLIENT | 1STREAM | 1460B
23 | ... | eth-ip4udpbase-ldpreload-iperf3
24 |
25 | Suite Setup | Setup suite topology interfaces with no TG
26 | Suite Teardown | Tear down suite | hoststack
27 | Test Setup | Setup test
28 | Test Teardown | Tear down test
29 |
30 | Test Template | Local template
31 |
32 | Documentation | **Iperf3 client -> Iperf3 server goodput.**
33 | ... |
34 | ... | - **[Top] Network Topologies:** DUT-DUT 2-node topology \
35 | ... | with single link between nodes.
36 | ... |
37 | ... | - **[Enc] Packet Encapsulations:** Eth-IPv4-UDP
38 | ... |
39 | ... | - **[Cfg] DUT configuration:**
40 | ... |
41 | ... | - **[Ref] Applicable standard specifications:**
42
43 *** Variables ***
44 | @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so
45 | ${nic_name}= | Intel-X710
46 | ${nic_driver}= | vfio-pci
47 | ${nic_rxq_size}= | 0
48 | ${nic_txq_size}= | 0
49 | ${nic_pfs}= | 2
50 | ${nic_vfs}= | 0
51 | ${overhead}= | ${0}
52 | ${frame_size}= | ${9000}
53 | ${crypto_type}= | ${None}
54 | ${iperf3_packet_length}= | ${1460}
55
56 *** Keywords ***
57 | Local template
58 | | [Arguments] | ${phy_cores}
59 | |
60 | | Set Test Variable | ${dpdk_no_tx_checksum_offload} | ${False}
61 | | Set VPP Hoststack Attributes | phy_cores=${phy_cores}
62 | | ${bandwidth} = | Get From Dictionary
63 | | ... | ${NIC_NAME_TO_BPS_LIMIT} | ${nic_name}
64 | | Set Iperf3 Client Attributes | udp=${True} | bandwidth=${bandwidth}
65 | | ... | length=${iperf3_packet_length}
66 | | ${defer_fail}= | Get Test Results From Hoststack Iperf3 Test
67 | | Run Keyword If | ${defer_fail}==True | FAIL
68 | | ... | Defered Failure From Hoststack Iperf3 Test Program
69
70 *** Test Cases ***
71 | 1460B-1c-eth-ip4udpbase-ldpreload-iperf3-bps
72 | | [Tags] | 1C
73 | | phy_cores=${1}