From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9401AA0613 for ; Tue, 27 Aug 2019 06:28:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7E9721C06A; Tue, 27 Aug 2019 06:28:19 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id CD5E01C06A for ; Tue, 27 Aug 2019 06:28:17 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Aug 2019 21:28:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,435,1559545200"; d="scan'208";a="192035589" Received: from dpdk-xinfengx-dut242.sh.intel.com ([10.67.116.235]) by orsmga002.jf.intel.com with ESMTP; 26 Aug 2019 21:28:15 -0700 From: Xinfeng Zhao To: dts@dpdk.org Cc: Xinfeng Zhao Date: Tue, 27 Aug 2019 04:17:47 +0800 Message-Id: <1566850668-339181-2-git-send-email-xinfengx.zhao@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566850668-339181-1-git-send-email-xinfengx.zhao@intel.com> References: <1566850668-339181-1-git-send-email-xinfengx.zhao@intel.com> Subject: [dts] [PATCH V1 2/3] conf: modify conf file for cryptodev ipsec-gw test X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: Xinfeng Zhao --- 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