From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C54FBA00C4; Fri, 23 Dec 2022 03:23:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 52A8142686; Fri, 23 Dec 2022 03:23:18 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id B5EDE40685 for ; Fri, 23 Dec 2022 03:23:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671762196; x=1703298196; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2kR+4QUZP899lO1AdtgTSN+TK0lGxkpVZ6OcUY6fa9Q=; b=NR0RYdZcx+S2G/2k8YeMCF3eRslQYESaOlampZAlnvROxlM4Y/4CNjkx H/Vcef+WwLTk5iyHrUnQ7I1XFimRo2kPx8lW0RHpKK7PZuecSyRpPu/Vq ht69eAF3gTuU67aQk3N+yRO+IHtH/Ro1hzjO+2MepFFF2E3FrC5Hlji2W ryISHs/eYaTXjDzabM+n1KUE6BHcaLBGMfDnEMJpKBEbxPPBzXF7V/ybs MabiXIwtvXJmPQ8hDOANvjGktfRLo9l5H7sthmy71oC7yeKR8RHiTrZCR saibAR4eeMo0KOVBw8K4DMSDHU0mHCISvTGYmU9d1uMmCfcf1f/kpVwY4 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10569"; a="320316591" X-IronPort-AV: E=Sophos;i="5.96,267,1665471600"; d="scan'208";a="320316591" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2022 18:23:08 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10569"; a="651972699" X-IronPort-AV: E=Sophos;i="5.96,267,1665471600"; d="scan'208";a="651972699" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2022 18:23:07 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 1/2] test_plans/dpdk_gro_lib_cbdma_test_plan: modify dmas parameter by DPDK chaneged Date: Fri, 23 Dec 2022 10:14:23 +0800 Message-Id: <20221223021423.751081-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 1.Modify dmas parameter by the local patch changed. 2.As DPDK commit 236bc417(app/testpmd: fix MAC header in checksum forward engine),need to add `csum mac-swap off ` steps. Signed-off-by: Wei Ling --- test_plans/dpdk_gro_lib_cbdma_test_plan.rst | 45 +++++++++++---------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/test_plans/dpdk_gro_lib_cbdma_test_plan.rst b/test_plans/dpdk_gro_lib_cbdma_test_plan.rst index e8a07461..6d511d7a 100644 --- a/test_plans/dpdk_gro_lib_cbdma_test_plan.rst +++ b/test_plans/dpdk_gro_lib_cbdma_test_plan.rst @@ -65,33 +65,34 @@ Test Case1: DPDK GRO test with two queues and cbdma channels using tcp/ipv4 traf ----------------------------------------------------------------------------------- This case tests dpdk gro lib with TCP/IPv4 traffic when vhost uses the asynchronous operations with CBDMA channels. -1. Connect two nic port directly, put nic2 into another namesapce and turn on the tso of this nic port by below cmds:: +1. Connect 2 NIC port directly, put NIC2 into another namesapce and turn on the tso of this NIC port by below commands:: ip netns del ns1 ip netns add ns1 - ip link set enp26s0f0 netns ns1 # [enp216s0f0] is the name of nic2 + ip link set enp26s0f0 netns ns1 # [enp216s0f0] is the name of NIC2 ip netns exec ns1 ifconfig enp26s0f0 1.1.1.8 up ip netns exec ns1 ethtool -K enp26s0f0 tso on -2. Bind 2 CBDMA channels and nic1 to vfio-pci, launch vhost-user with testpmd and set flush interval to 1:: - - ./usertools/dpdk-devbind.py -b vfio-pci xx:xx.x - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29-31 -n 4 \ - --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=2,dmas=[txq0;txq1;rxq0;rxq1]' \ - -- -i --txd=1024 --rxd=1024 --txq=2 --rxq=2 --nb-cores=2 --lcore-dma=[lcore30@0000:00:04.0,lcore30@0000:00:04.1,lcore31@0000:00:04.1] - testpmd> set fwd csum - testpmd> stop - testpmd> port stop 0 - testpmd> port stop 1 - testpmd> csum set tcp hw 0 - testpmd> csum set ip hw 0 - testpmd> csum set tcp hw 1 - testpmd> csum set ip hw 1 - testpmd> set port 0 gro on - testpmd> set gro flush 1 - testpmd> port start 0 - testpmd> port start 1 - testpmd> start +2. Bind 2 CBDMA channels and NIC1 to vfio-pci, launch vhost-user with testpmd and set flush interval to 1:: + + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29-31 -n 4 --file-prefix=vhost \ + --vdev 'net_vhost0,iface=vhost-net,queues=2,dmas=[txq0@0000:00:04.0;txq1@0000:00:04.0;rxq0@0000:00:04.1;rxq1@0000:00:04.1]' \ + -- -i --txd=1024 --rxd=1024 --txq=2 --rxq=2 --nb-cores=2 + testpmd>set fwd csum + testpmd>csum mac-swap off 0 + testpmd>csum mac-swap off 1 + testpmd>stop + testpmd>port stop 0 + testpmd>port stop 1 + testpmd>csum set tcp hw 0 + testpmd>csum set ip hw 0 + testpmd>csum set tcp hw 1 + testpmd>csum set ip hw 1 + testpmd>set port 0 gro on + testpmd>set gro flush 1 + testpmd>port start 0 + testpmd>port start 1 + testpmd>start 3. Set up vm with virto device and using kernel virtio-net driver:: @@ -101,7 +102,7 @@ This case tests dpdk gro lib with TCP/IPv4 traffic when vhost uses the asynchron -chardev socket,path=/tmp/vm0_qga0.sock,server,nowait,id=vm0_qga0 -device virtio-serial \ -device virtserialport,chardev=vm0_qga0,name=org.qemu.guest_agent.0 -pidfile /tmp/.vm0.pid -daemonize \ -monitor unix:/tmp/vm0_monitor.sock,server,nowait \ - -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6002-:22 -device e1000,netdev=nttsip1 \ + -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6000-:22 -device e1000,netdev=nttsip1 \ -chardev socket,id=char0,path=./vhost-net \ -netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce,queues=2 \ -device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:01,mrg_rxbuf=on,csum=on,gso=on,host_tso4=on,guest_tso4=on,mq=on,vectors=15 -vnc :4 -- 2.25.1