diff options
author | Yulong Pei <yulong.pei@intel.com> | 2023-01-13 07:06:00 +0000 |
---|---|---|
committer | Vratko Polak <vrpolak@cisco.com> | 2023-01-19 09:45:09 +0000 |
commit | 67db3c27d64846b1c450a5daea05f2554b6dbea1 (patch) | |
tree | 317be8bb5e25a2e7a77de6a6e89f6dd32a35b2fd /resources/libraries | |
parent | 5fe8f285dcebaa24ade6a2b4ef117e3a8e62a398 (diff) |
Add 40k tunnels ipsec policy mode with fastpath enabled test suite
In order to compare performance number with existed routing based ipip
interface mode 40k tunnels ipsec test.
Signed-off-by: xinfeng zhao <xinfengx.zhao@intel.com>
Signed-off-by: Yulong Pei <yulong.pei@intel.com>
Change-Id: I94816a8c18f08b539114d6ca9d4e1218a2b6ea5f
Diffstat (limited to 'resources/libraries')
-rw-r--r-- | resources/libraries/python/VppConfigGenerator.py | 12 | ||||
-rw-r--r-- | resources/libraries/robot/crypto/ipsec.robot | 5 |
2 files changed, 11 insertions, 6 deletions
diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py index dc1529033b..4fd28ffb8a 100644 --- a/resources/libraries/python/VppConfigGenerator.py +++ b/resources/libraries/python/VppConfigGenerator.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Cisco and/or its affiliates. +# Copyright (c) 2023 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -433,10 +433,14 @@ class VppConfigGenerator: path = [u"ip6", u"heap-size"] self.add_config_item(self._nodeconfig, value, path) - def add_spd_flow_cache_ipv4_outbound(self): - """Add SPD flow cache for IP4 outbound traffic""" + def add_ipsec_spd_flow_cache_ipv4_outbound(self, value): + """Add IPsec spd flow cache for IP4 outbound. + + :param value: "on" to enable spd flow cache. + :type value: str + """ path = [u"ipsec", u"ipv4-outbound-spd-flow-cache"] - self.add_config_item(self._nodeconfig, "on", path) + self.add_config_item(self._nodeconfig, value, path) def add_ipsec_spd_fast_path_ipv4_outbound(self, value): """Add IPsec spd fast path for IP4 outbound. diff --git a/resources/libraries/robot/crypto/ipsec.robot b/resources/libraries/robot/crypto/ipsec.robot index 52a0e5fb66..d03f662994 100644 --- a/resources/libraries/robot/crypto/ipsec.robot +++ b/resources/libraries/robot/crypto/ipsec.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Cisco and/or its affiliates. +# Copyright (c) 2023 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -249,7 +249,7 @@ | | ... | Enable IPv4 Outbound SPD flow cache in VPP configuration file. | | | | FOR | ${dut} | IN | @{duts} -| | | Run Keyword | ${dut}.Add SPD Flow Cache IPv4 Outbound +| | | Run Keyword | ${dut}.Add IPsec SPD Flow cache IPv4 Outbound | on | | END | Enable IPsec SPD Fast Path IPv4 Outbound @@ -262,6 +262,7 @@ | | [Arguments] | ${value} | | | | FOR | ${dut} | IN | @{duts} +| | | Run Keyword | ${dut}.Add IPsec SPD Flow cache IPv4 Outbound | off | | | Run Keyword | ${dut}.Add IPsec SPD Fast Path IPv4 Outbound | on | | | Run Keyword | ${dut}.Add IPsec SPD Fast Path Num Buckets | ${value} | | END |