From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 0764EA0679 for ; Tue, 30 Apr 2019 09:47:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F32FF5F44; Tue, 30 Apr 2019 09:47:38 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 22C505A6E for ; Tue, 30 Apr 2019 09:47:35 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Apr 2019 00:47:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,412,1549958400"; d="scan'208";a="295714397" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga004.jf.intel.com with ESMTP; 30 Apr 2019 00:47:34 -0700 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 30 Apr 2019 00:47:34 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 30 Apr 2019 00:47:33 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.70]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.33]) with mapi id 14.03.0415.000; Tue, 30 Apr 2019 15:47:31 +0800 From: "Li, WenjieX A" To: "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts][PATCH V1 2/3] test_plans: fix build error/warning Thread-Index: AQHU/yjWnEn3+VGgxkWBjmldl453qqZUU5XA Date: Tue, 30 Apr 2019 07:47:30 +0000 Message-ID: <8688172CD5C0B74590FAE19D9579F94B536DDC3C@SHSMSX103.ccr.corp.intel.com> References: <1556610372-16013-1-git-send-email-wenjiex.a.li@intel.com> <1556610372-16013-2-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1556610372-16013-2-git-send-email-wenjiex.a.li@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 2/3] test_plans: fix build error/warning 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" Tested-by: Li, WenjieX A > -----Original Message----- > From: Li, WenjieX A > Sent: Tuesday, April 30, 2019 3:46 PM > To: dts@dpdk.org > Cc: Li, WenjieX A > Subject: [dts][PATCH V1 2/3] test_plans: fix build error/warning >=20 > fix build error/warning >=20 > Signed-off-by: Wenjie Li > --- > test_plans/vhost_enqueue_interrupt_test_plan.rst | 14 +++-- > test_plans/vhost_event_idx_interrupt_test_plan.rst | 16 ++--- > .../vhost_virtio_pmd_interrupt_test_plan.rst | 14 ++--- > .../virtio_ipsec_cryptodev_func_test_plan.rst | 72 ++++++++++++++--= ------ > .../virtio_perf_cryptodev_func_test_plan.rst | 44 ++++++++----- > 5 files changed, 99 insertions(+), 61 deletions(-) >=20 > diff --git a/test_plans/vhost_enqueue_interrupt_test_plan.rst > b/test_plans/vhost_enqueue_interrupt_test_plan.rst > index de482b3..93ff7cb 100644 > --- a/test_plans/vhost_enqueue_interrupt_test_plan.rst > +++ b/test_plans/vhost_enqueue_interrupt_test_plan.rst > @@ -50,9 +50,10 @@ Test Case1: Wake up vhost-user core with l3fwd-power > sample >=20 > 1. Launch virtio-user with server mode:: >=20 > - ./testpmd -l 7-8 -n 4 --socket-mem 1024,1024 --legacy-mem --no-pci --f= ile- > prefix=3Dvirtio -- > vdev=3Dnet_virtio_user0,mac=3D00:11:22:33:44:10,path=3D/tmp/sock0,server= =3D1,queu > es=3D1 -- -i > + ./testpmd -l 7-8 -n 4 --socket-mem 1024,1024 --legacy-mem --no-pci -= -file- > prefix=3Dvirtio \ > + > + --vdev=3Dnet_virtio_user0,mac=3D00:11:22:33:44:10,path=3D/tmp/sock0,ser= ver=3D1 > + ,queues=3D1 -- -i >=20 > -2. Build l3fwd-power sample and launch l3fwd-power with a virtual vhost > device:: > +2. Build l3fwd-power sample and launch l3fwd-power with a virtual vhost > device:: >=20 > ./l3fwd-power -l 0-3 -n 4 --socket-mem 1024,1024 --legacy-mem --no-p= ci \ > --vdev 'eth_vhost0,iface=3D/tmp/sock0,queues=3D1,client=3D1' -- -p 0= x1 --parse- > ptype 1 --config "(0,0,2)" > @@ -69,12 +70,13 @@ Test Case2: Wake up vhost-user cores with l3fwd- > power sample when multi queues >=20 > 1. Launch virtio-user with server mode:: >=20 > - ./testpmd -l 1-5 -n 4 --socket-mem 1024,1024 --legacy-mem --no-pci --f= ile- > prefix=3Dvirtio -- > vdev=3Dnet_virtio_user0,mac=3D00:11:22:33:44:10,path=3D/tmp/sock0,server= =3D1,queu > es=3D4 -- -i --rxq=3D4 --txq=3D4 --rss-ip > + ./testpmd -l 1-5 -n 4 --socket-mem 1024,1024 --legacy-mem --no-pci -= -file- > prefix=3Dvirtio \ > + > + --vdev=3Dnet_virtio_user0,mac=3D00:11:22:33:44:10,path=3D/tmp/sock0,ser= ver=3D1 > + ,queues=3D4 -- -i --rxq=3D4 --txq=3D4 --rss-ip >=20 > -2. Build l3fwd-power sample and launch l3fwd-power with a virtual vhost > device:: > +2. Build l3fwd-power sample and launch l3fwd-power with a virtual vhost > device:: >=20 > - ./l3fwd-power -l 9-12 -n 4 --socket-mem 1024,1024 --legacy-mem --no-= pci\ > - --log-level=3D9 --vdev 'eth_vhost0,iface=3D/tmp/sock0,queues=3D4,cli= ent=3D1' -- -p > 0x1 --parse-ptype 1 \ > + ./l3fwd-power -l 9-12 -n 4 --socket-mem 1024,1024 --legacy-mem --no-= pci -- > log-level=3D9 \ > + --vdev 'eth_vhost0,iface=3D/tmp/sock0,queues=3D4,client=3D1' -- -p 0= x1 > + --parse-ptype 1 \ > --config "(0,0,9),(0,1,10),(0,2,11),(0,3,12)" >=20 > 3. Send packet by testpmd, check vhost-user multi-cores will keep wakeup > status:: > diff --git a/test_plans/vhost_event_idx_interrupt_test_plan.rst > b/test_plans/vhost_event_idx_interrupt_test_plan.rst > index af75c33..e785755 100644 > --- a/test_plans/vhost_event_idx_interrupt_test_plan.rst > +++ b/test_plans/vhost_event_idx_interrupt_test_plan.rst > @@ -77,14 +77,14 @@ Test Case 1: wake up vhost-user core with event idx > interrupt mode > --parse-ptype 1 \ > --config "(0,0,1)" >=20 > -3. On VM, set ip for virtio device and send packets to vhost by cmds:: > +4. On VM, set ip for virtio device and send packets to vhost by cmds:: >=20 > ifconfig [ens3] 1.1.1.2 > #[ens3] is the virtual device name > ping 1.1.1.3 > #send packets to vhost >=20 > -4. Check vhost related core is waked up by reading l3fwd-power log. > +5. Check vhost related core is waked up by reading l3fwd-power log. >=20 > Test Case 2: wake up vhost-user cores with event idx interrupt mode 16 q= ueues > test > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > @@ -119,12 +119,12 @@ Test Case 2: wake up vhost-user cores with event id= x > interrupt mode 16 queues te > --parse-ptype 1 \ > --config > "(0,0,1),(0,1,2),(0,2,3),(0,3,4),(0,4,5),(0,5,6),(0,6,7),(0,7,8),(0,8,9),= (0,9,10),(0,10,1 > 1),(0,11,12),(0,12,13),(0,13,14),(0,14,15),(0,15,16)" >=20 > -3. Set vitio-net with 16 quques and give vitio-net ip address:: > +4. Set vitio-net with 16 quques and give vitio-net ip address:: >=20 > ethtool -L [ens3] combined 16 # [ens3] is the name of virtio-net > ifconfig [ens3] 1.1.1.1 >=20 > -4. Send packets with different IPs from virtio-net, notice to bind each= vcpu to > different send packets process:: > +5. Send packets with different IPs from virtio-net, notice to bind each = vcpu to > different send packets process:: >=20 > taskset -c 0 ping 1.1.1.2 > taskset -c 1 ping 1.1.1.3 > @@ -143,11 +143,11 @@ Test Case 2: wake up vhost-user cores with event id= x > interrupt mode 16 queues te > taskset -c 14 ping 1.1.1.2 > taskset -c 15 ping 1.1.1.2 >=20 > -5. Check vhost related cores are waked up with l3fwd-power log, such as > following:: > +6. Check vhost related cores are waked up with l3fwd-power log, such as > following:: >=20 > L3FWD_POWER: lcore 0 is waked up from rx interrupt on port 0 queue 0 > - ..... > - ..... > + ... > + ... > L3FWD_POWER: lcore 15 is waked up from rx interrupt on port 0 queue = 15 >=20 > Test Case 3: wake up vhost-user cores by multi virtio-net in VMs with ev= ent idx > interrupt mode @@ -193,7 +193,7 @@ Test Case 3: wake up vhost-user cores > by multi virtio-net in VMs with event idx > --parse-ptype 1 \ > --config "(0,0,1),(1,0,2)" >=20 > -4. On VM1, set ip for virtio device and send packets to vhost:: > +4. On VM1, set ip for virtio device and send packets to vhost:: >=20 > ifconfig [ens3] 1.1.1.2 > #[ens3] is the virtual device name > diff --git a/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst > b/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst > index b928748..03f4d50 100644 > --- a/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst > +++ b/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst > @@ -68,13 +68,13 @@ Test Case 1: Basic virtio interrupt test with 4 queue= s >=20 > 3. Bind virtio port to vfio-pci:: >=20 > - modprobe vfio enable_unsafe_noiommu_mode=3D1 > - modprobe vfio-pci > + modprobe vfio enable_unsafe_noiommu_mode=3D1 > + modprobe vfio-pci > ./usertools/dpdk-devbind.py --bind=3Dvfio-pci xx:xx.x >=20 > 4. In VM, launch l3fwd-power sample:: >=20 > - ./l3fwd-power -c 0xf -n 4 --log-level=3D'user1,7' -- -p 1 -P -- > config=3D"(0,0,0),(0,1,1),(0,2,2),(0,3,3)" --no-numa --parse-ptype > + ./l3fwd-power -c 0xf -n 4 --log-level=3D'user1,7' -- -p 1 -P > + --config=3D"(0,0,0),(0,1,1),(0,2,2),(0,3,3)" --no-numa --parse-ptype >=20 > 5. Send random dest ip address packets to host nic with packet generator= , > packets will distribute to all queues, check l3fwd-power log that all rel= ated cores > are waked up. >=20 > @@ -101,7 +101,7 @@ Test Case 2: Basic virtio interrupt test with 16 queu= es > -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Don,csum=3Don,mq= =3Don,vec > tors=3D40 \ > -vnc :11 -daemonize >=20 > -3 Bind virtio port to vfio-pci:: > +3. Bind virtio port to vfio-pci:: >=20 > modprobe vfio enable_unsafe_noiommu_mode=3D1 > modprobe vfio-pci > @@ -109,7 +109,7 @@ Test Case 2: Basic virtio interrupt test with 16 queu= es >=20 > 4. In VM, launch l3fwd-power sample:: >=20 > - ./l3fwd-power -c 0x0ffff -n 4 --log-level=3D'user1,7' -- -p 1 -P --co= nfig > '(0,0,0),(0,1,1),(0,2,2),(0,3,3)(0,4,4),(0,5,5),(0,6,6),(0,7,7)(0,8,8),(0= ,9,9),(0,10,10), > (0,11,11)(0,12,12),(0,13,13),(0,14,14),(0,15,15)' --no-numa --parse-ptyp= e > + ./l3fwd-power -c 0x0ffff -n 4 --log-level=3D'user1,7' -- -p 1 -P > + --config > + '(0,0,0),(0,1,1),(0,2,2),(0,3,3)(0,4,4),(0,5,5),(0,6,6),(0,7,7)(0,8,8) > + ,(0,9,9),(0,10,10),(0,11,11)(0,12,12),(0,13,13),(0,14,14),(0,15,15)' > + --no-numa --parse-ptype >=20 > 5. Send random dest ip address packets to host nic with packet generator= , > packets will distribute to all queues, check l3fwd-power log that all rel= ated cores > are waked up. >=20 > @@ -136,7 +136,7 @@ Test Case 3: Basic virtio-1.0 interrupt test with 4 q= ueues > -device virtio-net-pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,disa= ble- > modern=3Dfalse,mrg_rxbuf=3Don,csum=3Don,mq=3Don,vectors=3D15 \ > -vnc :11 -daemonize >=20 > -3 Bind virtio port to vfio-pci:: > +3. Bind virtio port to vfio-pci:: >=20 > modprobe vfio enable_unsafe_noiommu_mode=3D1 > modprobe vfio-pci > @@ -144,7 +144,7 @@ Test Case 3: Basic virtio-1.0 interrupt test with 4 q= ueues >=20 > 4. In VM, launch l3fwd-power sample:: >=20 > - ./l3fwd-power -c 0xf -n 4 --log-level=3D'user1,7' -- -p 1 -P -- > config=3D"(0,0,0),(0,1,1),(0,2,2),(0,3,3)" --no-numa --parse-ptype > + ./l3fwd-power -c 0xf -n 4 --log-level=3D'user1,7' -- -p 1 -P > + --config=3D"(0,0,0),(0,1,1),(0,2,2),(0,3,3)" --no-numa --parse-ptype >=20 > 5. Send random dest ip address packets to host nic with packet generator= , > packets will distribute to all queues, check l3fwd-power log that all rel= ated cores > are waked up. >=20 > diff --git a/test_plans/virtio_ipsec_cryptodev_func_test_plan.rst > b/test_plans/virtio_ipsec_cryptodev_func_test_plan.rst > index 74842ac..47dc332 100644 > --- a/test_plans/virtio_ipsec_cryptodev_func_test_plan.rst > +++ b/test_plans/virtio_ipsec_cryptodev_func_test_plan.rst > @@ -30,9 +30,9 @@ > ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED > OF THE POSSIBILITY OF SUCH DAMAGE. >=20 > -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Cryptodev virtio ipsec Application Tests - > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 >=20 > Description > @@ -80,13 +80,15 @@ Prerequisites > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > qemu version >=3D 2.12 > -in qemu enable vhost-user-crypto: > +in qemu enable vhost-user-crypto:: > + > ./configure --target-list=3Dx86_64-softmmu --enable-vhost-crypto -- > prefix=3D/root/qemu-2.12 && make && make install > + > the bin is in /root/qemu-2.12 folder, which is your specified >=20 > -The options of ipsec-secgw is below: > +The options of ipsec-secgw is below:: >=20 > - ./build/ipsec-secgw [EAL options] -- > + ./build/ipsec-secgw [EAL options] -- > -p PORTMASK -P -u PORTMASK -j FRAMESIZE > -l -w REPLAY_WINOW_SIZE -e -a > --config (port,queue,lcore)[,(port,queue,lcore] > @@ -109,28 +111,37 @@ payload in packet by using algorithm setting in VM. > the packet back to tester. > Use TCPDump to capture the received packet on tester. Then tester parses= the > payload and compare the payload with correct answer pre-stored in script= s: >=20 > - +----------+ +----------------------------------+ > - | | | +--------+ +--------+ | > - | | -------------|-->| VM0 | -----> | | | > - | Tester | | +--------+ | VM1 | | > - | | <------------|-------------------> | | | > - | | | +--------+ | > - +----------+ +----------------------------------+ > +.. figure:: image/virtio_ipsec_cryptodev_func_test_plan.png >=20 > In Host: > -# Build DPDK and vhost_crypto app > - enable CONFIG_RTE_LIBRTE_VHOST in config/common_base > - make install -j T=3Dx86_64-native-linuxapp-gcc > - make -C examples/vhost_crypto > + > +# Build DPDK and vhost_crypto app:: > + > + enable CONFIG_RTE_LIBRTE_VHOST in config/common_base > + make install -j T=3Dx86_64-native-linuxapp-gcc > + make -C examples/vhost_crypto >=20 > # Compile the latest qemu > -# Run the dpdk vhost sample > - ./examples/vhost_crypto/build/vhost-crypto --socket-mem 2048,0 --leg= acy- > mem -w 1a:01.0 -w 1c:01.0 -w 1e:01.0 --vdev > crypto_scheduler_pmd_1,slave=3D0000:1a:01.0_qat_sym,slave=3D0000:1c:01.0_= qat > _sym,slave=3D0000:1e:01.0_qat_sym,mode=3Dround-robin,ordering=3Denable -l > 8,9,10,11,12 -n 6 -- --config "(9,0,0),(10,0,0),(11,0,0),(12,0,0)" --soc= ket-file > 9,/tmp/vm0_crypto0.sock --socket-file=3D10,/tmp/vm0_crypto1.sock --socket= - > file=3D11,/tmp/vm1_crypto0.sock --socket-file=3D12,/tmp/vm1_crypto1.sock >=20 > -# bind vfio-pci > +# Run the dpdk vhost sample:: > + > + ./examples/vhost_crypto/build/vhost-crypto \ > + --socket-mem 2048,0 --legacy-mem \ > + -w 1a:01.0 -w 1c:01.0 -w 1e:01.0 \ > + --vdev > crypto_scheduler_pmd_1,slave=3D0000:1a:01.0_qat_sym,slave=3D0000:1c:01.0_= qat > _sym,slave=3D0000:1e:01.0_qat_sym,mode=3Dround-robin,ordering=3Denable \ > + -l 8,9,10,11,12 -n 6 \ > + -- --config "(9,0,0),(10,0,0),(11,0,0),(12,0,0)" \ > + --socket-file 9,/tmp/vm0_crypto0.sock \ > + --socket-file=3D10,/tmp/vm0_crypto1.sock \ > + --socket-file=3D11,/tmp/vm1_crypto0.sock \ > + --socket-file=3D12,/tmp/vm1_crypto1.sock > + > +# bind vfio-pci:: > + > usertools/dpdk-devbind.py --bind=3Dvfio-pci 0000:60:00.0 0000:60:00.= 1 > 0000:3b:00.0 0000:3b:00.1 >=20 > -# Start VM0 by the qemu > +# Start VM0 by the qemu:: > + > taskset -c 11,12,13,14 /root/qemu-2/bin/qemu-system-x86_64 -name vm= 0 - > enable-kvm -pidfile /tmp/.vm0.pid > -daemonize -monitor unix:/tmp/vm0_monitor.sock,server,nowait > -net nic,vlan=3D0,macaddr=3D00:00:00:42:65:aa,model=3De1000,addr= =3D1f -net > user,vlan=3D0,hostfwd=3Dtcp:10.67.111.126:6000-:22 > @@ -143,7 +154,8 @@ In Host: > -device vfio-pci,host=3D0000:3b:00.0,id=3Dpt_0 > -device vfio-pci,host=3D0000:3b:00.1,id=3Dpt_1 >=20 > -# Start VM1 by the qemu > +# Start VM1 by the qemu:: > + > taskset -c 15,16,17,18 /root/qemu-2/bin/qemu-system-x86_64 -name vm= 1 - > enable-kvm -pidfile /tmp/.vm1.pid > -daemonize -monitor unix:/tmp/vm1_monitor.sock,server,nowait > -net nic,vlan=3D0,macaddr=3D00:00:00:db:2e:f9,model=3De1000,addr= =3D1f -net > user,vlan=3D0,hostfwd=3Dtcp:10.67.111.126:6001-:22 > @@ -157,7 +169,9 @@ In Host: > -device vfio-pci,host=3D0000:60:00.1,id=3Dpt_1 >=20 > In VM > -# set virtio device > + > +# set virtio device:: > + > modprobe uio_pci_generic > echo -n 0000:00:04.0 > /sys/bus/pci/drivers/virtio-pci/unbind > echo -n 0000:00:05.0 > /sys/bus/pci/drivers/virtio-pci/unbind > @@ -166,13 +180,19 @@ In VM > # Run the ipsec test cases cmd >=20 > 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 >=20 > 2. VIRTIO 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 -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/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 diff --git > a/test_plans/virtio_perf_cryptodev_func_test_plan.rst > b/test_plans/virtio_perf_cryptodev_func_test_plan.rst > index 74d38f6..3ad6543 100644 > --- a/test_plans/virtio_perf_cryptodev_func_test_plan.rst > +++ b/test_plans/virtio_perf_cryptodev_func_test_plan.rst > @@ -30,9 +30,9 @@ > ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED > OF THE POSSIBILITY OF SUCH DAMAGE. >=20 > -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Cryptodev virtio Performance Application Tests - > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 >=20 > Description > @@ -55,7 +55,7 @@ Part of the algorithms are not supported currently. > +-----------+-------------------+---------------------------------------= ----------------------- > -------------+ > | sha | | sha1, sha2-224, sha2-384, sha2-256, sh= a2-512 > | > +-----------+-------------------+---------------------------------------= ----------------------- > -------------+ > -| hmac | | Support sha implementations sha1, sha2= -224, sha2-256, > | > +| hmac | | Support sha implementations sha1, sha2= -224, sha2-256, > | > | | | = | > | | | sha2-384, sha2-512 = | > +-----------+-------------------+---------------------------------------= ----------------------- > -------------+ > @@ -71,7 +71,7 @@ Part of the algorithms are not supported currently. > +-----------+-------------------+---------------------------------------= ----------------------- > -------------+ > | sha | | sha1, sha2-224, sha2-384, sha2-256, sh= a2-512 > | > +-----------+-------------------+---------------------------------------= ----------------------- > -------------+ > -| hmac | | Support sha implementations sha1, sha2= -224, sha2-256, > | > +| hmac | | Support sha implementations sha1, sha2= -224, sha2-256, > | > | | | = | > | | | sha2-384, sha2-512 = | > +-----------+-------------------+---------------------------------------= ----------------------- > -------------+ > @@ -81,8 +81,10 @@ Prerequisites > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > qemu version >=3D 2.12 > -in qemu enable vhost-user-crypto: > +in qemu enable vhost-user-crypto:: > + > ./configure --target-list=3Dx86_64-softmmu --enable-vhost-crypto -- > prefix=3D/root/qemu-2.12 && make && make install > + > the bin is in /root/qemu-2.12 folder, which is your specified >=20 > Test case setup: > @@ -97,19 +99,24 @@ Test case setup: > +--------------+ >=20 > In Host: > -# Build DPDK and vhost_crypto app > + > +# Build DPDK and vhost_crypto app:: > + > enable CONFIG_RTE_LIBRTE_VHOST in config/common_base > make install -j T=3Dx86_64-native-linuxapp-gcc > make -C examples/vhost_crypto >=20 > # Compile the latest qemu > -# Run the dpdk vhost sample > +# Run the dpdk vhost sample:: > + > ./examples/vhost_crypto/build/vhost-crypto --socket-mem 2048,0 --leg= acy- > 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=3D10,/tmp/vm0_crypto1= .sock >=20 > -# bind vfio-pci > +# bind vfio-pci:: > + > usertools/dpdk-devbind.py --bind=3Dvfio-pci 0000:60:00.0 0000:60:00.= 1 >=20 > -# Start VM by the qemu > +# Start VM by the qemu:: > + > taskset -c 11,12,13,14 /root/qemu-2/bin/qemu-system-x86_64 -name vm= 0 > -enable-kvm -pidfile /tmp/.vm0.pid > -cpu host -smp 4 > @@ -127,7 +134,9 @@ In Host: > -device vfio-pci,host=3D0000:60:00.1,id=3Dpt_1 >=20 > In VM: > -# set virtio device > + > +# set virtio device:: > + > modprobe uio_pci_generic > echo -n 0000:00:04.0 > /sys/bus/pci/drivers/virtio-pci/unbind > echo -n 0000:00:05.0 > /sys/bus/pci/drivers/virtio-pci/unbind > @@ -135,10 +144,17 @@ In VM: >=20 > # Run the virtio performance test cases >=20 > - 1. The AESNI_MB case Command line Eg: > + 1. The AESNI_MB case Command line Eg:: >=20 > - ./build/app/dpdk-test-crypto-perf -c 0xf --vdev crypto_aesni_mb_pmd = -- -- > ptest throughput --devtype crypto_aesni_mb --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 > + ./build/app/dpdk-test-crypto-perf -c 0xf --vdev crypto_aesni_mb_pm= d \ > + -- --ptest throughput --devtype crypto_aesni_mb --optype cipher-th= en-auth > \ > + --cipher-algo aes-cbc --cipher-op encrypt --cipher-key-sz 16 --cip= her-iv-sz 16 > \ > + --auth-algo sha1-hmac --auth-op generate --auth-key-sz 64 --auth-a= ad-sz 0 > \ > + --auth-digest-sz 20 --total-ops 10000000 --burst-sz 32 > + --buffer-sz 1024 >=20 > - 2. The VIRTIO case Command line Eg: > + 2. The VIRTIO case Command line Eg:: >=20 > - ./build/app/dpdk-test-crypto-perf -c 0xf -w 00:05.0 -- --ptest thro= ughput -- > devtype crypto_qat --optype cipher-then-auth --cipher-algo aes-cbc --cip= her-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 > + ./build/app/dpdk-test-crypto-perf -c 0xf -w 00:05.0 -- --ptest th= roughput \ > + --devtype crypto_qat --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 > -- > 1.8.3.1