fix(Tests): Hoststack drivers
[csit.git] / tests / vpp / perf / hoststack / 2n1l-10ge2p1x710-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps.robot
1 # Copyright (c) 2021 Intel 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/shared/default.robot
16 | Resource | resources/libraries/robot/hoststack/hoststack.robot
17 |
18 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV
19 | ... | LDP_NGINX | TCP | NIC_Intel-X710 | DRV_VFIO_PCI
20 | ... | TCP_RPS | eth-ip4tcphttp-ldpreload-nginx-1_15_0
21 |
22 | Suite Setup | Setup suite topology interfaces | ab | nginx
23 | Suite Teardown | Tear down suite | ab
24 | Test Setup | Setup test
25 | Test Teardown | Tear down test | nginx
26 |
27 | Test Template | Local Template
28 |
29 | Documentation | *TCP requests per seconds.*
30 |
31 | ... | *[Top] Network Topologies:* TG-DUT-TG 2-node topology\
32 | ... | with single link between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-TCP-HTTP for TCP
34 | ... | *[Cfg] DUT configuration:*
35 | ... | *[Ver] TG verification:*
36 | ... | *[Ref] Applicable standard specifications:*
37
38 *** Variables ***
39 | @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so
40 | ${nic_name}= | Intel-X710
41 | ${crypto_type}= | ${None}
42 | ${nic_driver}= | vfio-pci
43 | ${nic_rxq_size}= | 0
44 | ${nic_txq_size}= | 0
45 | ${nic_pfs}= | 2
46 | ${nic_vfs}= | 0
47 | ${overhead}= | ${0}
48 | ${ciphers}= | 0
49 | ${rps_cps}= | rps
50 | ${qat}= | ${0}
51 | ${r_total}= | ${1000000}
52 | ${c_total}= | ${2000}
53 | ${listen_port}= | ${80}
54 | ${mode}= | ldp
55 | ${tls_tcp}= | tcp
56 | ${keep_time}= | 300
57 | ${ab_ip_prefix}= | 24
58 | @{ab_ip_addrs}= | 192.168.10.2
59 | ${dut_ip_prefix}= | 24
60 | @{dut_ip_addrs}= | 192.168.10.1
61 | ${nginx_version}= | 1.15.0
62
63 *** Keywords ***
64 | Local template
65 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
66 | |
67 | | Set Test Variable | \${frame_size}
68 | | Set Test Variable | ${dpdk_no_tx_checksum_offload} | ${False}
69 | | Given Set Max Rate And Jumbo
70 | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
71 | | And Pre-initialize layer driver | ${nic_driver}
72 | | FOR | ${dut} | IN | @{duts}
73 | | | Import Library | resources.libraries.python.VppConfigGenerator
74 | | | ... | WITH NAME | ${dut}
75 | | | Run keyword | ${dut}.Add Session Event Queues Memfd Segment
76 | | | Run keyword | ${dut}.Add tcp congestion control algorithm
77 | | | Run keyword | ${dut}.Add session enable
78 | | END
79 | | And Apply startup configuration on all VPP DUTs
80 | | When Initialize layer driver | ${nic_driver}
81 | | And Initialize layer interface
82 | | And Set up LDP or VCL Nginx on DUT node | ${dut1} | ${mode}
83 | | ... | ${rps_cps} | ${phy_cores} | ${qat} | ${tls_tcp}
84 | | And Additional Suite Setup Action For ab
85 | | Then Measure TLS requests or connections per second
86 | | ... | ${ciphers} | ${frame_size} | ${tls_tcp} | ${rps_cps}
87
88 *** Test Cases ***
89 | 0B-1c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
90 | | [Tags] | 0B | 1C
91 | | frame_size=${0} | phy_cores=${1}
92
93 | 0B-2c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
94 | | [Tags] | 0B | 2C
95 | | frame_size=${0} | phy_cores=${2}
96
97 | 64B-1c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
98 | | [Tags] | 64B | 1C
99 | | frame_size=${64} | phy_cores=${1}
100
101 | 64B-2c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
102 | | [Tags] | 64B | 2C
103 | | frame_size=${64} | phy_cores=${2}
104
105 | 1024B-1c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
106 | | [Tags] | 1024B | 1C
107 | | frame_size=${1024} | phy_cores=${1}
108
109 | 1024B-2c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
110 | | [Tags] | 1024B | 2C
111 | | frame_size=${1024} | phy_cores=${2}
112
113 | 2048B-1c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
114 | | [Tags] | 2048B | 1C
115 | | frame_size=${2048} | phy_cores=${1}
116
117 | 2048B-2c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
118 | | [Tags] | 2048B | 2C
119 | | frame_size=${2048} | phy_cores=${2}