diff options
author | Juraj Linkeš <juraj.linkes@pantheon.tech> | 2021-06-24 18:00:02 +0200 |
---|---|---|
committer | Juraj Linke? <juraj.linkes@pantheon.tech> | 2021-10-25 09:06:38 +0000 |
commit | 12bf78f5a47ac4490a207c3dc4f4d689b09835e3 (patch) | |
tree | 4e65c7f94ec0e266d2d19543ce5fda77dc45ad67 /resources/libraries | |
parent | eac16f638b0363a7351480405a372fde005422f0 (diff) |
IPsec: add nth SPD entry outbound flow cache TCs
Add 1, 10, 100 and 1000 SPD entries using IPv4 outbound flow cache
optimization.
Change-Id: I7abb65a82454c17ef754cb11386186610f0c27e8
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
Diffstat (limited to 'resources/libraries')
-rw-r--r-- | resources/libraries/python/VppConfigGenerator.py | 5 | ||||
-rw-r--r-- | resources/libraries/robot/crypto/ipsec.robot | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py index b5f36c69a0..4943c1aae6 100644 --- a/resources/libraries/python/VppConfigGenerator.py +++ b/resources/libraries/python/VppConfigGenerator.py @@ -456,6 +456,11 @@ 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""" + path = [u"ipsec", u"ipv4-outbound-spd-flow-cache"] + self.add_config_item(self._nodeconfig, "on", path) + def add_statseg_size(self, value): """Add Stats Heap Size configuration. diff --git a/resources/libraries/robot/crypto/ipsec.robot b/resources/libraries/robot/crypto/ipsec.robot index 2990b844d3..8be8230c3d 100644 --- a/resources/libraries/robot/crypto/ipsec.robot +++ b/resources/libraries/robot/crypto/ipsec.robot @@ -243,3 +243,10 @@ | | ... | ${nodes} | prefix=${EMPTY} | workers=${cpu_dp} | | VPP IPSec Crypto SW Scheduler Set Worker on all DUTs | | ... | ${nodes} | workers=${cpu_dp} | crypto_enable=${False} + +| Enable SPD flow cache IPv4 Outbound +| | [Documentation] +| | ... | Enable IPv4 Outbound SPD flow cache in VPP configuration file. +| | +| | FOR | ${dut} | IN | @{duts} +| | | Run Keyword | ${dut}.Add SPD Flow Cache IPv4 Outbound |