aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/robot
diff options
context:
space:
mode:
authorYulong Pei <yulong.pei@intel.com>2022-08-29 02:54:04 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2022-09-30 12:07:09 +0000
commit7df86999bfaee9e5a0fa0c8ee6f5bc897343de9a (patch)
tree8f8a54fee7f52b3633579bd62353abb48fd623d4 /resources/libraries/robot
parent73354f8561599422a955a7ba5283968910d633f5 (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
Diffstat (limited to 'resources/libraries/robot')
-rw-r--r--resources/libraries/robot/shared/suite_setup.robot3
-rw-r--r--resources/libraries/robot/wireguard/wireguard.robot8
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