From ae652334356c12b167399a340ad55abd1ef7bbce Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Thu, 2 Jan 2020 13:25:01 +0000 Subject: Vhost: Add GSO option Signed-off-by: Peter Mikus Change-Id: Iba9af71c293645b480203af72fcf940cbe9ccb3a --- resources/libraries/robot/shared/interfaces.robot | 17 +++++++++++++---- resources/libraries/robot/shared/vm.robot | 6 ++++-- 2 files changed, 17 insertions(+), 6 deletions(-) (limited to 'resources/libraries/robot/shared') diff --git a/resources/libraries/robot/shared/interfaces.robot b/resources/libraries/robot/shared/interfaces.robot index a3490a8b17..dd6ee56a05 100644 --- a/resources/libraries/robot/shared/interfaces.robot +++ b/resources/libraries/robot/shared/interfaces.robot @@ -555,6 +555,10 @@ | | ... | Type: string | | ... | - ${vhost_if2} - Name of the second Vhost-User interface (Optional). | | ... | Type: string +| | ... | - ${is_server} - Server side of connection (Optional). +| | ... | Type: boolean +| | ... | - ${enable_gso} - Generic segmentation offloading (Optional). +| | ... | Type: boolean | | | | ... | _NOTE:_ This KW sets following test case variable: | | ... | - ${${vhost_if1}} - First Vhost-User interface. @@ -569,10 +573,15 @@ | | ... | \| dut2_vhost_if2 \| | | | | [Arguments] | ${dut_node} | ${sock1} | ${sock2} | ${vhost_if1}=vhost_if1 -| | ... | ${vhost_if2}=vhost_if2 -| | -| | ${vhost_1}= | Vpp Create Vhost User Interface | ${dut_node} | ${sock1} -| | ${vhost_2}= | Vpp Create Vhost User Interface | ${dut_node} | ${sock2} +| | ... | ${vhost_if2}=vhost_if2 | ${is_server}=${False} +| | ... | ${enable_gso}=${False} +| | +| | ${vhost_1}= | Vpp Create Vhost User Interface +| | ... | ${dut_node} | ${sock1} | is_server=${is_server} +| | ... | enable_gso=${enable_gso} +| | ${vhost_2}= | Vpp Create Vhost User Interface +| | ... | ${dut_node} | ${sock2} | is_server=${is_server} +| | ... | enable_gso=${enable_gso} | | ${vhost_1_key}= | Get Interface By SW Index | ${dut_node} | ${vhost_1} | | ${vhost_2_key}= | Get Interface By SW Index | ${dut_node} | ${vhost_2} | | ${vhost_1_mac}= | Get Interface MAC | ${dut_node} | ${vhost_1_key} diff --git a/resources/libraries/robot/shared/vm.robot b/resources/libraries/robot/shared/vm.robot index bdb1964bd3..b0fe5cf457 100644 --- a/resources/libraries/robot/shared/vm.robot +++ b/resources/libraries/robot/shared/vm.robot @@ -52,7 +52,8 @@ | | ... | auto_scale=${auto_scale} | vnf=${vnf} | | ... | tg_if1_mac=${tg_if1_mac} | tg_if2_mac=${tg_if2_mac} | | ... | vs_dtc=${cpu_count_int} | nf_dtc=${nf_dtc} | nf_dtcr=${nf_dtcr} -| | ... | rxq_count_int=${rxq_count_int} +| | ... | rxq_count_int=${rxq_count_int} | enable_csum=${False} +| | ... | enable_gso=${False} | | Run Keyword | vnf_manager.Start All VMs | pinning=${pinning} | | All VPP Interfaces Ready Wait | ${nodes} | retries=${300} | | VPP round robin RX placement on all DUTs | ${nodes} | prefix=Virtual @@ -97,7 +98,8 @@ | | ... | auto_scale=${auto_scale} | vnf=${vnf} | | ... | tg_if1_mac=${tg_if1_mac} | tg_if2_mac=${tg_if2_mac} | | ... | vs_dtc=${cpu_count_int} | nf_dtc=${nf_dtc} | nf_dtcr=${nf_dtcr} -| | ... | rxq_count_int=${rxq_count_int} +| | ... | rxq_count_int=${rxq_count_int} | enable_csum=${False} +| | ... | enable_gso=${False} | | Run Keyword | vnf_manager.Start All VMs | pinning=${pinning} | | All VPP Interfaces Ready Wait | ${nodes} | retries=${300} | | VPP round robin RX placement on all DUTs | ${nodes} | prefix=Virtual -- cgit 1.2.3-korg