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/4] conf: modify cryptodev virtio ipsec test plan
Date: Tue, 18 Aug 2020 15:52:53 +0800	[thread overview]
Message-ID: <20200818075255.19830-2-xinfengx.zhao@intel.com> (raw)
In-Reply-To: <20200818075255.19830-1-xinfengx.zhao@intel.com>

1. add the step to enable common_base items
2. Revise plan format

Signed-off-by: xinfeng zhao <xinfengx.zhao@intel.com>
---
 .../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


  reply	other threads:[~2020-08-18  7:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-18  7:52 [dts] [PATCH V1 1/4] conf: modify cryptodev virtio perf " xinfeng zhao
2020-08-18  7:52 ` xinfeng zhao [this message]
2020-08-18  7:52 ` [dts] [PATCH V1 3/4] conf: modify cryptodev virtio unit " xinfeng zhao
2020-08-18  7:52 ` [dts] [PATCH V1 4/4] tests: remove unnecessary common_base modification and build xinfeng zhao
2020-08-18  7:59   ` Zhao, XinfengX
2020-08-21  3:39 ` [dts] [PATCH V1 1/4] conf: modify cryptodev virtio perf test plan 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=20200818075255.19830-2-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).