test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1 1/3] tests: add 3DES and null cases for cryptodev ipsec-gw test
@ 2019-08-26 20:17 Xinfeng Zhao
  2019-08-26 20:17 ` [dts] [PATCH V1 2/3] conf: modify conf file " Xinfeng Zhao
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Xinfeng Zhao @ 2019-08-26 20:17 UTC (permalink / raw)
  To: dts; +Cc: Xinfeng Zhao

Signed-off-by: Xinfeng Zhao <xinfengx.zhao@intel.com>
---
 tests/TestSuite_ipsec_gw_cryptodev_func.py | 146 +++++++++++++++++++++
 1 file changed, 146 insertions(+)

diff --git a/tests/TestSuite_ipsec_gw_cryptodev_func.py b/tests/TestSuite_ipsec_gw_cryptodev_func.py
index dafb085..901df6c 100644
--- a/tests/TestSuite_ipsec_gw_cryptodev_func.py
+++ b/tests/TestSuite_ipsec_gw_cryptodev_func.py
@@ -242,6 +242,19 @@ class TestIPsecGW(TestCase):
         result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
         self.verify(result, "FAIL")
 
+    def test_qat_null_ipv4_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test qat_null_ipv4_transport")
+        self.pcap_filename = "test_qat_null_ipv4_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+
     def test_qat_aes_128_cbc_ipv6_tunnel(self):
         if cc.is_test_skip(self):
             return
@@ -332,6 +345,67 @@ class TestIPsecGW(TestCase):
         result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
         self.verify(result, "FAIL")
 
+    def test_qat_null_ipv6_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test qat_null_ipv6_transport")
+        self.pcap_filename = "test_qat_null_ipv6_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+
+    def test_qat_3des_cbc_ipv4_tunnel(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test qat_3des_cbc_ipv4_tunnel")
+        self.pcap_filename = "test_qat_3des_cbc_ipv4_tunnel"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+    def test_qat_3des_cbc_ipv6_tunnel(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test qat_3des_cbc_ipv6_tunnel")
+        self.pcap_filename = "test_qat_3des_cbc_ipv6_tunnel"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+    def test_qat_3des_cbc_ipv4_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test qat_3des_cbc_ipv4_transport")
+        self.pcap_filename = "test_qat_3des_cbc_ipv4_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+    def test_qat_3des_cbc_ipv6_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test qat_3des_cbc_ipv6_transport")
+        self.pcap_filename = "test_qat_3des_cbc_ipv6_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
     def test_sw_aes_128_cbc_ipv4_tunnel(self):
         if cc.is_test_skip(self):
             return
@@ -421,6 +495,18 @@ class TestIPsecGW(TestCase):
         result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
         self.verify(result, "FAIL")
 
+    def test_sw_null_ipv4_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test sw_null_ipv4_transport")
+        self.pcap_filename = "test_sw_null_ipv4_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
     def test_sw_aes_128_cbc_ipv6_tunnel(self):
         if cc.is_test_skip(self):
             return
@@ -511,6 +597,18 @@ class TestIPsecGW(TestCase):
         result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
         self.verify(result, "FAIL")
 
+    def test_sw_null_ipv6_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test sw_null_ipv6_transport")
+        self.pcap_filename = "test_sw_null_ipv6_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
     def test_sw_aes_128_ctr_ipv4_tunnel(self):
         if cc.is_test_skip(self):
             return
@@ -559,6 +657,54 @@ class TestIPsecGW(TestCase):
         result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
         self.verify(result, "FAIL")
 
+    def test_sw_3des_cbc_ipv4_tunnel(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test sw_3des_cbc_ipv4_tunnel")
+        self.pcap_filename = "test_sw_3des_cbc_ipv4_tunnel"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+    def test_sw_3des_cbc_ipv6_tunnel(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test sw_3des_cbc_ipv6_tunnel")
+        self.pcap_filename = "test_sw_3des_cbc_ipv6_tunnel"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+    def test_sw_3des_cbc_ipv4_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test sw_3des_cbc_ipv4_transport")
+        self.pcap_filename = "test_sw_3des_cbc_ipv4_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+    def test_sw_3des_cbc_ipv6_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test sw_3des_cbc_ipv6_transport")
+        self.pcap_filename = "test_sw_3des_cbc_ipv6_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
     def _get_ipsec_gw_opt_str(self, override_ipsec_gw_opts={}):
         return cc.get_opt_str(self, self._default_ipsec_gw_opts,
                               override_ipsec_gw_opts)
-- 
2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [dts] [PATCH V1 2/3] conf: modify conf file for cryptodev ipsec-gw test
  2019-08-26 20:17 [dts] [PATCH V1 1/3] tests: add 3DES and null cases for cryptodev ipsec-gw test Xinfeng Zhao
@ 2019-08-26 20:17 ` " Xinfeng Zhao
  2019-08-26 20:17 ` [dts] [PATCH V1 3/3] tests: make ipsec lib work in " Xinfeng Zhao
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Xinfeng Zhao @ 2019-08-26 20:17 UTC (permalink / raw)
  To: dts; +Cc: Xinfeng Zhao

Signed-off-by: Xinfeng Zhao <xinfengx.zhao@intel.com>
---
 conf/{ipsec_test.cfg => ipsec_ep0.cfg} | 142 +++++---
 conf/ipsec_gw_cryptodev_func.cfg       | 446 +++++++++++++++++++++++++
 2 files changed, 550 insertions(+), 38 deletions(-)
 rename conf/{ipsec_test.cfg => ipsec_ep0.cfg} (65%)
 create mode 100644 conf/ipsec_gw_cryptodev_func.cfg

diff --git a/conf/ipsec_test.cfg b/conf/ipsec_ep0.cfg
similarity index 65%
rename from conf/ipsec_test.cfg
rename to conf/ipsec_ep0.cfg
index ea8a55d..77aa1d3 100644
--- a/conf/ipsec_test.cfg
+++ b/conf/ipsec_ep0.cfg
@@ -6,7 +6,7 @@
 #   file is the Endpoint 0 configuration. To use this configuration file,
 #   add the following command-line option:
 #
-#       -f ./ep0.cfg
+#       -f ./ipsec_ep0.cfg
 #
 ###########################################################################
 
@@ -25,6 +25,10 @@ sp ipv4 out esp protect 35 pri 1 dst 192.168.25.0/24 sport 0:65535 dport 0:65535
 sp ipv4 out esp protect 36 pri 1 dst 192.168.26.0/24 sport 0:65535 dport 0:65535
 sp ipv4 out esp protect 45 pri 1 dst 192.168.125.0/24 sport 0:65535 dport 0:65535
 sp ipv4 out esp protect 46 pri 1 dst 192.168.126.0/24 sport 0:65535 dport 0:65535
+sp ipv4 out esp protect 50 pri 1 dst 192.168.220.0/24 sport 0:65535 dport 0:65535
+sp ipv4 out esp protect 51 pri 1 dst 192.168.221.0/24 sport 0:65535 dport 0:65535
+sp ipv4 out esp protect 55 pri 1 dst 192.168.140.0/24 sport 0:65535 dport 0:65535
+sp ipv4 out esp protect 56 pri 1 dst 192.168.141.0/24 sport 0:65535 dport 0:65535
 sp ipv4 out esp bypass pri 1 dst 192.168.240.0/24 sport 0:65535 dport 0:65535
 sp ipv4 out esp bypass pri 1 dst 192.168.241.0/24 sport 0:65535 dport 0:65535
 
@@ -34,8 +38,6 @@ sp ipv4 in esp protect 110 pri 1 dst 192.168.185.0/24 sport 0:65535 dport 0:6553
 sp ipv4 in esp protect 111 pri 1 dst 192.168.186.0/24 sport 0:65535 dport 0:65535
 sp ipv4 in esp protect 115 pri 1 dst 192.168.210.0/24 sport 0:65535 dport 0:65535
 sp ipv4 in esp protect 116 pri 1 dst 192.168.211.0/24 sport 0:65535 dport 0:65535
-sp ipv4 in esp protect 115 pri 1 dst 192.168.210.0/24 sport 0:65535 dport 0:65535
-sp ipv4 in esp protect 125 pri 1 dst 192.168.65.0/24 sport 0:65535 dport 0:65535
 sp ipv4 in esp protect 125 pri 1 dst 192.168.65.0/24 sport 0:65535 dport 0:65535
 sp ipv4 in esp protect 126 pri 1 dst 192.168.66.0/24 sport 0:65535 dport 0:65535
 sp ipv4 in esp protect 130 pri 1 dst 192.168.85.0/24 sport 0:65535 dport 0:65535
@@ -44,48 +46,41 @@ sp ipv4 in esp protect 135 pri 1 dst 192.168.35.0/24 sport 0:65535 dport 0:65535
 sp ipv4 in esp protect 136 pri 1 dst 192.168.36.0/24 sport 0:65535 dport 0:65535
 sp ipv4 in esp protect 145 pri 1 dst 192.168.135.0/24 sport 0:65535 dport 0:65535
 sp ipv4 in esp protect 146 pri 1 dst 192.168.136.0/24 sport 0:65535 dport 0:65535
+sp ipv4 in esp protect 150 pri 1 dst 192.168.230.0/24 sport 0:65535 dport 0:65535
+sp ipv4 in esp protect 151 pri 1 dst 192.168.231.0/24 sport 0:65535 dport 0:65535
+sp ipv4 in esp protect 155 pri 1 dst 192.168.150.0/24 sport 0:65535 dport 0:65535
+sp ipv4 in esp protect 156 pri 1 dst 192.168.151.0/24 sport 0:65535 dport 0:65535
 sp ipv4 in esp bypass pri 1 dst 192.168.245.0/24 sport 0:65535 dport 0:65535
 sp ipv4 in esp bypass pri 1 dst 192.168.246.0/24 sport 0:65535 dport 0:65535
 
 #SP IPv6 rules
-sp ipv6 out esp protect 5 pri 1 dst 0000:1111:1111:1111:5555:5555:0000:0000/96 \
-sport 0:65535 dport 0:65535
-sp ipv6 out esp protect 6 pri 1 dst 0000:1111:1111:1111:6666:6666:0000:0000/96 \
-sport 0:65535 dport 0:65535
-sp ipv6 out esp protect 10 pri 1 dst 0000:1111:1111:1111:0000:0000:0000:0000/96 \
+sp ipv6 out esp protect 80 pri 1 dst 0000:1111:1111:1111:0000:0000:0000:0000/96 \
 sport 0:65535 dport 0:65535
-sp ipv6 out esp protect 11 pri 1 dst 0000:1111:1111:1111:1111:1111:0000:0000/96 \
+sp ipv6 out esp protect 81 pri 1 dst 0000:1111:1111:1111:1111:1111:0000:0000/96 \
 sport 0:65535 dport 0:65535
-sp ipv6 out esp protect 25 pri 1 dst 0000:1111:0000:0000:aaaa:aaaa:0000:0000/96 \
+sp ipv6 out esp protect 82 pri 1 dst 0000:1111:1111:1111:2222:2222:0000:0000/96 \
 sport 0:65535 dport 0:65535
-sp ipv6 out esp protect 26 pri 1 dst 0000:1111:0000:0000:bbbb:bbbb:0000:0000/96 \
+sp ipv6 out esp protect 83 pri 1 dst 0000:1111:1111:1111:3333:3333:0000:0000/96 \
 sport 0:65535 dport 0:65535
-sp ipv6 out esp protect 30 pri 1 dst 0000:1111:1111:1111:9999:9999:0000:0000/96 \
+sp ipv6 out esp protect 84 pri 1 dst 0000:1111:1111:1111:4444:4444:0000:0000/96 \
 sport 0:65535 dport 0:65535
-sp ipv6 out esp protect 31 pri 1 dst 0000:1111:1111:1111:aaaa:aaaa:0000:0000/96 \
-sport 0:65535 dport 0:65535
-sp ipv6 out esp protect 35 pri 1 dst 0000:1111:1111:1111:7777:7777:0000:0000/96 \
-sport 0:65535 dport 0:65535
-sp ipv6 out esp protect 36 pri 1 dst 0000:1111:1111:1111:8888:8888:0000:0000/96 \
+sp ipv6 out esp protect 85 pri 1 dst 0000:1111:1111:1111:5555:5555:0000:0000/96 \
 sport 0:65535 dport 0:65535
 
-sp ipv6 out esp protect 15 pri 1 dst ffff:1111:1111:1111:5555:5555:0000:0000/96 \
-sport 0:65535 dport 0:65535
-sp ipv6 in esp protect 16 pri 1 dst ffff:1111:1111:1111:6666:6666:0000:0000/96 \
+sp ipv6 in esp protect 180 pri 1 dst ffff:1111:1111:1111:0000:0000:0000:0000/96 \
 sport 0:65535 dport 0:65535
-sp ipv6 in esp protect 110 pri 1 dst ffff:1111:1111:1111:0000:0000:0000:0000/96 \
+sp ipv6 in esp protect 181 pri 1 dst ffff:1111:1111:1111:1111:1111:0000:0000/96 \
 sport 0:65535 dport 0:65535
-sp ipv6 in esp protect 111 pri 1 dst ffff:1111:1111:1111:1111:1111:0000:0000/96 \
+sp ipv6 in esp protect 182 pri 1 dst ffff:1111:1111:1111:2222:2222:0000:0000/96 \
 sport 0:65535 dport 0:65535
-sp ipv6 in esp protect 125 pri 1 dst ffff:1111:0000:0000:aaaa:aaaa:0000:0000/96 \
+sp ipv6 in esp protect 183 pri 1 dst ffff:1111:1111:1111:3333:3333:0000:0000/96 \
 sport 0:65535 dport 0:65535
-sp ipv6 in esp protect 126 pri 1 dst ffff:1111:0000:0000:bbbb:bbbb:0000:0000/96 \
+sp ipv6 in esp protect 184 pri 1 dst ffff:1111:1111:1111:4444:4444:0000:0000/96 \
 sport 0:65535 dport 0:65535
-sp ipv6 out esp protect 130 pri 1 dst ffff:1111:1111:1111:9999:9999:0000:0000/96 \
-sport 0:65535 dport 0:65535
-sp ipv6 out esp protect 131 pri 1 dst ffff:1111:1111:1111:aaaa:aaaa:0000:0000/96 \
+sp ipv6 in esp protect 185 pri 1 dst ffff:1111:1111:1111:5555:5555:0000:0000/96 \
 sport 0:65535 dport 0:65535
 
+
 #SA rules
 sa out 5 cipher_algo aes-128-cbc cipher_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
 auth_algo sha1-hmac auth_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
@@ -146,6 +141,20 @@ auth_algo sha1-hmac auth_key de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:
 src aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:1111 \
 dst bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:2222
 
+sa out 50 cipher_algo 3des-cbc cipher_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
+auth_algo sha1-hmac auth_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
+mode ipv4-tunnel src 172.16.1.6 dst 172.16.2.6
+
+sa out 51 cipher_algo 3des-cbc cipher_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
+auth_algo sha1-hmac auth_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 mode ipv6-tunnel \
+src aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:1111 \
+dst bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:2222
+
+sa out 55 cipher_algo 3des-cbc cipher_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
+auth_algo sha1-hmac auth_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 mode transport
+
+sa out 56 cipher_algo null auth_algo null mode transport
+
 sa in 105 cipher_algo aes-128-cbc cipher_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
 auth_algo sha1-hmac auth_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
 mode ipv4-tunnel src 172.16.2.5 dst 172.16.1.5
@@ -205,6 +214,60 @@ mode ipv6-tunnel \
 src bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:2222 \
 dst aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:1111
 
+sa in 150 cipher_algo 3des-cbc cipher_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
+auth_algo sha1-hmac auth_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
+mode ipv4-tunnel src 172.16.2.6 dst 172.16.1.6
+
+sa in 151 cipher_algo 3des-cbc cipher_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
+auth_algo sha1-hmac auth_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 mode ipv6-tunnel \
+src bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:2222 \
+dst aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:1111
+
+sa in 155 cipher_algo 3des-cbc cipher_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
+auth_algo sha1-hmac auth_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 mode transport
+
+sa in 156 cipher_algo null auth_algo null mode transport
+
+
+sa out 80 cipher_algo aes-128-cbc cipher_key a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:\
+a1:a1:a1:a1:a1 auth_algo sha1-hmac auth_key a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:\
+a1:a1:a1:a1:a1:a1:a1:a1:a1 mode transport
+
+sa out 81 aead_algo aes-128-gcm aead_key de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef \
+mode transport
+
+sa out 82 cipher_algo aes-128-ctr cipher_key de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef \
+auth_algo sha1-hmac auth_key de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef mode transport
+
+sa out 83 cipher_algo aes-256-cbc cipher_key a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:\
+a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1 \
+auth_algo sha1-hmac auth_key a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:\
+a1:a1:a1:a1:a1:a1:a1:a1:a1 mode transport
+
+sa out 84 cipher_algo 3des-cbc cipher_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
+auth_algo sha1-hmac auth_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 mode transport
+
+sa out 85 cipher_algo null auth_algo null mode transport
+
+sa in 180 cipher_algo aes-128-cbc cipher_key a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:\
+a1:a1:a1:a1:a1 auth_algo sha1-hmac auth_key a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:\
+a1:a1:a1:a1:a1:a1:a1:a1:a1 mode transport
+
+sa in 181 aead_algo aes-128-gcm aead_key de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef \
+mode transport
+
+sa in 182 cipher_algo aes-128-ctr cipher_key de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef \
+auth_algo sha1-hmac auth_key de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef \
+mode transport
+
+sa in 183 cipher_algo aes-256-cbc cipher_key a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1 \
+auth_algo sha1-hmac auth_key a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1:a1 mode transport
+
+sa in 184 cipher_algo 3des-cbc cipher_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 \
+auth_algo sha1-hmac auth_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 mode transport
+
+sa in 185 cipher_algo null auth_algo null mode transport
+
 
 #Routing rules
 rt ipv4 dst 172.16.2.5/32 port 0
@@ -230,24 +293,27 @@ rt ipv4 dst 192.168.85.0/24 port 0
 rt ipv4 dst 192.168.86.0/24 port 0
 rt ipv4 dst 192.168.135.0/24 port 0
 rt ipv4 dst 192.168.136.0/24 port 0
+rt ipv4 dst 192.168.230.0/24 port 0
+rt ipv4 dst 192.168.231.0/24 port 0
+rt ipv4 dst 192.168.150.0/24 port 0
+rt ipv4 dst 192.168.151.0/24 port 0
+rt ipv4 dst 192.168.140.0/24 port 0
+rt ipv4 dst 192.168.141.0/24 port 0
 
 rt ipv6 dst bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:2222/116 port 0
 rt ipv6 dst 8888:8888:8888:8888:8888:8888:8888:2222/116 port 0
 rt ipv6 dst 5555:5555:5555:5555:5555:5555:5555:2222/116 port 0
 rt ipv6 dst 2222:2222:2222:2222:2222:2222:2222:5555/116 port 0
 rt ipv6 dst 2222:2222:2222:2222:2222:2222:2222:6666/116 port 0
-rt ipv6 dst 0000:1111:1111:1111:8888:8888:0000:1111/116 port 0
-rt ipv6 dst 0000:1111:1111:1111:9999:9999:0000:0000/116 port 0
-rt ipv6 dst 0000:1111:1111:1111:0000:0000:0000:1111/116 port 0
-rt ipv6 dst 0000:1111:1111:1111:1111:1111:0000:1111/116 port 0
 rt ipv6 dst 0000:1111:1111:1111:0000:0000:0000:0000/116 port 0
 rt ipv6 dst 0000:1111:1111:1111:1111:1111:0000:0000/116 port 0
-rt ipv6 dst 0000:1111:1111:1111:aaaa:aaaa:0000:1111/116 port 0
-rt ipv6 dst 0000:1111:1111:1111:aaaa:aaaa:0000:0000/116 port 0
-
-rt ipv6 dst ffff:1111:0000:0000:aaaa:aaaa:0000:0000/116 port 0
-rt ipv6 dst ffff:1111:0000:0000:bbbb:bbbb:0000:0000/116 port 0
-rt ipv6 dst ffff:1111:1111:1111:5555:5555:0000:0000/116 port 0
-rt ipv6 dst ffff:1111:1111:1111:6666:6666:0000:0000/116 port 0
+rt ipv6 dst 0000:1111:1111:1111:2222:2222:0000:0000/116 port 0
+rt ipv6 dst 0000:1111:1111:1111:3333:3333:0000:0000/116 port 0
+rt ipv6 dst 0000:1111:1111:1111:4444:4444:0000:0000/116 port 0
+rt ipv6 dst 0000:1111:1111:1111:5555:5555:0000:0000/116 port 0
 rt ipv6 dst ffff:1111:1111:1111:0000:0000:0000:0000/116 port 0
 rt ipv6 dst ffff:1111:1111:1111:1111:1111:0000:0000/116 port 0
+rt ipv6 dst ffff:1111:1111:1111:2222:2222:0000:0000/116 port 0
+rt ipv6 dst ffff:1111:1111:1111:3333:3333:0000:0000/116 port 0
+rt ipv6 dst ffff:1111:1111:1111:4444:4444:0000:0000/116 port 0
+rt ipv6 dst ffff:1111:1111:1111:5555:5555:0000:0000/116 port 0
diff --git a/conf/ipsec_gw_cryptodev_func.cfg b/conf/ipsec_gw_cryptodev_func.cfg
new file mode 100644
index 0000000..b22436d
--- /dev/null
+++ b/conf/ipsec_gw_cryptodev_func.cfg
@@ -0,0 +1,446 @@
+[suite]
+# Cryptodev common options qat device id
+crypto_dev_id="37c9"
+
+# eal config
+l="9,10,11"
+socket-mem="2048,0"
+
+# enables or disables code-path that uses librte_ipsec
+librte_ipsec=False
+
+# IPsec gw app configuration
+f="/root/ipsec_ep0.cfg"
+
+[test_qat_aes_128_cbc_ipv4_tunnel]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.105.100"
+src_ip="192.168.105.200"
+expected_dst_ip="172.16.2.5"
+expected_src_ip="172.16.1.5"
+expected_spi="0x5"
+
+[test_qat_aes_128_ctr_ipv4_tunnel]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.125.100"
+src_ip="192.168.125.200"
+expected_dst_ip="172.16.2.6"
+expected_src_ip="172.16.1.6"
+expected_spi="0x2d"
+
+[test_qat_aes_256_cbc_ipv4_tunnel]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.25.100"
+src_ip="192.168.25.200"
+expected_dst_ip="172.16.2.5"
+expected_src_ip="172.16.1.5"
+expected_spi="0x23"
+
+[test_qat_aes_gcm_ipv4_tunnel]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.106.100"
+src_ip="192.168.106.200"
+expected_dst_ip="172.16.2.6"
+expected_src_ip="172.16.1.6"
+expected_spi="0x6"
+
+[test_qat_null_ipv4_tunnel]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.200.100"
+src_ip="192.168.200.200"
+expected_dst_ip="172.16.2.5"
+expected_src_ip="172.16.1.5"
+expected_spi="0xf"
+
+[test_qat_3des_cbc_ipv4_tunnel]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.220.100"
+src_ip="192.168.220.200"
+expected_dst_ip="172.16.2.6"
+expected_src_ip="172.16.1.6"
+expected_spi="0x32"
+
+[test_qat_aes_128_cbc_ipv4_transport]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.175.100"
+src_ip="192.168.175.200"
+expected_dst_ip="192.168.175.100"
+expected_src_ip="192.168.175.200"
+expected_spi="0xa"
+
+[test_qat_aes_128_ctr_ipv4_transport]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.76.100"
+src_ip="192.168.76.200"
+expected_dst_ip="192.168.76.100"
+expected_src_ip="192.168.76.200"
+expected_spi="0x1f"
+
+[test_qat_aes_256_cbc_ipv4_transport]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.26.100"
+src_ip="192.168.26.200"
+expected_dst_ip="192.168.26.100"
+expected_src_ip="192.168.26.200"
+expected_spi="0x24"
+
+[test_qat_aes_gcm_ipv4_transport]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.176.100"
+src_ip="192.168.176.200"
+expected_dst_ip="192.168.176.100"
+expected_src_ip="192.168.176.200"
+expected_spi="0xb"
+
+[test_qat_null_ipv4_transport]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.141.100"
+src_ip="192.168.141.200"
+expected_dst_ip="192.168.141.100"
+expected_src_ip="192.168.141.200"
+expected_spi="0x38"
+
+[test_qat_3des_cbc_ipv4_transport]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.140.100"
+src_ip="192.168.140.200"
+expected_dst_ip="192.168.140.100"
+expected_src_ip="192.168.140.200"
+expected_spi="0x37"
+
+[test_qat_aes_128_ctr_ipv6_tunnel]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.126.100"
+src_ip="192.168.126.200"
+expected_dst_ip="bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:2222"
+expected_src_ip="aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:1111"
+expected_spi="0x2e"
+
+[test_qat_aes_128_cbc_ipv6_tunnel]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.55.100"
+src_ip="192.168.55.200"
+expected_dst_ip="2222:2222:2222:2222:2222:2222:2222:5555"
+expected_src_ip="1111:1111:1111:1111:1111:1111:1111:5555"
+expected_spi="0x19"
+
+[test_qat_aes_256_cbc_ipv6_tunnel]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.75.100"
+src_ip="192.168.75.200"
+expected_dst_ip="8888:8888:8888:8888:8888:8888:8888:2222"
+expected_src_ip="7777:7777:7777:7777:7777:7777:7777:1111"
+expected_spi="0x1e"
+
+[test_qat_aes_gcm_ipv6_tunnel]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.56.100"
+src_ip="192.168.56.200"
+expected_dst_ip="2222:2222:2222:2222:2222:2222:2222:6666"
+expected_src_ip="1111:1111:1111:1111:1111:1111:1111:6666"
+expected_spi="0x1a"
+
+[test_qat_null_ipv6_tunnel]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.201.100"
+src_ip="192.168.201.200"
+expected_dst_ip="5555:5555:5555:5555:5555:5555:5555:2222"
+expected_src_ip="4444:4444:4444:4444:4444:4444:4444:1111"
+expected_spi="0x10"
+
+[test_qat_3des_cbc_ipv6_tunnel]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.221.100"
+src_ip="192.168.221.200"
+expected_dst_ip="bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:2222"
+expected_src_ip="aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:1111"
+expected_spi="0x33"
+
+[test_qat_aes_128_cbc_ipv6_transport]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="0000:1111:1111:1111:0000:0000:0000:0000"
+src_ip="0000:1111:1111:1111:0000:0000:0000:1111"
+expected_dst_ip="0:1111:1111:1111::"
+expected_src_ip="0:1111:1111:1111::1111"
+expected_spi="0x50"
+
+[test_qat_aes_128_ctr_ipv6_transport]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="0000:1111:1111:1111:2222:2222:0000:0000"
+src_ip="0000:1111:1111:1111:2222:2222:0000:1111"
+expected_dst_ip="0:1111:1111:1111:2222:2222::"
+expected_src_ip="0:1111:1111:1111:2222:2222:0:1111"
+expected_spi="0x52"
+
+[test_qat_aes_256_cbc_ipv6_transport]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="0000:1111:1111:1111:3333:3333:0000:0000"
+src_ip="0000:1111:1111:1111:3333:3333:0000:1111"
+expected_dst_ip="0:1111:1111:1111:3333:3333::"
+expected_src_ip="0:1111:1111:1111:3333:3333:0:1111"
+expected_spi="0x53"
+
+[test_qat_aes_gcm_ipv6_transport]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="0000:1111:1111:1111:1111:1111:0000:0000"
+src_ip="0000:1111:1111:1111:1111:1111:0000:1111"
+expected_dst_ip="0:1111:1111:1111:1111:1111::"
+expected_src_ip="0:1111:1111:1111:1111:1111:0:1111"
+expected_spi="0x51"
+
+[test_qat_null_ipv6_transport]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="0000:1111:1111:1111:5555:5555:0000:0000"
+src_ip="0000:1111:1111:1111:5555:5555:0000:1111"
+expected_dst_ip="0:1111:1111:1111:5555:5555::"
+expected_src_ip="0:1111:1111:1111:5555:5555:0:1111"
+expected_spi="0x55"
+
+[test_qat_3des_cbc_ipv6_transport]
+w="0000:1a:01.0"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="0000:1111:1111:1111:4444:4444:0000:0000"
+src_ip="0000:1111:1111:1111:4444:4444:0000:1111"
+expected_dst_ip="0:1111:1111:1111:4444:4444::"
+expected_src_ip="0:1111:1111:1111:4444:4444:0:1111"
+expected_spi="0x54"
+
+###### SW #######
+[test_sw_aes_128_cbc_ipv4_tunnel]
+vdev="crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.105.100"
+src_ip="192.168.105.200"
+expected_dst_ip="172.16.2.5"
+expected_src_ip="172.16.1.5"
+expected_spi="0x5"
+
+[test_sw_aes_128_ctr_ipv4_tunnel]
+vdev="crypto_openssl_pmd_1 --vdev=crypto_openssl_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.125.100"
+src_ip="192.168.125.200"
+expected_dst_ip="172.16.2.6"
+expected_src_ip="172.16.1.6"
+expected_spi="0x2d"
+
+[test_sw_aes_256_cbc_ipv4_tunnel]
+vdev="crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.25.100"
+src_ip="192.168.25.200"
+expected_dst_ip="172.16.2.5"
+expected_src_ip="172.16.1.5"
+expected_spi="0x23"
+
+[test_sw_aes_gcm_ipv4_tunnel]
+vdev="crypto_aesni_gcm_pmd_1 --vdev=crypto_aesni_gcm_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.106.100"
+src_ip="192.168.106.200"
+expected_dst_ip="172.16.2.6"
+expected_src_ip="172.16.1.6"
+expected_spi="0x6"
+
+[test_sw_null_ipv4_tunnel]
+vdev="crypto_null_pmd_1 --vdev=crypto_null_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.200.100"
+src_ip="192.168.200.200"
+expected_dst_ip="172.16.2.5"
+expected_src_ip="172.16.1.5"
+expected_spi="0xf"
+
+[test_sw_3des_cbc_ipv4_tunnel]
+vdev="crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.220.100"
+src_ip="192.168.220.200"
+expected_dst_ip="172.16.2.6"
+expected_src_ip="172.16.1.6"
+expected_spi="0x32"
+
+[test_sw_aes_128_cbc_ipv4_transport]
+vdev="crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.175.100"
+src_ip="192.168.175.200"
+expected_dst_ip="192.168.175.100"
+expected_src_ip="192.168.175.200"
+expected_spi="0xa"
+
+[test_sw_aes_128_ctr_ipv4_transport]
+vdev="crypto_openssl_pmd_1 --vdev=crypto_openssl_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.76.100"
+src_ip="192.168.76.200"
+expected_dst_ip="192.168.76.100"
+expected_src_ip="192.168.76.200"
+expected_spi="0x1f"
+
+[test_sw_aes_256_cbc_ipv4_transport]
+vdev="crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.26.100"
+src_ip="192.168.26.200"
+expected_dst_ip="192.168.26.100"
+expected_src_ip="192.168.26.200"
+expected_spi="0x24"
+
+[test_sw_aes_gcm_ipv4_transport]
+vdev="crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.176.100"
+src_ip="192.168.176.200"
+expected_dst_ip="192.168.176.100"
+expected_src_ip="192.168.176.200"
+expected_spi="0xb"
+
+[test_sw_null_ipv4_transport]
+vdev="crypto_null_pmd_1 --vdev=crypto_null_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.141.100"
+src_ip="192.168.141.200"
+expected_dst_ip="192.168.141.100"
+expected_src_ip="192.168.141.200"
+expected_spi="0x38"
+
+[test_sw_3des_cbc_ipv4_transport]
+vdev="crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.140.100"
+src_ip="192.168.140.200"
+expected_dst_ip="192.168.140.100"
+expected_src_ip="192.168.140.200"
+expected_spi="0x37"
+
+[test_sw_aes_128_cbc_ipv6_tunnel]
+vdev="crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.55.100"
+src_ip="192.168.55.200"
+expected_dst_ip="2222:2222:2222:2222:2222:2222:2222:5555"
+expected_src_ip="1111:1111:1111:1111:1111:1111:1111:5555"
+expected_spi="0x19"
+
+[test_sw_aes_128_ctr_ipv6_tunnel]
+vdev="crypto_openssl_pmd_1 --vdev=crypto_openssl_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.126.100"
+src_ip="192.168.126.200"
+expected_dst_ip="bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:2222"
+expected_src_ip="aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:1111"
+expected_spi="0x2e"
+
+[test_sw_aes_256_cbc_ipv6_tunnel]
+vdev="crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.75.100"
+src_ip="192.168.75.200"
+expected_dst_ip="8888:8888:8888:8888:8888:8888:8888:2222"
+expected_src_ip="7777:7777:7777:7777:7777:7777:7777:1111"
+expected_spi="0x1e"
+
+[test_sw_aes_gcm_ipv6_tunnel]
+vdev="crypto_aesni_gcm_pmd_1 --vdev=crypto_aesni_gcm_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.56.100"
+src_ip="192.168.56.200"
+expected_dst_ip="2222:2222:2222:2222:2222:2222:2222:6666"
+expected_src_ip="1111:1111:1111:1111:1111:1111:1111:6666"
+expected_spi="0x1a"
+
+[test_sw_null_ipv6_tunnel]
+vdev="crypto_null_pmd_1 --vdev=crypto_null_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.201.100"
+src_ip="192.168.201.200"
+expected_dst_ip="5555:5555:5555:5555:5555:5555:5555:2222"
+expected_src_ip="4444:4444:4444:4444:4444:4444:4444:1111"
+expected_spi="0x10"
+
+[test_sw_3des_cbc_ipv6_tunnel]
+vdev="crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="192.168.221.100"
+src_ip="192.168.221.200"
+expected_dst_ip="bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:2222"
+expected_src_ip="aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:1111"
+expected_spi="0x33"
+
+[test_sw_aes_128_cbc_ipv6_transport]
+vdev="crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="0000:1111:1111:1111:0000:0000:0000:0000"
+src_ip="0000:1111:1111:1111:0000:0000:0000:1111"
+expected_dst_ip="0:1111:1111:1111::"
+expected_src_ip="0:1111:1111:1111::1111"
+expected_spi="0x50"
+
+[test_sw_aes_128_ctr_ipv6_transport]
+vdev="crypto_openssl_pmd_1 --vdev=crypto_openssl_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="0000:1111:1111:1111:2222:2222:0000:0000"
+src_ip="0000:1111:1111:1111:2222:2222:0000:1111"
+expected_dst_ip="0:1111:1111:1111:2222:2222::"
+expected_src_ip="0:1111:1111:1111:2222:2222:0:1111"
+expected_spi="0x52"
+
+[test_sw_aes_256_cbc_ipv6_transport]
+vdev="crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="0000:1111:1111:1111:3333:3333:0000:0000"
+src_ip="0000:1111:1111:1111:3333:3333:0000:1111"
+expected_dst_ip="0:1111:1111:1111:3333:3333::"
+expected_src_ip="0:1111:1111:1111:3333:3333:0:1111"
+expected_spi="0x53"
+
+[test_sw_aes_gcm_ipv6_transport]
+vdev="crypto_aesni_gcm_pmd_1 --vdev=crypto_aesni_gcm_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="0000:1111:1111:1111:1111:1111:0000:0000"
+src_ip="0000:1111:1111:1111:1111:1111:0000:1111"
+expected_dst_ip="0:1111:1111:1111:1111:1111::"
+expected_src_ip="0:1111:1111:1111:1111:1111:0:1111"
+expected_spi="0x51"
+
+[test_sw_null_ipv6_transport]
+vdev="crypto_null_pmd_1 --vdev=crypto_null_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="0000:1111:1111:1111:5555:5555:0000:0000"
+src_ip="0000:1111:1111:1111:5555:5555:0000:1111"
+expected_dst_ip="0:1111:1111:1111:5555:5555::"
+expected_src_ip="0:1111:1111:1111:5555:5555:0:1111"
+expected_spi="0x55"
+
+[test_sw_3des_cbc_ipv6_transport]
+vdev="crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2"
+config='"(0,0,10),(1,0,11)"'
+dst_ip="0000:1111:1111:1111:4444:4444:0000:0000"
+src_ip="0000:1111:1111:1111:4444:4444:0000:1111"
+expected_dst_ip="0:1111:1111:1111:4444:4444::"
+expected_src_ip="0:1111:1111:1111:4444:4444:0:1111"
+expected_spi="0x54"
-- 
2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [dts] [PATCH V1 3/3] tests: make ipsec lib work in cryptodev ipsec-gw test
  2019-08-26 20:17 [dts] [PATCH V1 1/3] tests: add 3DES and null cases for cryptodev ipsec-gw test Xinfeng Zhao
  2019-08-26 20:17 ` [dts] [PATCH V1 2/3] conf: modify conf file " Xinfeng Zhao
@ 2019-08-26 20:17 ` " Xinfeng Zhao
  2019-08-27  4:29 ` [dts] [PATCH V1 1/3] tests: add 3DES and null cases for " Zhao, XinfengX
  2019-09-04  5:08 ` Tu, Lijuan
  3 siblings, 0 replies; 5+ messages in thread
From: Xinfeng Zhao @ 2019-08-26 20:17 UTC (permalink / raw)
  To: dts; +Cc: Xinfeng Zhao

Signed-off-by: Xinfeng Zhao <xinfengx.zhao@intel.com>
---
 tests/TestSuite_ipsec_gw_cryptodev_func.py | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/tests/TestSuite_ipsec_gw_cryptodev_func.py b/tests/TestSuite_ipsec_gw_cryptodev_func.py
index 901df6c..5b815ad 100644
--- a/tests/TestSuite_ipsec_gw_cryptodev_func.py
+++ b/tests/TestSuite_ipsec_gw_cryptodev_func.py
@@ -82,6 +82,7 @@ class TestIPsecGW(TestCase):
         out =self.dut.build_dpdk_apps("./examples/ipsec-secgw")
         self.verify("Error"not in out,"Compilation error")
         self.verify("No such"not in out,"Compilation error")
+
         self.vf_driver = self.get_suite_cfg()['vf_driver']
         cc.bind_qat_device(self, self.vf_driver)
 
@@ -89,13 +90,16 @@ class TestIPsecGW(TestCase):
             "config": None,
             "P": "",
             "p": "0x3",
-            "f": "local_conf/ipsec_test.cfg",
+            "f": "conf/ipsec_ep0.cfg",
             "u": "0x1"
         }
 
         self._pcap_idx = 0
         self.pcap_filename = ''
 
+        conf_file = r'conf/ipsec_ep0.cfg'
+        self.dut.session.copy_file_to(conf_file)
+
     def set_up(self):
         pass
 
@@ -706,6 +710,8 @@ class TestIPsecGW(TestCase):
         self.verify(result, "FAIL")
 
     def _get_ipsec_gw_opt_str(self, override_ipsec_gw_opts={}):
+        if "librte_ipsec" in self.get_suite_cfg().keys() and self.get_suite_cfg()["librte_ipsec"]:
+            override_ipsec_gw_opts={"l": ""}
         return cc.get_opt_str(self, self._default_ipsec_gw_opts,
                               override_ipsec_gw_opts)
 
@@ -728,8 +734,6 @@ class TestIPsecGW(TestCase):
         expected_dst_ip = case_cfgs["expected_dst_ip"]
         expected_src_ip = case_cfgs["expected_src_ip"]
         expected_spi = case_cfgs["expected_spi"]
-        expected_length = case_cfgs["expected_length"]
-        #expected_data = case_cfgs["expected_data"]
 
         pkt = Packet()
         if len(dst_ip)<=15:
@@ -789,13 +793,5 @@ class TestIPsecGW(TestCase):
                 result = False
                 break
 
-            pkt_len = len(payload_str)/2
-            self.logger.debug(pkt_len)
-            if pkt_len != int(expected_length):
-                self.logger.error("Packet length does not match. Pkt:{0}, Expected:{1}".format(
-                    pkt_len, expected_length))
-                result = False
-                break
-
         self.dut.kill_all()
         return result
-- 
2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dts] [PATCH V1 1/3] tests: add 3DES and null cases for cryptodev ipsec-gw test
  2019-08-26 20:17 [dts] [PATCH V1 1/3] tests: add 3DES and null cases for cryptodev ipsec-gw test Xinfeng Zhao
  2019-08-26 20:17 ` [dts] [PATCH V1 2/3] conf: modify conf file " Xinfeng Zhao
  2019-08-26 20:17 ` [dts] [PATCH V1 3/3] tests: make ipsec lib work in " Xinfeng Zhao
@ 2019-08-27  4:29 ` " Zhao, XinfengX
  2019-09-04  5:08 ` Tu, Lijuan
  3 siblings, 0 replies; 5+ messages in thread
From: Zhao, XinfengX @ 2019-08-27  4:29 UTC (permalink / raw)
  To: dts

Tested-by: Zhao, XinfengX <xinfengx.zhao@intel.com>

-----Original Message-----
From: Zhao, XinfengX 
Sent: Tuesday, August 27, 2019 4:18 AM
To: dts@dpdk.org
Cc: Zhao, XinfengX <xinfengx.zhao@intel.com>
Subject: [dts][PATCH V1 1/3] tests: add 3DES and null cases for cryptodev ipsec-gw test

Signed-off-by: Xinfeng Zhao <xinfengx.zhao@intel.com>
---
 tests/TestSuite_ipsec_gw_cryptodev_func.py | 146 +++++++++++++++++++++
 1 file changed, 146 insertions(+)

diff --git a/tests/TestSuite_ipsec_gw_cryptodev_func.py b/tests/TestSuite_ipsec_gw_cryptodev_func.py
index dafb085..901df6c 100644
--- a/tests/TestSuite_ipsec_gw_cryptodev_func.py
+++ b/tests/TestSuite_ipsec_gw_cryptodev_func.py
@@ -242,6 +242,19 @@ class TestIPsecGW(TestCase):
         result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
         self.verify(result, "FAIL")
 
+    def test_qat_null_ipv4_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test qat_null_ipv4_transport")
+        self.pcap_filename = "test_qat_null_ipv4_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+
     def test_qat_aes_128_cbc_ipv6_tunnel(self):
         if cc.is_test_skip(self):
             return
@@ -332,6 +345,67 @@ class TestIPsecGW(TestCase):
         result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
         self.verify(result, "FAIL")
 
+    def test_qat_null_ipv6_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test qat_null_ipv6_transport")
+        self.pcap_filename = "test_qat_null_ipv6_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+
+    def test_qat_3des_cbc_ipv4_tunnel(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test qat_3des_cbc_ipv4_tunnel")
+        self.pcap_filename = "test_qat_3des_cbc_ipv4_tunnel"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+    def test_qat_3des_cbc_ipv6_tunnel(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test qat_3des_cbc_ipv6_tunnel")
+        self.pcap_filename = "test_qat_3des_cbc_ipv6_tunnel"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+    def test_qat_3des_cbc_ipv4_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test qat_3des_cbc_ipv4_transport")
+        self.pcap_filename = "test_qat_3des_cbc_ipv4_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+    def test_qat_3des_cbc_ipv6_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test qat_3des_cbc_ipv6_transport")
+        self.pcap_filename = "test_qat_3des_cbc_ipv6_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
     def test_sw_aes_128_cbc_ipv4_tunnel(self):
         if cc.is_test_skip(self):
             return
@@ -421,6 +495,18 @@ class TestIPsecGW(TestCase):
         result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
         self.verify(result, "FAIL")
 
+    def test_sw_null_ipv4_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test sw_null_ipv4_transport")
+        self.pcap_filename = "test_sw_null_ipv4_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
     def test_sw_aes_128_cbc_ipv6_tunnel(self):
         if cc.is_test_skip(self):
             return
@@ -511,6 +597,18 @@ class TestIPsecGW(TestCase):
         result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
         self.verify(result, "FAIL")
 
+    def test_sw_null_ipv6_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test sw_null_ipv6_transport")
+        self.pcap_filename = "test_sw_null_ipv6_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
     def test_sw_aes_128_ctr_ipv4_tunnel(self):
         if cc.is_test_skip(self):
             return
@@ -559,6 +657,54 @@ class TestIPsecGW(TestCase):
         result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
         self.verify(result, "FAIL")
 
+    def test_sw_3des_cbc_ipv4_tunnel(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test sw_3des_cbc_ipv4_tunnel")
+        self.pcap_filename = "test_sw_3des_cbc_ipv4_tunnel"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+    def test_sw_3des_cbc_ipv6_tunnel(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test sw_3des_cbc_ipv6_tunnel")
+        self.pcap_filename = "test_sw_3des_cbc_ipv6_tunnel"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+    def test_sw_3des_cbc_ipv4_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test sw_3des_cbc_ipv4_transport")
+        self.pcap_filename = "test_sw_3des_cbc_ipv4_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
+    def test_sw_3des_cbc_ipv6_transport(self):
+        if cc.is_test_skip(self):
+            return
+
+        self.logger.info("Test sw_3des_cbc_ipv6_transport")
+        self.pcap_filename = "test_sw_3des_cbc_ipv6_transport"
+        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
+        self.logger.debug(ipsec_gw_opt_str)
+
+        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
+        self.verify(result, "FAIL")
+
     def _get_ipsec_gw_opt_str(self, override_ipsec_gw_opts={}):
         return cc.get_opt_str(self, self._default_ipsec_gw_opts,
                               override_ipsec_gw_opts)
-- 
2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dts] [PATCH V1 1/3] tests: add 3DES and null cases for cryptodev ipsec-gw test
  2019-08-26 20:17 [dts] [PATCH V1 1/3] tests: add 3DES and null cases for cryptodev ipsec-gw test Xinfeng Zhao
                   ` (2 preceding siblings ...)
  2019-08-27  4:29 ` [dts] [PATCH V1 1/3] tests: add 3DES and null cases for " Zhao, XinfengX
@ 2019-09-04  5:08 ` Tu, Lijuan
  3 siblings, 0 replies; 5+ messages in thread
From: Tu, Lijuan @ 2019-09-04  5:08 UTC (permalink / raw)
  To: Zhao, XinfengX, dts; +Cc: Zhao, XinfengX

Applied the series, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xinfeng Zhao
> Sent: Tuesday, August 27, 2019 4:18 AM
> To: dts@dpdk.org
> Cc: Zhao, XinfengX <xinfengx.zhao@intel.com>
> Subject: [dts] [PATCH V1 1/3] tests: add 3DES and null cases for cryptodev
> ipsec-gw test
> 
> Signed-off-by: Xinfeng Zhao <xinfengx.zhao@intel.com>
> ---
>  tests/TestSuite_ipsec_gw_cryptodev_func.py | 146 +++++++++++++++++++++
>  1 file changed, 146 insertions(+)
> 
> diff --git a/tests/TestSuite_ipsec_gw_cryptodev_func.py
> b/tests/TestSuite_ipsec_gw_cryptodev_func.py
> index dafb085..901df6c 100644
> --- a/tests/TestSuite_ipsec_gw_cryptodev_func.py
> +++ b/tests/TestSuite_ipsec_gw_cryptodev_func.py
> @@ -242,6 +242,19 @@ class TestIPsecGW(TestCase):
>          result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
>          self.verify(result, "FAIL")
> 
> +    def test_qat_null_ipv4_transport(self):
> +        if cc.is_test_skip(self):
> +            return
> +
> +        self.logger.info("Test qat_null_ipv4_transport")
> +        self.pcap_filename = "test_qat_null_ipv4_transport"
> +        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
> +        self.logger.debug(ipsec_gw_opt_str)
> +
> +        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
> +        self.verify(result, "FAIL")
> +
> +
>      def test_qat_aes_128_cbc_ipv6_tunnel(self):
>          if cc.is_test_skip(self):
>              return
> @@ -332,6 +345,67 @@ class TestIPsecGW(TestCase):
>          result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
>          self.verify(result, "FAIL")
> 
> +    def test_qat_null_ipv6_transport(self):
> +        if cc.is_test_skip(self):
> +            return
> +
> +        self.logger.info("Test qat_null_ipv6_transport")
> +        self.pcap_filename = "test_qat_null_ipv6_transport"
> +        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
> +        self.logger.debug(ipsec_gw_opt_str)
> +
> +        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
> +        self.verify(result, "FAIL")
> +
> +
> +    def test_qat_3des_cbc_ipv4_tunnel(self):
> +        if cc.is_test_skip(self):
> +            return
> +
> +        self.logger.info("Test qat_3des_cbc_ipv4_tunnel")
> +        self.pcap_filename = "test_qat_3des_cbc_ipv4_tunnel"
> +        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
> +        self.logger.debug(ipsec_gw_opt_str)
> +
> +        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
> +        self.verify(result, "FAIL")
> +
> +    def test_qat_3des_cbc_ipv6_tunnel(self):
> +        if cc.is_test_skip(self):
> +            return
> +
> +        self.logger.info("Test qat_3des_cbc_ipv6_tunnel")
> +        self.pcap_filename = "test_qat_3des_cbc_ipv6_tunnel"
> +        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
> +        self.logger.debug(ipsec_gw_opt_str)
> +
> +        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
> +        self.verify(result, "FAIL")
> +
> +    def test_qat_3des_cbc_ipv4_transport(self):
> +        if cc.is_test_skip(self):
> +            return
> +
> +        self.logger.info("Test qat_3des_cbc_ipv4_transport")
> +        self.pcap_filename = "test_qat_3des_cbc_ipv4_transport"
> +        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
> +        self.logger.debug(ipsec_gw_opt_str)
> +
> +        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
> +        self.verify(result, "FAIL")
> +
> +    def test_qat_3des_cbc_ipv6_transport(self):
> +        if cc.is_test_skip(self):
> +            return
> +
> +        self.logger.info("Test qat_3des_cbc_ipv6_transport")
> +        self.pcap_filename = "test_qat_3des_cbc_ipv6_transport"
> +        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
> +        self.logger.debug(ipsec_gw_opt_str)
> +
> +        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
> +        self.verify(result, "FAIL")
> +
>      def test_sw_aes_128_cbc_ipv4_tunnel(self):
>          if cc.is_test_skip(self):
>              return
> @@ -421,6 +495,18 @@ class TestIPsecGW(TestCase):
>          result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
>          self.verify(result, "FAIL")
> 
> +    def test_sw_null_ipv4_transport(self):
> +        if cc.is_test_skip(self):
> +            return
> +
> +        self.logger.info("Test sw_null_ipv4_transport")
> +        self.pcap_filename = "test_sw_null_ipv4_transport"
> +        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
> +        self.logger.debug(ipsec_gw_opt_str)
> +
> +        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
> +        self.verify(result, "FAIL")
> +
>      def test_sw_aes_128_cbc_ipv6_tunnel(self):
>          if cc.is_test_skip(self):
>              return
> @@ -511,6 +597,18 @@ class TestIPsecGW(TestCase):
>          result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
>          self.verify(result, "FAIL")
> 
> +    def test_sw_null_ipv6_transport(self):
> +        if cc.is_test_skip(self):
> +            return
> +
> +        self.logger.info("Test sw_null_ipv6_transport")
> +        self.pcap_filename = "test_sw_null_ipv6_transport"
> +        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
> +        self.logger.debug(ipsec_gw_opt_str)
> +
> +        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
> +        self.verify(result, "FAIL")
> +
>      def test_sw_aes_128_ctr_ipv4_tunnel(self):
>          if cc.is_test_skip(self):
>              return
> @@ -559,6 +657,54 @@ class TestIPsecGW(TestCase):
>          result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
>          self.verify(result, "FAIL")
> 
> +    def test_sw_3des_cbc_ipv4_tunnel(self):
> +        if cc.is_test_skip(self):
> +            return
> +
> +        self.logger.info("Test sw_3des_cbc_ipv4_tunnel")
> +        self.pcap_filename = "test_sw_3des_cbc_ipv4_tunnel"
> +        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
> +        self.logger.debug(ipsec_gw_opt_str)
> +
> +        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
> +        self.verify(result, "FAIL")
> +
> +    def test_sw_3des_cbc_ipv6_tunnel(self):
> +        if cc.is_test_skip(self):
> +            return
> +
> +        self.logger.info("Test sw_3des_cbc_ipv6_tunnel")
> +        self.pcap_filename = "test_sw_3des_cbc_ipv6_tunnel"
> +        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
> +        self.logger.debug(ipsec_gw_opt_str)
> +
> +        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
> +        self.verify(result, "FAIL")
> +
> +    def test_sw_3des_cbc_ipv4_transport(self):
> +        if cc.is_test_skip(self):
> +            return
> +
> +        self.logger.info("Test sw_3des_cbc_ipv4_transport")
> +        self.pcap_filename = "test_sw_3des_cbc_ipv4_transport"
> +        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
> +        self.logger.debug(ipsec_gw_opt_str)
> +
> +        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
> +        self.verify(result, "FAIL")
> +
> +    def test_sw_3des_cbc_ipv6_transport(self):
> +        if cc.is_test_skip(self):
> +            return
> +
> +        self.logger.info("Test sw_3des_cbc_ipv6_transport")
> +        self.pcap_filename = "test_sw_3des_cbc_ipv6_transport"
> +        ipsec_gw_opt_str = self._get_ipsec_gw_opt_str()
> +        self.logger.debug(ipsec_gw_opt_str)
> +
> +        result = self._execute_ipsec_gw_test(ipsec_gw_opt_str)
> +        self.verify(result, "FAIL")
> +
>      def _get_ipsec_gw_opt_str(self, override_ipsec_gw_opts={}):
>          return cc.get_opt_str(self, self._default_ipsec_gw_opts,
>                                override_ipsec_gw_opts)
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-26 20:17 [dts] [PATCH V1 1/3] tests: add 3DES and null cases for cryptodev ipsec-gw test Xinfeng Zhao
2019-08-26 20:17 ` [dts] [PATCH V1 2/3] conf: modify conf file " Xinfeng Zhao
2019-08-26 20:17 ` [dts] [PATCH V1 3/3] tests: make ipsec lib work in " Xinfeng Zhao
2019-08-27  4:29 ` [dts] [PATCH V1 1/3] tests: add 3DES and null cases for " Zhao, XinfengX
2019-09-04  5:08 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox