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 73C76A00C2; Thu, 23 Jun 2022 10:05:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F16740A87; Thu, 23 Jun 2022 10:05:39 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 00F384067B for ; Thu, 23 Jun 2022 10:05:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655971538; x=1687507538; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Biy6eF5VvPd11yLYfGI88lsQvSzHeRe173K6mTli198=; b=HchJoy2QGqsduGVH+Rqh2IUco0S25AnVdnzqMG7H4DkoZX+5BBki2fiw Xsk3ng3QIhv74uroSvRY0fahLXQxQeFSrGbsLZ/Hm5d25tgax9LXjDHga lIBtBCnOlbPYLSNEHig9flRKwxl4oO752SivBHSkTEnvlLMAAs1IeDSnj CmwCqSFaDchR7hU62vpSyjwwO7tIZzfidQzYRcxPZluv0WMmWCSRrhQwb dhFX1vhoJFl/muE0wu+7A9v6P99ooUXqF6lG+/2Ktdq/XE8cYhQJrue+r Or9TDfmgb+WxcX+FeRNy5VpTct0Y3bunU0iKiV2dX8L5GAKs1sNWp7yb4 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="280704010" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="280704010" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 01:05:36 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="621228706" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 01:05:35 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V2 1/2] test_plans/vhost_qemu_mtu_test_plan: modify testplan Date: Thu, 23 Jun 2022 04:03:07 -0400 Message-Id: <20220623080307.2237865-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 Delete the step 4 as no need to check the MTU value in VM's testpmd, only need to check the MTU value in VM's kernel and vhost's testpmd. Signed-off-by: Wei Ling --- test_plans/vhost_qemu_mtu_test_plan.rst | 35 ++++++++++--------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/test_plans/vhost_qemu_mtu_test_plan.rst b/test_plans/vhost_qemu_mtu_test_plan.rst index 8b504a8d..38fead0c 100644 --- a/test_plans/vhost_qemu_mtu_test_plan.rst +++ b/test_plans/vhost_qemu_mtu_test_plan.rst @@ -28,27 +28,20 @@ Test Case: Test the MTU in virtio-net Use the qemu_2.9 or qemu 2.10 to start the VM and the VM kernel should grand than 4.10, set the mtu value to 9000 - qemu-system-x86_64 \ - -chardev socket,id=char0,path=./vhost-net \ - -netdev type=vhost-user,id=netdev0,chardev=char0,vhostforce \ - -device virtio-net-pci,netdev=netdev0,mrg_rxbuf=on,host_mtu=9000 - -3. Check the MTU value in VM:: - - Use the ifconfig command to check the MTU value of - virtio kernel driver is 9000 in VM. - -4. Bind the virtio driver to igb_uio, launch testpmd in VM, and verify - the mtu in port info is 9000:: - - .//app/dpdk-testpmd -c 0x03 -n 3 \ - -- -i --txd=512 --rxd=128 --tx-offloads=0x0 --enable-hw-vlan-strip - testpmd> set fwd mac - testpmd> start - testpmd> show port info 0 - -5. Check the MTU value of virtio in testpmd on host is 9000:: + taskset -c 32 qemu-system-x86_64 -name vm0 \ + -enable-kvm -pidfile /tmp/.vm0.pid -daemonize -monitor unix:/tmp/vm0_monitor.sock,server,nowait \ + -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 \ + -device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:01,mrg_rxbuf=on,host_mtu=9000 -cpu host -smp 8 \ + -m 8192 -object memory-backend-file,id=mem,size=8192M,mem-path=/mnt/huge,share=on -numa node,memdev=mem \ + -mem-prealloc -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 -vnc :4 -drive file=/home/image/ubuntu2004.img + +3. Use the ifconfig command to check the MTU value of virtio kernel driver is 9000 in VM. + +4. Check the MTU value of virtio in testpmd on host is 9000:: testpmd> show port info 1 -6. Repeat the step 2 ~ 5, change the mtu value to 68, 65535(the minimal value +5. Repeat the step 2 ~ 4, change the mtu value to 68, 65535(the minimal value and maximum value), verify the value is changed. + -- 2.25.1