test suite reviews and discussions
 help / color / mirror / Atom feed
From: Xinfeng Zhao <xinfengx.zhao@intel.com>
To: dts@dpdk.org
Cc: Xinfeng Zhao <xinfengx.zhao@intel.com>
Subject: [dts] [PATCH V1 2/3] conf: modify conf file for cryptodev ipsec-gw test
Date: Tue, 27 Aug 2019 04:17:47 +0800	[thread overview]
Message-ID: <1566850668-339181-2-git-send-email-xinfengx.zhao@intel.com> (raw)
In-Reply-To: <1566850668-339181-1-git-send-email-xinfengx.zhao@intel.com>

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


  reply	other threads:[~2019-08-27  4:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-26 20:17 [dts] [PATCH V1 1/3] tests: add 3DES and null cases " Xinfeng Zhao
2019-08-26 20:17 ` Xinfeng Zhao [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1566850668-339181-2-git-send-email-xinfengx.zhao@intel.com \
    --to=xinfengx.zhao@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).