test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] add cryptodev new ipsec-gw config
@ 2019-04-16  9:10 xuyanjie
  0 siblings, 0 replies; only message in thread
From: xuyanjie @ 2019-04-16  9:10 UTC (permalink / raw)
  To: dts; +Cc: xuyanjie

Signed-off-by: xuyanjie <yanjie.xu@intel.com>

diff --git a/conf/cryptodev_new_ipsec-gw.cfg b/conf/cryptodev_new_ipsec-gw.cfg
new file mode 100644
index 0000000..ecd26f7
--- /dev/null
+++ b/conf/cryptodev_new_ipsec-gw.cfg
@@ -0,0 +1,472 @@
+[suite]
+# Cryptodev common options qat device id and sw lib path
+crypto_dev_id=37c9
+aesni_mb_path=/root/ipsec_048/code/
+#snow3g_lib_path=/root/libsso_snow3g/snow3g/
+#zuc_lib_path=/root/libsso_zuc.1.0.1.1-8/zuc
+#kasumi_lib_path=/root/LibSSO_0_3_1/isg_cid-wireless_libs/ciphers/kasumi/
+#build_skip=Y
+
+# eal config
+l=9,10,11
+socket-mem=2048,2048 --legacy-mem
+n=6
+
+# default crypto device and sw device config, it could be overrided by test case
+#w=0000:03:00.0 -w 0000:03:00.2 -w 0000:b5:01.0
+#vdev=crypto_aesni_mb_pmd_1
+
+# IPsec gw app configuration
+f=/root/dts/conf/new_ipsec_test.cfg
+
+[test_tun_qat_aes_128_cbc_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=316
+
+[test_tun_qat_aes_128_ctr_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=308
+
+[test_tun_qat_aes_256_cbc_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=316
+
+[test_tun_qat_aes_gcm_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=312
+
+[test_tun_qat_null_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=288
+
+[test_trs_qat_aes_128_cbc_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=300
+
+[test_trs_qat_aes_128_ctr_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=292
+
+[test_trs_qat_aes_256_cbc_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=300
+
+[test_trs_qat_aes_gcm_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=292
+
+[test_tun_qat_aes_128_ctr_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=308
+
+[test_tun_qat_aes_128_cbc_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=316
+
+[test_tun_qat_aes_256_cbc_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=316
+
+[test_tun_qat_aes_gcm_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=312
+
+[test_tun_qat_null_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=288
+
+[test_trs_qat_aes_128_cbc_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+dst_ip=0000:1111:1111:1111:0000:0000:0000:1111
+src_ip=0000:1111:1111:1111:0000:0000:0000:2222
+expected_dst_ip=0:1111:1111:1111::1111
+expected_src_ip=0:1111:1111:1111::2222
+expected_spi=0x64
+expected_length=300
+
+[test_trs_qat_aes_128_ctr_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+dst_ip=0000:1111:1111:1111:aaaa:aaaa:0000:1111
+src_ip=0000:1111:1111:1111:aaaa:aaaa:0000:2222
+expected_dst_ip=0:1111:1111:1111:aaaa:aaaa:0:1111
+expected_src_ip=0:1111:1111:1111:aaaa:aaaa:0:2222
+expected_spi=0x65
+expected_length=292
+
+[test_trs_qat_aes_256_cbc_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+dst_ip=0000:1111:1111:1111:8888:8888:0000:1111
+src_ip=0000:1111:1111:1111:8888:8888:0000:2222
+expected_dst_ip=0:1111:1111:1111:8888:8888:0:1111
+expected_src_ip=0:1111:1111:1111:8888:8888:0:2222
+expected_spi=0x66
+expected_length=300
+
+[test_trs_qat_aes_gcm_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 -w 0000:3d:01.0
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+dst_ip=0000:1111:1111:1111:1111:1111:0000:1111
+src_ip=0000:1111:1111:1111:1111:1111:0000:2222
+expected_dst_ip=0:1111:1111:1111:1111:1111:0:1111
+expected_src_ip=0:1111:1111:1111:1111:1111:0:2222
+expected_spi=0x67
+expected_length=292
+
+###### SW #######
+[test_tun_sw_aes_128_cbc_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=316
+
+[test_tun_sw_aes_128_ctr_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1 
+vdev=crypto_openssl_pmd_1 --vdev=crypto_openssl_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=308
+
+[test_tun_sw_aes_256_cbc_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=316
+
+[test_tun_sw_aes_gcm_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_aesni_gcm_pmd_1 --vdev=crypto_aesni_gcm_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=312
+
+[test_tun_sw_null_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_null_pmd_1 --vdev=crypto_null_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=288
+
+[test_trs_sw_aes_128_cbc_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=300
+
+[test_trs_sw_aes_128_ctr_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_openssl_pmd_1 --vdev=crypto_openssl_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=292
+
+[test_trs_sw_aes_256_cbc_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=300
+
+[test_trs_sw_aes_gcm_ipv4]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_aesni_gcm_pmd_1 --vdev=crypto_aesni_gcm_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=292
+
+[test_tun_sw_aes_128_cbc_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=316
+
+[test_tun_sw_aes_128_ctr_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_openssl_pmd_1 --vdev=crypto_openssl_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=308
+
+[test_tun_sw_aes_256_cbc_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=316
+
+[test_tun_sw_aes_gcm_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_aesni_gcm_pmd_1 --vdev=crypto_aesni_gcm_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=312
+
+[test_tun_sw_null_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_null_pmd_1 --vdev=crypto_null_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+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
+expected_length=288
+
+[test_trs_sw_aes_128_cbc_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+dst_ip=0000:1111:1111:1111:0000:0000:0000:1111
+src_ip=0000:1111:1111:1111:0000:0000:0000:2222
+expected_dst_ip=0:1111:1111:1111::1111
+expected_src_ip=0:1111:1111:1111::2222
+expected_spi=0x64
+expected_length=300
+
+[test_trs_sw_aes_128_ctr_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_openssl_pmd_1 --vdev=crypto_openssl_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+dst_ip=0000:1111:1111:1111:aaaa:aaaa:0000:1111
+src_ip=0000:1111:1111:1111:aaaa:aaaa:0000:2222
+expected_dst_ip=0:1111:1111:1111:aaaa:aaaa:0:1111
+expected_src_ip=0:1111:1111:1111:aaaa:aaaa:0:2222
+expected_spi=0x65
+expected_length=292
+
+[test_trs_sw_aes_256_cbc_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_aesni_mb_pmd_1 --vdev=crypto_aesni_mb_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+dst_ip=0000:1111:1111:1111:8888:8888:0000:1111
+src_ip=0000:1111:1111:1111:8888:8888:0000:2222
+expected_dst_ip=0:1111:1111:1111:8888:8888:0:1111
+expected_src_ip=0:1111:1111:1111:8888:8888:0:2222
+expected_spi=0x66
+expected_length=300
+
+[test_trs_sw_aes_gcm_ipv6]
+#test_skip=Y
+w=0000:b1:00.0 -w 0000:b1:00.1
+vdev=crypto_aesni_gcm_pmd_1 --vdev=crypto_aesni_gcm_pmd_2
+config="(0,0,10),(1,0,11)"
+#f=/root/dts/conf/new_ipsec_test.cfg
+dst_ip=0000:1111:1111:1111:1111:1111:0000:1111
+src_ip=0000:1111:1111:1111:1111:1111:0000:2222
+expected_dst_ip=0:1111:1111:1111:1111:1111:0:1111
+expected_src_ip=0:1111:1111:1111:1111:1111:0:2222
+expected_spi=0x67
+expected_length=292
+
-- 
2.7.4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-16  3:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16  9:10 [dts] [PATCH] add cryptodev new ipsec-gw config xuyanjie

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).