diff options
Diffstat (limited to 'resources/libraries/robot')
4 files changed, 19 insertions, 16 deletions
diff --git a/resources/libraries/robot/hoststack/hoststack.robot b/resources/libraries/robot/hoststack/hoststack.robot index ece1d8a1f4..643a67cd85 100644 --- a/resources/libraries/robot/hoststack/hoststack.robot +++ b/resources/libraries/robot/hoststack/hoststack.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Cisco and/or its affiliates. +# Copyright (c) 2025 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -458,7 +458,6 @@ | | | Run Keyword If | | | ... | '${dut}' == 'DUT1' and ${vpp_nsim_attr}[output_nsim_enable] | | | ... | ${dut}.Add Nsim poll main thread -| | | Run keyword | ${dut}.Add api segment gid | testuser | | | Run keyword | ${dut}.Add tcp congestion control algorithm | | | ... | ${vpp_hoststack_attr}[tcp_cc_algo] | | | Run keyword | ${dut}.Add session enable @@ -545,7 +544,7 @@ | | Set To Dictionary | ${iperf3_client_attr} | ip_address | | ... | ${dut2_if1_ip4_addr} | | Configure VPP Hoststack Attributes on all DUTs -| | ${iperf3_server}= | Get Iperf3 Command | ${iperf3_server_attr} +| | ${iperf3_server}= | Get Iperf3 Command | ${iperf3_server_attr} | ${dut2} | | ${skip_cnt}= | Evaluate | | ... | ${CPU_CNT_SYSTEM} + ${CPU_CNT_MAIN} + ${vpp_hoststack_attr}[phy_cores] | | ${numa}= | Get interfaces numa node | ${dut2} | ${dut2_if1} @@ -558,7 +557,7 @@ | | ... | ${dut2} | ${dut2_if1} | ${dut2_if1_ip4_addr} | ${dut2_if1_ip4_prefix} | | ... | ${iperf3_server_attr}[namespace] | ${core_list} | | ... | ${iperf3_server_attr}[cfg_vpp_feature] | ${iperf3_server} -| | ${iperf3_client}= | Get Iperf3 Command | ${iperf3_client_attr} +| | ${iperf3_client}= | Get Iperf3 Command | ${iperf3_client_attr} | ${dut1} | | ${numa}= | Get interfaces numa node | ${dut1} | ${dut1_if1} | | ${core_list}= | Cpu list per node str | ${dut1} | ${numa} | | ... | skip_cnt=${skip_cnt} | cpu_cnt=${iperf3_client_attr}[cpu_cnt] @@ -620,7 +619,7 @@ | | ${cpu_idle_list}= | Get Slice From List | ${cpu_idle} | | ... | ${${skip_cnt} + ${attr}[cpu_cnt]} | | ${nginx_server}= | Get Nginx Command | ${attr} -| | ... | ${nginx_version} | ${packages_dir} +| | ... | ${nginx_version} | ${packages_dir} | ${DUT1} | | Start Hoststack Test Program | | ... | ${DUT1} | ${attr}[namespace] | ${core_list} | | ... | ${nginx_server} @@ -649,13 +648,15 @@ | | FOR | ${action} | IN | @{stat_pre_trial} | | | Run Keyword | Additional Statistics Action For ${action} | | END -| | ${output}= | Run ab | ${tg} | ${dut_ip_addrs_str} | ${ad_ip_addrs_str} +| | ${status} | ${message}= | Run Keyword And Ignore Error | Run ab +| | ... | ${tg} | ${dut_ip_addrs_str} | ${ad_ip_addrs_str} | | ... | ${tls_tcp} | ${ciphers} | ${files} | ${mode} | ${r_total} | ${c_total} | | ... | ${listen_port} | | FOR | ${action} | IN | @{stat_post_trial} | | | Run Keyword | Additional Statistics Action For ${action} | | END -| | Set test message | ${output} +| | Set test message | ${message} +| | Run Keyword If | "${status}" != "PASS" | Fail | AB failed: ${message} | Configure VPP startup configuration for NGINX | | [Documentation] diff --git a/resources/libraries/robot/performance/performance_actions.robot b/resources/libraries/robot/performance/performance_actions.robot index df520e0757..de7c63200a 100644 --- a/resources/libraries/robot/performance/performance_actions.robot +++ b/resources/libraries/robot/performance/performance_actions.robot @@ -187,6 +187,9 @@ | | ${transaction_scale} = | Get Transaction Scale | | ${transaction_type} = | Get Transaction Type | | ${use_latency} = | Get Use Latency +| | ${node_arch} = | Get Node Arch | ${nodes[u'DUT1']} +| | ${profile} = | Set Variable If | "${node_arch}" == "aarch64" +| | ... | perf_stat_runtime_arm.yaml | perf_stat_runtime.yaml | | Send traffic on tg | | ... | duration=${-1} | | ... | rate=${runtime_rate} @@ -203,7 +206,7 @@ | | ... | ramp_up_duration=${ramp_up_duration} | | ... | ramp_up_rate=${ramp_up_rate} | | Run Telemetry On All DUTs -| | ... | ${nodes} | profile=perf_stat_runtime.yaml +| | ... | ${nodes} | profile=${profile} | | ... | rate=${telemetry_rate} | export=${False} | | Stop traffic on tg diff --git a/resources/libraries/robot/shared/default.robot b/resources/libraries/robot/shared/default.robot index 2dc78941b3..094d277a11 100644 --- a/resources/libraries/robot/shared/default.robot +++ b/resources/libraries/robot/shared/default.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Cisco and/or its affiliates. +# Copyright (c) 2025 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -149,7 +149,6 @@ | | | Run Keyword | ${dut}.Add Unix Log | | | Run Keyword | ${dut}.Add Unix CLI Listen | | | Run Keyword | ${dut}.Add Unix CLI No Pager -| | | Run Keyword | ${dut}.Add Unix GID | | | Run Keyword | ${dut}.Add API Segment Prefix | ${dut} | | | Run Keyword | ${dut}.Add Unix Coredump | | | Run Keyword | ${dut}.Add Socksvr | ${SOCKSVR_PATH} diff --git a/resources/libraries/robot/shared/interfaces.robot b/resources/libraries/robot/shared/interfaces.robot index b4d6959d01..dfb6482859 100644 --- a/resources/libraries/robot/shared/interfaces.robot +++ b/resources/libraries/robot/shared/interfaces.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Cisco and/or its affiliates. +# Copyright (c) 2025 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -145,11 +145,9 @@ | | | Run Keyword | ${dut}.Add DPDK Uio Driver | vfio-pci | | | Run Keyword | ${dut}.Add DPDK Dev Default RXQ | ${rxq_count_int} | | | Run Keyword If | '${nic_name}' == 'Amazon-Nitro-100G' -| | | ... | ${dut}.Add DPDK Dev Default Devargs | -| | | ... | "normal_llq_hdr=1,enable_llq=1,control_path_poll_interval=0" +| | | ... | ${dut}.Add DPDK Dev Default Devargs | "llq_policy=2" | | | Run Keyword If | '${nic_name}' == 'Amazon-Nitro-200G' -| | | ... | ${dut}.Add DPDK Dev Default Devargs | -| | | ... | "normal_llq_hdr=1,enable_llq=1,control_path_poll_interval=0" +| | | ... | ${dut}.Add DPDK Dev Default Devargs | "llq_policy=2" | | | Run Keyword If | not ${jumbo} | | | ... | ${dut}.Add DPDK No Multi Seg | | | Run Keyword If | ${nic_rxq_size} > 0 @@ -375,7 +373,7 @@ | Initialize layer avf on node | | [Documentation] -| | ... | Initialize AVF (Intel) interfaces on DUT on NIC PF. +| | ... | Initialize AVF (Intel) interfaces on DUT on NIC PF. Set MTU. | | | | ... | *Arguments:* | | ... | - dut - DUT node. Type: string @@ -408,6 +406,8 @@ | | | Set List Value | ${${dut}_vf${pf}_mac} | ${vf} | ${_mac} | | | Set List Value | ${${dut}_vf${pf}_pci} | ${vf} | ${_pci} | | | Set List Value | ${${dut}_vf${pf}_vlan} | ${vf} | ${_vlan} +| | | VPP Set Interface MTU | ${nodes['${dut}']} +| | | ... | ${${dut}_vf${pf}}[${vf}] | mtu=${recommended_mtu} | | END | Initialize layer af_xdp on node |