From patchwork Tue Aug 18 07:52:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao, XinfengX" X-Patchwork-Id: 75606 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1A3DFA0351; Tue, 18 Aug 2020 09:52:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D5B661C022; Tue, 18 Aug 2020 09:52:45 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 64E0FAAD5 for ; Tue, 18 Aug 2020 09:52:44 +0200 (CEST) IronPort-SDR: 2hNpq8MLI12rDn+Nv+awbgZ7OeNHKa2aJgKf3AuDsb2Lvnn6CIorgPbjWTDWMoE9AbVgUeMjDT yKhxUdYOfOlA== X-IronPort-AV: E=McAfee;i="6000,8403,9716"; a="216382903" X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="216382903" 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:42 -0700 IronPort-SDR: YItAXO5kQPgTpuqjKjpIOyAVAZ611HXhmA0gyaafjrvZ50TTJjeXsCMHcRO/1SAWpzDhKJFTVi Mh3gTQPzIV5Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="320002861" Received: from dpdk-xinfengx-tester.sh.intel.com ([10.67.116.161]) by fmsmga004.fm.intel.com with ESMTP; 18 Aug 2020 00:52:41 -0700 From: xinfeng zhao To: dts@dpdk.org Cc: xinfeng zhao Date: Tue, 18 Aug 2020 15:52:52 +0800 Message-Id: <20200818075255.19830-1-xinfengx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1 1/4] conf: modify cryptodev virtio perf 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_perf_cryptodev_func_test_plan.rst | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/test_plans/virtio_perf_cryptodev_func_test_plan.rst b/test_plans/virtio_perf_cryptodev_func_test_plan.rst index 3ad6543..3f58135 100644 --- a/test_plans/virtio_perf_cryptodev_func_test_plan.rst +++ b/test_plans/virtio_perf_cryptodev_func_test_plan.rst @@ -100,18 +100,17 @@ Test case setup: 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 -# Compile the latest qemu +# Build DPDK and app vhost_crypto + # Run the dpdk vhost sample:: ./examples/vhost_crypto/build/vhost-crypto --socket-mem 2048,0 --legacy-mem --vdev crypto_aesni_mb_pmd_1 -l 8,9,10 -n 4 -- --config "(9,0,0),(10,0,0)" --socket-file 9,/tmp/vm0_crypto0.sock --socket-file=10,/tmp/vm0_crypto1.sock -# bind vfio-pci:: +# bind vf or pf with driver vfio-pci:: usertools/dpdk-devbind.py --bind=vfio-pci 0000:60:00.0 0000:60:00.1 @@ -135,6 +134,11 @@ In Host: In VM: +# enable config items in dpdk and compile dpdk: + + enable CONFIG_RTE_EAL_IGB_UIO in config/common_base + enable CONFIG_RTE_LIBRTE_PMD_AESNI_MB in config/common_base + # set virtio device:: modprobe uio_pci_generic @@ -142,9 +146,10 @@ 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 virtio performance test cases +Test Case: Cryptodev AESNI_MB test +================================== - 1. The AESNI_MB case Command line Eg:: +command:: ./build/app/dpdk-test-crypto-perf -c 0xf --vdev crypto_aesni_mb_pmd \ -- --ptest throughput --devtype crypto_aesni_mb --optype cipher-then-auth \ @@ -152,9 +157,12 @@ In VM: --auth-algo sha1-hmac --auth-op generate --auth-key-sz 64 --auth-aad-sz 0 \ --auth-digest-sz 20 --total-ops 10000000 --burst-sz 32 --buffer-sz 1024 - 2. The VIRTIO case Command line Eg:: +Test Case: Cryptodev VIRTIO test +================================ + +command:: ./build/app/dpdk-test-crypto-perf -c 0xf -w 00:05.0 -- --ptest throughput \ - --devtype crypto_qat --optype cipher-then-auth --cipher-algo aes-cbc --cipher-op encrypt \ + --devtype crypto_virtio --optype cipher-then-auth --cipher-algo aes-cbc --cipher-op encrypt \ --cipher-key-sz 16 --cipher-iv-sz 16 --auth-algo sha1-hmac --auth-op generate --auth-key-sz 64 \ --auth-aad-sz 0 --auth-digest-sz 20 --total-ops 10000000 --burst-sz 32 --buffer-sz 1024