diff options
author | Yulong Pei <yulong.pei@intel.com> | 2022-08-29 02:54:04 +0000 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2022-09-30 12:07:33 +0000 |
commit | 9a623fd42926953084fec7661ced7e7367f010a2 (patch) | |
tree | 99f660e9fa19987bf3b6f5f48b3b72fbd31390dc /resources/libraries/robot | |
parent | f9ec970b705c0ed0b79225503bd8647d191dc731 (diff) |
Add VPP wireguard async mode test suite
Add VPP wireguard async mode test suite to use QAT device for crypto.
Also change keyword ipsechw to cryptohw in suite_setup.robot since currently
crypto device is not only used by IPSec.
Signed-off-by: Yulong Pei <yulong.pei@intel.com>
Signed-off-by: xinfeng zhao <xinfengx.zhao@intel.com>
Change-Id: Ibdadb3b09c04b7181415ffd4a248abddc6289075
(cherry picked from commit 7df86999bfaee9e5a0fa0c8ee6f5bc897343de9a)
Diffstat (limited to 'resources/libraries/robot')
-rw-r--r-- | resources/libraries/robot/shared/suite_setup.robot | 3 | ||||
-rw-r--r-- | resources/libraries/robot/wireguard/wireguard.robot | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/resources/libraries/robot/shared/suite_setup.robot b/resources/libraries/robot/shared/suite_setup.robot index c01233ce05..48845708ad 100644 --- a/resources/libraries/robot/shared/suite_setup.robot +++ b/resources/libraries/robot/shared/suite_setup.robot @@ -271,13 +271,14 @@ | | ${version} = | Get iPerf Version | ${nodes}[TG] | | Export TG Type And Version | ${type} | ${version} -| Additional Suite Setup Action For ipsechw +| Additional Suite Setup Action For cryptohw | | [Documentation] | | ... | Additional Setup for suites which uses QAT HW. | | | | ${numvfs}= | Set Variable If | | ... | '${crypto_type}' == 'HW_DH895xcc' | ${32} | | ... | '${crypto_type}' == 'HW_C3xxx' | ${16} +| | ... | '${crypto_type}' == 'HW_C4xxx' | ${128} | | Configure crypto device on all DUTs | ${crypto_type} | numvfs=${numvfs} | | ... | force_init=${True} | | Configure kernel module on all DUTs | vfio_pci | force_load=${True} diff --git a/resources/libraries/robot/wireguard/wireguard.robot b/resources/libraries/robot/wireguard/wireguard.robot index ca794d0c36..f85c0eb7b1 100644 --- a/resources/libraries/robot/wireguard/wireguard.robot +++ b/resources/libraries/robot/wireguard/wireguard.robot @@ -56,3 +56,11 @@ | | ... | interface=${DUT1_${int}1}[0] | | Vpp Route Add | ${dut2} | ${raddr_ip4} | 8 | gateway=${tg_if2_ip4} | | ... | interface=${DUT2_${int}2}[0] + +| VPP Enable Wireguard Async Mode on all VPP DUTs +| | [Documentation] +| | ... | Enable wireguard async mode on all DUT nodes. +| | +| | FOR | ${dut} | IN | @{duts} +| | | VPP Wireguard Set Async Mode | ${nodes['${dut}']} +| | END |