X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fperformance%2Fperformance_setup.robot;h=9350c65beb9f85182cd4ef79006543e30838b052;hp=11ce560fd6771dbee58bbe1c937f3c9c5f63ff7f;hb=2732350ff44a68fe34d7703682ea9339944f1459;hpb=5e6145a4260ffce1c302e94b9b241851f90838e1 diff --git a/resources/libraries/robot/performance/performance_setup.robot b/resources/libraries/robot/performance/performance_setup.robot index 11ce560fd6..9350c65beb 100644 --- a/resources/libraries/robot/performance/performance_setup.robot +++ b/resources/libraries/robot/performance/performance_setup.robot @@ -240,19 +240,19 @@ | | ... | argument. Initializes traffic generator. | | ... | | ... | *Arguments:* -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - osi_layer - OSI Layer type to initialize TG with. Type: string | | ... | - nic_name - Interface model. Type: string | | ... | | ... | *Example:* | | ... | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \| | | ... -| | [Arguments] | ${traffic_profile} | ${nic_name} +| | [Arguments] | ${osi_layer} | ${nic_name} | | ... | | Set variables in 2-node circular topology with DUT interface model | | ... | ${nic_name} | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2} -| | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${traffic_profile} +| | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${osi_layer} | Set up 2-node-switched performance topology with DUT's NIC model | | [Documentation] @@ -262,7 +262,7 @@ | | ... | argument. Initializes traffic generator. | | ... | | ... | *Arguments:* -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - osi_layer - OSI Layer type to initialize TG with. Type: string | | ... | - nic_name - Interface model. Type: string | | ... | - tg_if1_dest_mac - Interface 1 destination MAC address. Type: string | | ... | - tg_if2_dest_mac - Interface 2 destination MAC address. Type: string @@ -272,13 +272,13 @@ | | ... | \| 2-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \ | | ... | \| 22:22:33:44:55:66 \| 22:22:33:44:55:55 \| | | ... -| | [Arguments] | ${traffic_profile} | ${nic_name} | ${tg_if1_dest_mac} +| | [Arguments] | ${osi_layer} | ${nic_name} | ${tg_if1_dest_mac} | | ... | ${tg_if2_dest_mac} | | ... | | Set variables in 2-node circular topology with DUT interface model | | ... | ${nic_name} | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2} -| | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${traffic_profile} +| | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${osi_layer} | | ... | ${tg_if1_dest_mac} | ${tg_if2_dest_mac} | Set up 3-node performance topology with DUT's NIC model @@ -289,7 +289,7 @@ | | ... | argument. Initializes traffic generator. | | ... | | ... | *Arguments:* -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - osi_layer - OSI Layer type to initialize TG with. Type: string | | ... | - nic_name - Interface model. Type: string | | ... | | ... | *Example:* @@ -297,12 +297,12 @@ | | ... | \| Set up 3-node performance topology with DUT's NIC model \| L2 \ | | ... | \| Intel-X520-DA2 \| | | ... -| | [Arguments] | ${traffic_profile} | ${nic_name} +| | [Arguments] | ${osi_layer} | ${nic_name} | | ... | | Set variables in 3-node circular topology with DUT interface model | | ... | ${nic_name} | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2} -| | ... | ${dut1} | ${dut1_if1} | ${dut2} | ${dut2_if2} | ${traffic_profile} +| | ... | ${dut1} | ${dut1_if1} | ${dut2} | ${dut2_if2} | ${osi_layer} | Set up 3-node performance topology with DUT's NIC model with double link between DUTs | | [Documentation] @@ -312,7 +312,7 @@ | | ... | argument. Initializes traffic generator. | | ... | | ... | *Arguments:* -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - osi_layer - OSI Layer type to initialize TG with. Type: string | | ... | - nic_name - Interface model. Type: string | | ... | | ... | *Example:* @@ -320,12 +320,12 @@ | | ... | \| Set up 3-node performance topology with DUT's NIC model with \ | | ... | double link between DUTs \| L2 \| Intel-X520-DA2 \| | | ... -| | [Arguments] | ${traffic_profile} | ${nic_name} +| | [Arguments] | ${osi_layer} | ${nic_name} | | ... | | Set variables in 3-node circular topology with DUT interface model with double link between DUTs | | ... | ${nic_name} | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2} -| | ... | ${dut1} | ${dut1_if1} | ${dut2} | ${dut2_if2} | ${traffic_profile} +| | ... | ${dut1} | ${dut1_if1} | ${dut2} | ${dut2_if2} | ${osi_layer} | Set up DPDK 2-node performance topology with DUT's NIC model | | [Documentation] @@ -335,7 +335,7 @@ | | ... | environment. | | ... | | ... | *Arguments:* -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - osi_layer - OSI Layer type to initialize TG with. Type: string | | ... | - nic_name - Interface model. Type: string | | ... | | ... | *Example:* @@ -343,12 +343,12 @@ | | ... | \| Set up DPDK 2-node performance topology with DUT's NIC model \ | | ... | \| L2 \| Intel-X520-DA2 \| | | ... -| | [Arguments] | ${traffic_profile} | ${nic_name} +| | [Arguments] | ${osi_layer} | ${nic_name} | | ... | | Set variables in 2-node circular topology with DUT interface model | | ... | ${nic_name} | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2} -| | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${traffic_profile} +| | ... | ${dut1} | ${dut1_if1} | ${dut1} | ${dut1_if2} | ${osi_layer} | | Initialize DPDK Environment | ${dut1} | ${dut1_if1} | ${dut1_if2} | Set up DPDK 3-node performance topology with DUT's NIC model @@ -359,19 +359,19 @@ | | ... | environment. | | ... | | ... | *Arguments:* -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - osi_layer - OSI Layer type to initialize TG with. Type: string | | ... | - nic_name - Interface model. Type: string | | ... | | ... | *Example:* | | ... | | ... | \| 3-node Performance Suite Setup \| L2 \| Intel-X520-DA2 \| | | ... -| | [Arguments] | ${traffic_profile} | ${nic_name} +| | [Arguments] | ${osi_layer} | ${nic_name} | | ... | | Set variables in 3-node circular topology with DUT interface model | | ... | ${nic_name} | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2} -| | ... | ${dut1} | ${dut1_if1} | ${dut2} | ${dut2_if2} | ${traffic_profile} +| | ... | ${dut1} | ${dut1_if1} | ${dut2} | ${dut2_if2} | ${osi_layer} | | Initialize DPDK Environment | ${dut1} | ${dut1_if1} | ${dut1_if2} | | Initialize DPDK Environment | ${dut2} | ${dut2_if1} | ${dut2_if2} @@ -384,7 +384,7 @@ | | ... | It configures PCI device with VFs on all DUTs. | | ... | | ... | *Arguments:* -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - osi_layer - OSI Layer type to initialize TG with. Type: string | | ... | - nic_name - Interface model. Type: string | | ... | - vf_driver - Virtual function driver. Type: string | | ... | - numvfs - Number of VFs. Type: integer @@ -394,17 +394,17 @@ | | ... | \| Set up SRIOV 2-node performance topology with DUT's NIC model \ | | ... | \| L2 \| Intel-X520-DA2 \| AVF \| | | ... -| | [Arguments] | ${traffic_profile} | ${nic_name} | ${vf_driver} +| | [Arguments] | ${osi_layer} | ${nic_name} | ${vf_driver} | | ... | ${numvfs}=${1} | | ... | | Set variables in 2-node circular topology with DUT interface model | | ... | ${nic_name} | | Run Keyword If | '${vf_driver}' == 'AVF' | | ... | Configure AVF interfaces on all DUTs | numvfs=${numvfs} -| | ... | traffic_profile=${traffic_profile} +| | ... | osi_layer=${osi_layer} | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2} | | ... | ${dut1} | ${dut1_if1_vf0} | ${dut1} | ${dut1_if2_vf0} -| | ... | ${traffic_profile} +| | ... | ${osi_layer} | Set up SRIOV 3-node performance topology with DUT's NIC model | | [Documentation] @@ -415,7 +415,7 @@ | | ... | It configures PCI device with VFs on all DUTs. | | ... | | ... | *Arguments:* -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - osi_layer - OSI Layer type to initialize TG with. Type: string | | ... | - nic_name - Interface model. Type: string | | ... | - vf_driver - Virtual function driver. Type: string | | ... | - numvfs - Number of VFs. Type: integer @@ -425,17 +425,17 @@ | | ... | \| Set up SRIOV 3-node performance topology with DUT's NIC model \ | | ... | \| L2 \| Intel-X520-DA2 \| AVF \| | | ... -| | [Arguments] | ${traffic_profile} | ${nic_name} | ${vf_driver} +| | [Arguments] | ${osi_layer} | ${nic_name} | ${vf_driver} | | ... | ${numvfs}=${1} | | ... | | Set variables in 3-node circular topology with DUT interface model | | ... | ${nic_name} | | Run Keyword If | '${vf_driver}' == 'AVF' | | ... | Configure AVF interfaces on all DUTs | numvfs=${numvfs} -| | ... | traffic_profile=${traffic_profile} +| | ... | osi_layer=${osi_layer} | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2} | | ... | ${dut1} | ${dut1_if1_vf0} | ${dut2} | ${dut2_if2_vf0} -| | ... | ${traffic_profile} +| | ... | ${osi_layer} | Set up IPSec performance test suite | | [Documentation] @@ -448,7 +448,7 @@ | | ... | TODO CSIT-1481: Crypto HW should be read from topology file instead. | | ... | | ... | *Arguments:* -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - osi_layer - OSI Layer type to initialize TG with. Type: string | | ... | - nic_name - Interface model. Type: string | | ... | - crypto_type - Crypto device type - HW_DH895xcc or HW_C3xxx or | | ... | SW_cryptodev. Type: string, default value: HW_DH895xcc @@ -458,10 +458,10 @@ | | ... | \| Set up IPSec performance test suite \| L2 \ | | ... | \| Intel-X520-DA2 \| HW_DH895xcc \| | | ... -| | [Arguments] | ${traffic_profile} | ${nic_name} | ${crypto_type}=HW_DH895xcc +| | [Arguments] | ${osi_layer} | ${nic_name} | ${crypto_type}=HW_DH895xcc | | ... | | Set up 3-node performance topology with DUT's NIC model -| | ... | ${traffic_profile} | ${nic_name} +| | ... | ${osi_layer} | ${nic_name} | | Return From Keyword If | '${crypto_type}' == 'SW_cryptodev' | | ${numvfs}= | Set Variable If | | ... | '${crypto_type}' == 'HW_DH895xcc' | ${32} @@ -526,6 +526,15 @@ | | Set Suite Variable | @{plugins_to_enable} | | Append To List | ${plugins_to_enable} | lacp_plugin.so +| Set up performance test suite with crypto ipsecmb +| | [Documentation] +| | ... | Append crypto_ipsecmb_plugin.so to the list of enabled plugins. +| | ... +| | Set Suite Variable | @{plugins_to_enable} +| | Append To List | ${plugins_to_enable} | crypto_ia32_plugin.so +| | Append To List | ${plugins_to_enable} | crypto_ipsecmb_plugin.so +| | Append To List | ${plugins_to_enable} | crypto_openssl_plugin.so + | Set up 3-node performance topology with wrk and DUT's NIC model | | [Documentation] | | ... | Suite preparation phase that sets the default startup configuration of @@ -645,7 +654,8 @@ | | Configure VPP in all '${container_group}' containers | | Stop VPP service on all DUTs | ${nodes} | | Start VPP in all '${container_group}' containers -| | Start VPP service on all DUTs | ${nodes} +| | Restart VPP service on all DUTs | ${nodes} +| | Verify VPP on all DUTs | ${nodes} | | Append To List | ${container_groups} | ${container_group} # Tests teardowns @@ -663,7 +673,7 @@ | | ... | | ... | *Test Variables needed:* | | ... | - frame_size - L2 Frame Size [B]. Type: integer -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - traffic_profile - Profile name to run debug trial with. Type: string | | ... | - nodes - Parsed information object. Type: dict | | ... | | ... | *Example:* @@ -675,7 +685,6 @@ | | Show PAPI History On All DUTs | ${nodes} | | Get Core Files on All Nodes | ${nodes} | | Set Test Variable | ${pkt_trace} | ${True} -| | Show statistics on all DUTs | ${nodes} | | Run Keyword If Test Failed | | ... | Traffic should pass with no loss | ${perf_trial_duration} | 10000pps | | ... | ${frame_size} | ${traffic_profile} | fail_on_loss=${False} @@ -703,7 +712,7 @@ | | ... | | ... | *Test Variables needed:* | | ... | - frame_size - L2 Frame Size [B]. Type: integer -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - traffic_profile - Profile name to run debug trial with. Type: string | | ... | | ... | *Arguments:* | | ... | - dut1_node - Node where to clean qemu. Type: dictionary @@ -733,7 +742,7 @@ | | ... | | ... | *Test Variables needed:* | | ... | - frame_size - L2 Frame Size [B]. Type: integer -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - traffic_profile - Profile name to run debug trial with. Type: string | | ... | | ... | *Arguments:* | | ... | - dut1_node - Node where to clean qemu. Type: dictionary @@ -780,7 +789,7 @@ | | ... | | ... | *Test Variables needed:* | | ... | - frame_size - L2 Frame Size [B]. Type: integer -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - traffic_profile - Profile name to run debug trial with. Type: string | | ... | | ... | *Example:* | | ... @@ -796,7 +805,7 @@ | | ... | | ... | *Test Variables needed:* | | ... | - frame_size - L2 Frame Size [B]. Type: integer -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - traffic_profile - Profile name to run debug trial with. Type: string | | ... | | ... | *Example:* | | ... @@ -813,7 +822,7 @@ | | ... | | ... | *Test Variables needed:* | | ... | - frame_size - L2 Frame Size [B]. Type: integer -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - traffic_profile - Profile name to run debug trial with. Type: string | | ... | | ... | *Example:* | | ... @@ -843,7 +852,7 @@ | | ... | | ... | *Test Variables needed:* | | ... | - frame_size - L2 Frame Size [B]. Type: integer -| | ... | - traffic_profile - Profile name to initialize TG with. Type: string +| | ... | - traffic_profile - Profile name to run debug trial with. Type: string | | ... | | ... | *Example:* | | ...