X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fhoststack%2Fhoststack.robot;h=075cc2b8bfb5e06d8c1649dc6eda85a5aaa4b10a;hb=2a35fc8cc4d840ccc616401e9af230aa50a7bb57;hp=d0fd9a2a958f59685060dfd8108e1d005ea3b7fe;hpb=2da2aa12260143bc513b4dff5e2b2ef6755172ab;p=csit.git diff --git a/resources/libraries/robot/hoststack/hoststack.robot b/resources/libraries/robot/hoststack/hoststack.robot index d0fd9a2a95..075cc2b8bf 100644 --- a/resources/libraries/robot/hoststack/hoststack.robot +++ b/resources/libraries/robot/hoststack/hoststack.robot @@ -26,22 +26,26 @@ | ${quic_crypto_engine}= | nocrypto | ${quic_fifo_size}= | 4M | &{vpp_hoststack_attr}= -| ... | rxq=${None} +| ... | rxq=${1} +| ... | rxd=${256} +| ... | txd=${256} | ... | phy_cores=${1} | ... | vpp_api_socket=${SOCKSVR_PATH} | ... | api_seg_global_size=2G | ... | api_seg_api_size=1G -| ... | sess_evt_q_seg_size=4G -| ... | sess_evt_q_length=4000000 -| ... | sess_prealloc_sess=4000000 -| ... | sess_v4_sess_tbl_buckets=2000000 -| ... | sess_v4_sess_tbl_mem=2G -| ... | sess_v4_sess_halfopen_buckets=5000000 -| ... | sess_v4_sess_halfopen_mem=3G -| ... | sess_lcl_endpt_tbl_buckets=5000000 -| ... | sess_lcl_endpt_tbl_mem=3G +| ... | tcp_cc_algo=cubic +| ... | sess_evt_q_seg_size=64M +| ... | sess_evt_q_length=16384 +| ... | sess_prealloc_sess=1024 +| ... | sess_v4_tbl_buckets=20000 +| ... | sess_v4_tbl_mem=64M +| ... | sess_v4_hopen_buckets=20000 +| ... | sess_v4_hopen_mem=64M +| ... | sess_lendpt_buckets=250000 +| ... | sess_lendpt_mem=512M | &{vpp_echo_server_attr}= | ... | role=server +| ... | cpu_cnt=${1} | ... | cfg_vpp_feature=${None} | ... | namespace=default | ... | vpp_api_socket=${vpp_hoststack_attr}[vpp_api_socket] @@ -49,6 +53,8 @@ | ... | uri_protocol=quic | ... | uri_ip4_addr=${EMPTY} | ... | uri_port=1234 +| ... | nthreads=1 +| ... | mq_size=${vpp_hoststack_attr}[sess_evt_q_length] | ... | nclients=1 | ... | quic_streams=1 | ... | time=sconnect:lastbyte @@ -59,6 +65,7 @@ | ... | tx_results_diff=${False} | &{vpp_echo_client_attr}= | ... | role=client +| ... | cpu_cnt=${1} | ... | cfg_vpp_feature=${None} | ... | namespace=default | ... | vpp_api_socket=${vpp_hoststack_attr}[vpp_api_socket] @@ -66,6 +73,8 @@ | ... | uri_protocol=quic | ... | uri_ip4_addr=${EMPTY} | ... | uri_port=1234 +| ... | nthreads=1 +| ... | mq_size=${vpp_hoststack_attr}[sess_evt_q_length] | ... | nclients=1 | ... | quic_streams=1 | ... | time=sconnect:lastbyte @@ -74,6 +83,29 @@ | ... | tx_bytes=0 | ... | rx_results_diff=${False} | ... | tx_results_diff=${False} +| &{iperf3_server_attr}= +| ... | role=server +| ... | cpu_cnt=${1} +| ... | cfg_vpp_feature=${Empty} +| ... | namespace=default +| ... | vcl_config=vcl_iperf3.conf +| ... | ld_preload=${True} +| ... | transparent_tls=${False} +| ... | json=${True} +| ... | ip_version=${4} +| &{iperf3_client_attr}= +| ... | role=client +| ... | cpu_cnt=${1} +| ... | cfg_vpp_feature=${Empty} +| ... | namespace=default +| ... | vcl_config=vcl_iperf3.conf +| ... | ld_preload=${True} +| ... | transparent_tls=${False} +| ... | json=${True} +| ... | ip_version=${4} +| ... | ip_address=${EMPTY} +| ... | parallel=${1} +| ... | time=${20} *** Keywords *** | Set VPP Hoststack Attributes @@ -81,27 +113,30 @@ | | ... | Set the VPP HostStack attributes in the vpp_hoststack_attr dictionary. | | | | ... | *Arguments:* -| | ... | - ${rxq} - Type: int +| | ... | - ${rxq} - Number of Rx Queues Type: int +| | ... | - ${rxd} - Number of Rx Descriptors Type: int +| | ... | - ${txd} - Number of Tx Descriptors Type: int | | ... | - ${phy_cores} - Number of cores for workers Type: int | | ... | - ${vpp_api_socket} - Path to VPP api socket file Type: string | | ... | - ${api_seg_global_size} - Global API segment size Type: string | | ... | - ${api_seg_api_size} - API segment API fifo size Type: string +| | ... | - ${tcp_cc_algo} - TCP congestion control algorithm Type: string | | ... | - ${sess_evt_q_seg_size} - Session event queue segment size | | ... | Type: string | | ... | - ${sess_evt_q_length} - Session event queue length Type: string | | ... | - ${sess_prealloc_sess} - Number of sessions to preallocate | | ... | Type: string -| | ... | - ${sess_v4_sess_tbl_buckets} - Number of IPv4 session table buckets +| | ... | - ${sess_v4_tbl_buckets} - Number of IPv4 session table buckets | | ... | Type: string -| | ... | - ${sess_v4_sess_tbl_mem} - IPv4 session table memory size +| | ... | - ${sess_v4_tbl_mem} - IPv4 session table memory size | | ... | Type: string -| | ... | - ${sess_v4_sess_halfopen_buckets} - Number of IPv4 session +| | ... | - ${sess_v4_hopen_buckets} - Number of IPv4 session | | ... | half open table buckets Type: string -| | ... | - ${sess_v4_sess_halfopen_mem} - IPv4 session half open +| | ... | - ${sess_v4_hopen_mem} - IPv4 session half open | | ... | table memory size Type: string -| | ... | - ${sess_lcl_endpt_tbl_buckets} - Number of session local endpoint +| | ... | - ${sess_lendpt_buckets} - Number of session local endpoint | | ... | table buckets Type: string -| | ... | - ${sess_lcl_endpt_tbl_mem} - Session local endpoint +| | ... | - ${sess_lendpt_mem} - Session local endpoint | | ... | table memory size Type: string | | | | ... | *Example:* @@ -110,21 +145,26 @@ | | | | [Arguments] | | ... | ${rxq}=${vpp_hoststack_attr}[rxq] +| | ... | ${rxd}=${vpp_hoststack_attr}[rxd] +| | ... | ${txd}=${vpp_hoststack_attr}[txd] | | ... | ${phy_cores}=${vpp_hoststack_attr}[phy_cores] | | ... | ${vpp_api_socket}=${vpp_hoststack_attr}[vpp_api_socket] | | ... | ${api_seg_global_size}=${vpp_hoststack_attr}[api_seg_global_size] | | ... | ${api_seg_api_size}=${vpp_hoststack_attr}[api_seg_api_size] +| | ... | ${tcp_cc_algo}=${vpp_hoststack_attr}[tcp_cc_algo] | | ... | ${sess_evt_q_seg_size}=${vpp_hoststack_attr}[sess_evt_q_seg_size] | | ... | ${sess_evt_q_length}=${vpp_hoststack_attr}[sess_evt_q_length] | | ... | ${sess_prealloc_sess}=${vpp_hoststack_attr}[sess_prealloc_sess] -| | ... | ${sess_v4_sess_tbl_buckets}=${vpp_hoststack_attr}[sess_v4_sess_tbl_buckets] -| | ... | ${sess_v4_sess_tbl_mem}=${vpp_hoststack_attr}[sess_v4_sess_tbl_mem] -| | ... | ${sess_v4_sess_halfopen_buckets}=${vpp_hoststack_attr}[sess_v4_sess_halfopen_buckets] -| | ... | ${sess_v4_sess_halfopen_mem}=${vpp_hoststack_attr}[sess_v4_sess_halfopen_mem] -| | ... | ${sess_lcl_endpt_tbl_buckets}=${vpp_hoststack_attr}[sess_lcl_endpt_tbl_buckets] -| | ... | ${sess_lcl_endpt_tbl_mem}=${vpp_hoststack_attr}[sess_lcl_endpt_tbl_mem] +| | ... | ${sess_v4_tbl_buckets}=${vpp_hoststack_attr}[sess_v4_tbl_buckets] +| | ... | ${sess_v4_tbl_mem}=${vpp_hoststack_attr}[sess_v4_tbl_mem] +| | ... | ${sess_v4_hopen_buckets}=${vpp_hoststack_attr}[sess_v4_hopen_buckets] +| | ... | ${sess_v4_hopen_mem}=${vpp_hoststack_attr}[sess_v4_hopen_mem] +| | ... | ${sess_lendpt_buckets}=${vpp_hoststack_attr}[sess_lendpt_buckets] +| | ... | ${sess_lendpt_mem}=${vpp_hoststack_attr}[sess_lendpt_mem] | | | | Set To Dictionary | ${vpp_hoststack_attr} | rxq | ${rxq} +| | Set To Dictionary | ${vpp_hoststack_attr} | rxd | ${rxd} +| | Set To Dictionary | ${vpp_hoststack_attr} | txd | ${txd} | | Set To Dictionary | ${vpp_hoststack_attr} | phy_cores | ${phy_cores} | | Set To Dictionary | ${vpp_hoststack_attr} | | ... | vpp_api_socket | ${vpp_api_socket} @@ -133,23 +173,25 @@ | | Set To Dictionary | ${vpp_hoststack_attr} | | ... | api_seg_api_size | ${api_seg_api_size} | | Set To Dictionary | ${vpp_hoststack_attr} +| | ... | tcp_cc_algo | ${tcp_cc_algo} +| | Set To Dictionary | ${vpp_hoststack_attr} | | ... | sess_evt_q_seg_size | ${sess_evt_q_seg_size} | | Set To Dictionary | ${vpp_hoststack_attr} | | ... | sess_evt_q_length | ${sess_evt_q_length} | | Set To Dictionary | ${vpp_hoststack_attr} | | ... | sess_prealloc_sess | ${sess_prealloc_sess} | | Set To Dictionary | ${vpp_hoststack_attr} -| | ... | sess_v4_sess_tbl_buckets | ${sess_v4_sess_tbl_buckets} +| | ... | sess_v4_tbl_buckets | ${sess_v4_tbl_buckets} | | Set To Dictionary | ${vpp_hoststack_attr} -| | ... | sess_v4_sess_tbl_mem | ${sess_v4_sess_tbl_mem} +| | ... | sess_v4_tbl_mem | ${sess_v4_tbl_mem} | | Set To Dictionary | ${vpp_hoststack_attr} -| | ... | sess_v4_sess_halfopen_buckets | ${sess_v4_sess_halfopen_buckets} +| | ... | sess_v4_hopen_buckets | ${sess_v4_hopen_buckets} | | Set To Dictionary | ${vpp_hoststack_attr} -| | ... | sess_v4_sess_halfopen_mem | ${sess_v4_sess_halfopen_mem} +| | ... | sess_v4_hopen_mem | ${sess_v4_hopen_mem} | | Set To Dictionary | ${vpp_hoststack_attr} -| | ... | sess_lcl_endpt_tbl_buckets | ${sess_lcl_endpt_tbl_buckets} +| | ... | sess_lendpt_buckets | ${sess_lendpt_buckets} | | Set To Dictionary | ${vpp_hoststack_attr} -| | ... | sess_lcl_endpt_tbl_mem | ${sess_lcl_endpt_tbl_mem} +| | ... | sess_lendpt_mem | ${sess_lendpt_mem} | Set VPP Echo Server Attributes | | [Documentation] @@ -159,6 +201,8 @@ | | ... | *Arguments:* | | ... | - ${cfg_vpp_feature} - VPP Feature requiring config Type: string | | ... | - ${namespace} - Namespace Type: string +| | ... | - ${nthreads} - Number of threads Type: string +| | ... | - ${mq_size} - Number of threads Type: string | | ... | - ${nclients} - Number of clients Type: string | | ... | - ${quic_streams} - Number of quic streams Type: string | | ... | - ${fifo_size} - Session Fifo Size Type: integer @@ -176,6 +220,8 @@ | | [Arguments] | | ... | ${cfg_vpp_feature}=${vpp_echo_server_attr}[cfg_vpp_feature] | | ... | ${namespace}=${vpp_echo_server_attr}[namespace] +| | ... | ${nthreads}=${vpp_echo_server_attr}[nthreads] +| | ... | ${mq_size}=${vpp_echo_server_attr}[mq_size] | | ... | ${nclients}=${vpp_echo_server_attr}[nclients] | | ... | ${quic_streams}=${vpp_echo_server_attr}[quic_streams] | | ... | ${time}=${vpp_echo_server_attr}[time] @@ -188,6 +234,8 @@ | | Set To Dictionary | ${vpp_echo_server_attr} | cfg_vpp_feature | | ... | ${cfg_vpp_feature} | | Set To Dictionary | ${vpp_echo_server_attr} | namespace | ${namespace} +| | Set To Dictionary | ${vpp_echo_server_attr} | nthreads | ${nthreads} +| | Set To Dictionary | ${vpp_echo_server_attr} | mq_size | ${mq_size} | | Set To Dictionary | ${vpp_echo_server_attr} | nclients | ${nclients} | | Set To Dictionary | ${vpp_echo_server_attr} | quic_streams | ${quic_streams} | | Set To Dictionary | ${vpp_echo_server_attr} | time | ${time} @@ -207,7 +255,10 @@ | | ... | *Arguments:* | | ... | - ${cfg_vpp_feature} - VPP Feature requiring config Type: string | | ... | - ${namespace} - Namespace Type: string +| | ... | - ${nthreads} - Number of threads Type: string +| | ... | - ${mq_size} - Number of threads Type: string | | ... | - ${nclients} - Number of clients Type: string +| | ... | - ${quic_streams} - Number of quic streams Type: string | | ... | - ${fifo_size} - Session Fifo Size Type: integer | | ... | - ${time} - Timing events (start:end) Type: string | | ... | - ${rx_bytes} - Number of Bytes to receive Type: string @@ -223,8 +274,10 @@ | | [Arguments] | | ... | ${cfg_vpp_feature}=${vpp_echo_client_attr}[cfg_vpp_feature] | | ... | ${namespace}=${vpp_echo_client_attr}[namespace] +| | ... | ${nthreads}=${vpp_echo_client_attr}[nthreads] +| | ... | ${mq_size}=${vpp_echo_client_attr}[mq_size] | | ... | ${nclients}=${vpp_echo_client_attr}[nclients] -| | ... | ${quic_streams}=${vpp_echo_server_attr}[quic_streams] +| | ... | ${quic_streams}=${vpp_echo_client_attr}[quic_streams] | | ... | ${time}=${vpp_echo_client_attr}[time] | | ... | ${fifo_size}=${vpp_echo_client_attr}[fifo_size] | | ... | ${rx_bytes}=${vpp_echo_client_attr}[rx_bytes] @@ -235,6 +288,8 @@ | | Set To Dictionary | ${vpp_echo_client_attr} | cfg_vpp_feature | | ... | ${cfg_vpp_feature} | | Set To Dictionary | ${vpp_echo_client_attr} | namespace | ${namespace} +| | Set To Dictionary | ${vpp_echo_client_attr} | nthreads | ${nthreads} +| | Set To Dictionary | ${vpp_echo_client_attr} | mq_size | ${mq_size} | | Set To Dictionary | ${vpp_echo_client_attr} | nclients | ${nclients} | | Set To Dictionary | ${vpp_echo_client_attr} | quic_streams | ${quic_streams} | | Set To Dictionary | ${vpp_echo_client_attr} | time | ${time} @@ -246,6 +301,65 @@ | | Set To Dictionary | | ... | ${vpp_echo_client_attr} | tx_results_diff | ${tx_results_diff} +| Set Iperf3 Server Attributes +| | [Documentation] +| | ... | Set the HostStack iperf3 test program attributes +| | ... | in the iperf3_server_attr dictionary. +| | +| | ... | *Arguments:* +| | ... | - ${vcl_config} - VCL configuration file name Type: string +| | ... | - ${ld_preload} - Use the VCL LD_PRELOAD library Type: boolean +| | ... | - ${transparent_tls} - Use VCL Transparent-TLS mode Type: boolean +| | ... | - ${ip_version} - IP version (4 or 6) Type: int +| | +| | ... | *Example:* +| | +| | ... | \| Set Iperf3 Server Attributes \| vcl_config=${vcl_config} \| +| | ... | \| ip_version=${ip_version} \| +| | +| | [Arguments] +| | ... | ${vcl_config}=${iperf3_server_attr}[vcl_config] +| | ... | ${ld_preload}=${iperf3_server_attr}[ld_preload] +| | ... | ${transparent_tls}=${iperf3_server_attr}[transparent_tls] +| | ... | ${ip_version}=${iperf3_server_attr}[ip_version] +| | +| | Set To Dictionary | ${iperf3_server_attr} | vcl_config | ${vcl_config} +| | Set To Dictionary | ${iperf3_server_attr} | ld_preload | ${ld_preload} +| | Set To Dictionary | ${iperf3_server_attr} | transparent_tls +| | ... | ${transparent_tls} +| | Set To Dictionary | ${iperf3_server_attr} | ip_version | ${ip_version} + +| Set Iperf3 Client Attributes +| | [Documentation] +| | ... | Set the HostStack iperf3 test program attributes +| | ... | in the iperf3_client_attr dictionary. +| | +| | ... | *Arguments:* +| | ... | - ${vcl_config} - VCL configuration file name Type: string +| | ... | - ${ld_preload} - Use the VCL LD_PRELOAD library Type: boolean +| | ... | - ${transparent_tls} - Use VCL Transparent-TLS mode Type: boolean +| | ... | - ${ip_version} - IP version (4 or 6) Type: int +| | ... | - ${parallel} - Number of parallel streams Type: int +| | +| | ... | *Example:* +| | +| | ... | \| Set Iperf3 Client Attributes \| vcl_config=${vcl_config} \| +| | ... | \| ip_version=${ip_version} \| parallel=${streams} \| +| | +| | [Arguments] +| | ... | ${vcl_config}=${iperf3_client_attr}[vcl_config] +| | ... | ${ld_preload}=${iperf3_client_attr}[ld_preload] +| | ... | ${transparent_tls}=${iperf3_client_attr}[transparent_tls] +| | ... | ${ip_version}=${iperf3_client_attr}[ip_version] +| | ... | ${parallel}=${iperf3_client_attr}[parallel] +| | +| | Set To Dictionary | ${iperf3_client_attr} | vcl_config | ${vcl_config} +| | Set To Dictionary | ${iperf3_client_attr} | ld_preload | ${ld_preload} +| | Set To Dictionary | ${iperf3_client_attr} | transparent_tls +| | ... | ${transparent_tls} +| | Set To Dictionary | ${iperf3_client_attr} | ip_version | ${ip_version} +| | Set To Dictionary | ${iperf3_client_attr} | parallel | ${parallel} + | Run hoststack test program on DUT | | [Documentation] | | ... | Configure IP address on the port, set it up and start the specified @@ -259,6 +373,7 @@ | | ... | - ${namespace} - Network namespace to run test program in Type: string | | ... | - ${cfg_vpp_feature} - VPP hoststack feature requiring | | ... | additional VPP configuration Type: string +| | ... | - ${core_list} - Cpu core affinity list Type: string | | ... | - ${test_program} - Host Stack test program Type: dict | | | | ... | *Example:* @@ -268,9 +383,13 @@ | | ... | \| quic \| ${vpp_echo_server} \| | | | | [Arguments] | ${node} | ${intf} | ${ip4_addr} | ${ip4_mask} -| | | ... | ${namespace} | ${cfg_vpp_feature} | ${test_program} +| | | ... | ${namespace} | ${core_list} | ${cfg_vpp_feature} +| | | ... | ${test_program} | | -| | Run Keyword If | ${vpp_nsim_attr}[output_feature_enable] +| | ${is_dut1}= | Run Keyword And Return Status +| | ... | Dictionaries should be equal | ${node} | ${dut1} +| | Run Keyword If +| | ... | ${is_dut1} and ${vpp_nsim_attr}[output_nsim_enable] | | ... | Configure VPP NSIM | ${node} | ${vpp_nsim_attr} | ${intf} | | Run Keyword If | '${cfg_vpp_feature}' != '' | | ... | Additional VPP Config for Feature ${cfg_vpp_feature} | ${node} @@ -280,7 +399,7 @@ | | ... | ${ip4_mask} | | Vpp Node Interfaces Ready Wait | ${node} | | ${hoststack_test_program_pid}= | Start Hoststack Test Program -| | ... | ${node} | ${namespace} | ${test_program} +| | ... | ${node} | ${namespace} | ${core_list} | ${test_program} | | Return From Keyword | ${hoststack_test_program_pid} | Additional VPP Config For Feature quic @@ -299,10 +418,11 @@ | | [Documentation] | | ... | Configure VPP HostStack attributes on all DUTs. | | +| | Set Max Rate And Jumbo | | Add worker threads to all DUTs | | ... | ${vpp_hoststack_attr}[phy_cores] | ${vpp_hoststack_attr}[rxq] -| | Add DPDK PCI devices to all DUTs -| | ${duts}= | Get Matches | ${nodes} | DUT* +| | ... | ${vpp_hoststack_attr}[rxd] | ${vpp_hoststack_attr}[txd] +| | Pre-initialize layer driver | ${nic_driver} | | FOR | ${dut} | IN | @{duts} | | | Import Library | resources.libraries.python.VppConfigGenerator | | | ... | WITH NAME | ${dut} @@ -311,7 +431,12 @@ | | | ... | ${vpp_hoststack_attr}[api_seg_global_size] | | | Run keyword | ${dut}.Add api segment api size | | | ... | ${vpp_hoststack_attr}[api_seg_api_size] +| | | 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 | | | Run keyword | ${dut}.Add session event queues memfd segment | | | Run keyword | ${dut}.Add session event queues segment size @@ -321,17 +446,17 @@ | | | Run keyword | ${dut}.Add session preallocated sessions | | | ... | ${vpp_hoststack_attr}[sess_prealloc_sess] | | | Run keyword | ${dut}.Add session v4 session table buckets -| | | ... | ${vpp_hoststack_attr}[sess_v4_sess_tbl_buckets] +| | | ... | ${vpp_hoststack_attr}[sess_v4_tbl_buckets] | | | Run keyword | ${dut}.Add session v4 session table memory -| | | ... | ${vpp_hoststack_attr}[sess_v4_sess_tbl_mem] +| | | ... | ${vpp_hoststack_attr}[sess_v4_tbl_mem] | | | Run keyword | ${dut}.Add session v4 halfopen table buckets -| | | ... | ${vpp_hoststack_attr}[sess_v4_sess_halfopen_buckets] +| | | ... | ${vpp_hoststack_attr}[sess_v4_hopen_buckets] | | | Run keyword | ${dut}.Add session v4 halfopen table memory -| | | ... | ${vpp_hoststack_attr}[sess_v4_sess_halfopen_mem] +| | | ... | ${vpp_hoststack_attr}[sess_v4_hopen_mem] | | | Run keyword | ${dut}.Add session local endpoints table buckets -| | | ... | ${vpp_hoststack_attr}[sess_lcl_endpt_tbl_buckets] +| | | ... | ${vpp_hoststack_attr}[sess_lendpt_buckets] | | | Run keyword | ${dut}.Add session local endpoints table memory -| | | ... | ${vpp_hoststack_attr}[sess_lcl_endpt_tbl_mem] +| | | ... | ${vpp_hoststack_attr}[sess_lendpt_mem] | | END | | Apply startup configuration on all VPP DUTs @@ -339,9 +464,9 @@ | | [Documentation] | | ... | Configure IP address on the port, set it up and start the specified | | ... | HostStack test programs on the DUTs. Gather test program -| | ... | output and append test results in message. -| | ... | Return boolean indicating when no results were available from -| | ... | both the server and client test programs. +| | ... | output and append JSON formatted test data in message. +| | ... | Return boolean indicating there was a defered failure of either the +| | ... | server and/or client test programs. | | | | Set To Dictionary | ${vpp_echo_server_attr} | uri_ip4_addr | | ... | ${dut2_if1_ip4_addr} @@ -349,24 +474,68 @@ | | ... | ${dut2_if1_ip4_addr} | | Configure VPP Hoststack Attributes on all DUTs | | ${vpp_echo_server}= | Get VPP Echo Command | ${vpp_echo_server_attr} +| | ${skip_cnt}= | Evaluate +| | ... | ${CPU_CNT_SYSTEM} + ${CPU_CNT_MAIN} + ${vpp_hoststack_attr}[phy_cores] +| | ${numa}= | Get interfaces numa node | ${dut2} | ${dut2_if1} +| | ${core_list}= | Cpu list per node str | ${dut2} | ${numa} +| | ... | skip_cnt=${skip_cnt} | cpu_cnt=${vpp_echo_server_attr}[cpu_cnt] | | ${server_pid}= | Run hoststack test program on DUT | | ... | ${dut2} | ${dut2_if1} | ${dut2_if1_ip4_addr} | ${dut2_if1_ip4_prefix} -| | ... | ${vpp_echo_server_attr}[namespace] +| | ... | ${vpp_echo_server_attr}[namespace] | ${core_list} | | ... | ${vpp_echo_server_attr}[cfg_vpp_feature] | ${vpp_echo_server} | | ${vpp_echo_client}= | Get VPP Echo Command | ${vpp_echo_client_attr} +| | ${numa}= | Get interfaces numa node | ${dut1} | ${dut1_if1} +| | ${core_list}= | Cpu list per node str | ${dut1} | ${numa} +| | ... | skip_cnt=${skip_cnt} | cpu_cnt=${vpp_echo_client_attr}[cpu_cnt] | | ${client_pid}= | Run hoststack test program on DUT | | ... | ${dut1} | ${dut1_if1} | ${dut1_if1_ip4_addr} | ${dut1_if1_ip4_prefix} -| | ... | ${vpp_echo_client_attr}[namespace] +| | ... | ${vpp_echo_client_attr}[namespace] | ${core_list} | | ... | ${vpp_echo_client_attr}[cfg_vpp_feature] | ${vpp_echo_client} | | When Hoststack Test Program Finished | ${dut1} | ${client_pid} -| | ${client_no_results} | ${client_output}= +| | ${client_defer_fail} | ${client_output}= | | ... | Analyze hoststack test program output | ${dut1} | Client | | ... | ${vpp_nsim_attr} | ${vpp_echo_client} | | Then Set test message | ${client_output} | | And Hoststack Test Program Finished | ${dut2} | ${server_pid} -| | ${server_no_results} | ${server_output}= +| | ${server_defer_fail} | ${server_output}= | | ... | Analyze hoststack test program output | ${dut2} | Server | | ... | ${vpp_nsim_attr} | ${vpp_echo_server} | | Set test message | ${server_output} | append=True -| | Run Keyword And Return | No Hoststack Test Program Results -| | ... | ${server_no_results} | ${client_no_results} +| | Run Keyword And Return | Hoststack Test Program Defer Fail +| | ... | ${server_defer_fail} | ${client_defer_fail} + +| Get Test Results From Hoststack Iperf3 Test +| | [Documentation] +| | ... | Configure IP address on the port, set it up and start the specified +| | ... | HostStack test programs on the DUTs. Gather test program +| | ... | output and append JSON formatted test data in message. +| | ... | Return boolean indicating there was a defered failure of either the +| | ... | server and/or client test programs. +| | +| | 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} +| | ${skip_cnt}= | Evaluate +| | ... | ${CPU_CNT_SYSTEM} + ${CPU_CNT_MAIN} + ${vpp_hoststack_attr}[phy_cores] +| | ${numa}= | Get interfaces numa node | ${dut2} | ${dut2_if1} +| | ${core_list}= | Cpu list per node str | ${dut2} | ${numa} +| | ... | skip_cnt=${skip_cnt} | cpu_cnt=${iperf3_server_attr}[cpu_cnt] +| | ${server_pid}= | Run hoststack test program on DUT +| | ... | ${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} +| | ${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] +| | ${client_pid}= | Run hoststack test program on DUT +| | ... | ${dut1} | ${dut1_if1} | ${dut1_if1_ip4_addr} | ${dut1_if1_ip4_prefix} +| | ... | ${iperf3_client_attr}[namespace] | ${core_list} +| | ... | ${iperf3_client_attr}[cfg_vpp_feature] | ${iperf3_client} +| | When Hoststack Test Program Finished | ${dut1} | ${client_pid} +| | ${client_defer_fail} | ${client_output}= +| | ... | Analyze hoststack test program output | ${dut1} | Client +| | ... | ${vpp_nsim_attr} | ${iperf3_client} +| | Then Set test message | ${client_output} +| | Return From Keyword | ${client_defer_fail}