From 12bf78f5a47ac4490a207c3dc4f4d689b09835e3 Mon Sep 17 00:00:00 2001 From: Juraj Linkeš Date: Thu, 24 Jun 2021 18:00:02 +0200 Subject: IPsec: add nth SPD entry outbound flow cache TCs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add 1, 10, 100 and 1000 SPD entries using IPv4 outbound flow cache optimization. Change-Id: I7abb65a82454c17ef754cb11386186610f0c27e8 Signed-off-by: Juraj Linkeš --- resources/libraries/python/VppConfigGenerator.py | 5 +++++ resources/libraries/robot/crypto/ipsec.robot | 7 +++++++ 2 files changed, 12 insertions(+) (limited to 'resources') 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 -- cgit 1.2.3-korg