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 10652A0353; Tue, 18 Aug 2020 09:52:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 06EC61C037; Tue, 18 Aug 2020 09:52:47 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 8EE44AAD5 for ; Tue, 18 Aug 2020 09:52:45 +0200 (CEST) IronPort-SDR: zfhrmAbu8s/RIpAqyPRli3vB2u4rgZIE309dyUNfQF6BBIDbH/Be2NEHseuRqQOMQm4/fxd3n1 6TwOXsKD+Zfg== X-IronPort-AV: E=McAfee;i="6000,8403,9716"; a="216382906" X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="216382906" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2020 00:52:45 -0700 IronPort-SDR: Pq4R4Isjd4cFH+1f9zZEYfpWBr8NBtewgJM1I8Clr0bhq8kG6BHDNKcSvrIayjSuc5lvJWTX8E 9wlhV2mnSw1g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="320002869" Received: from dpdk-xinfengx-tester.sh.intel.com ([10.67.116.161]) by fmsmga004.fm.intel.com with ESMTP; 18 Aug 2020 00:52:43 -0700 From: xinfeng zhao To: dts@dpdk.org Cc: xinfeng zhao Date: Tue, 18 Aug 2020 15:52:53 +0800 Message-Id: <20200818075255.19830-2-xinfengx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200818075255.19830-1-xinfengx.zhao@intel.com> References: <20200818075255.19830-1-xinfengx.zhao@intel.com> Subject: [dts] [PATCH V1 2/4] conf: modify cryptodev virtio ipsec test plan 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" 1. add the step to enable common_base items 2. Revise plan format Signed-off-by: xinfeng zhao --- .../virtio_ipsec_cryptodev_func_test_plan.rst | 40 ++++++++++++------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/test_plans/virtio_ipsec_cryptodev_func_test_plan.rst b/test_plans/virtio_ipsec_cryptodev_func_test_plan.rst index 47dc332..35b2a14 100644 --- a/test_plans/virtio_ipsec_cryptodev_func_test_plan.rst +++ b/test_plans/virtio_ipsec_cryptodev_func_test_plan.rst @@ -115,13 +115,11 @@ and compare the payload with correct answer pre-stored in scripts: In Host: -# Build DPDK and vhost_crypto app:: +# Enable config item in dpdk: - enable CONFIG_RTE_LIBRTE_VHOST in config/common_base - make install -j T=x86_64-native-linuxapp-gcc - make -C examples/vhost_crypto + enable CONFIG_RTE_LIBRTE_VHOST in config/common_base -# Compile the latest qemu +# Build DPDK and app vhost_crypto # Run the dpdk vhost sample:: @@ -136,7 +134,7 @@ In Host: --socket-file=11,/tmp/vm1_crypto0.sock \ --socket-file=12,/tmp/vm1_crypto1.sock -# bind vfio-pci:: +# bind pf with driver vfio-pci:: usertools/dpdk-devbind.py --bind=vfio-pci 0000:60:00.0 0000:60:00.1 0000:3b:00.0 0000:3b:00.1 @@ -168,7 +166,13 @@ In Host: -device vfio-pci,host=0000:60:00.0,id=pt_0 -device vfio-pci,host=0000:60:00.1,id=pt_1 -In VM +In VM: + +# enable config items, compile dpdk and app: + + enable CONFIG_RTE_EAL_IGB_UIO in config/common_base + enable CONFIG_RTE_LIBRTE_PMD_AESNI_MB in config/common_base + compile dpdk and compile test app "ipsec-secgw" # set virtio device:: @@ -177,22 +181,28 @@ In VM echo -n 0000:00:05.0 > /sys/bus/pci/drivers/virtio-pci/unbind echo "1af4 1054" > /sys/bus/pci/drivers/uio_pci_generic/new_id -# Run the ipsec test cases cmd +Test Case: Cryptodev AESNI_MB test +================================== - 1. AESNI_MB case Command line Eg: - In vm0:: +In vm0:: ./examples/ipsec-secgw/build/ipsec-secgw --socket-mem 1024,0 -w 0000:00:06.0 -w 0000:00:07.0 --vdev crypto_aesni_mb_pmd_1 --vdev crypto_aesni_mb_pmd_2 -l 1,2,3 -n 4 -- -P --config "(0,0,2),(1,0,3)" -u 0x1 -p 0x3 -f /root/ipsec_test0.cfg - In vm1:: +In vm1:: ./examples/ipsec-secgw/build/ipsec-secgw --socket-mem 1024,0 -w 0000:00:06.0 -w 0000:00:07.0 --vdev crypto_aesni_mb_pmd_1 --vdev crypto_aesni_mb_pmd_2 -l 1,2,3 -n 4 -- -P --config "(0,0,2),(1,0,3)" -u 0x1 -p 0x3 -f /root/ipsec_test1.cfg - 2. VIRTIO case Command line Eg: - In vm0:: +send packets and verify + +Test Case: Cryptodev VIRTIO test +================================ + +In vm0:: ./examples/ipsec-secgw/build/ipsec-secgw --socket-mem 1024,0 -w 0000:00:06.0 -w 0000:00:07.0 -w 00:04.0 -w 00:05.0 -l 1,2,3 -n 4 -- -P --config "(0,0,2),(1,0,3)" -u 0x1 -p 0x3 -f /root/ipsec_test0.cfg - In vm1:: +In vm1:: + + ./examples/ipsec-secgw/ibuild/ipsec-secgw --socket-mem 1024,0 -w 0000:00:06.0 -w 0000:00:07.0 -w 00:04.0 -w 00:05.0 -l 1,2,3 -n 4 -- -P --config "(0,0,2),(1,0,3)" -u 0x1 -p 0x3 -f /root/ipsec_test1.cfg - ./examples/ipsec-secgw/build/ipsec-secgw --socket-mem 1024,0 -w 0000:00:06.0 -w 0000:00:07.0 -w 00:04.0 -w 00:05.0 -l 1,2,3 -n 4 -- -P --config "(0,0,2),(1,0,3)" -u 0x1 -p 0x3 -f /root/ipsec_test1.cfg +send packets and verify -- 2.17.1