From patchwork Thu Aug 20 10:12:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Wang, Yinan" X-Patchwork-Id: 75721 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 6CE69A04AF; Thu, 20 Aug 2020 03:22:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 244831BEC3; Thu, 20 Aug 2020 03:22:38 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id D8C191BEBA for ; Thu, 20 Aug 2020 03:22:35 +0200 (CEST) IronPort-SDR: Z/zkppYilIpk+8suV3VORZ8RzWmdBbe9oUxti2i0HyECYm/fJuyYfQEIA4PWoM5TbYZ4DmxBZn BMelX5d9sCdA== X-IronPort-AV: E=McAfee;i="6000,8403,9718"; a="156290804" X-IronPort-AV: E=Sophos;i="5.76,332,1592895600"; d="scan'208";a="156290804" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2020 18:22:34 -0700 IronPort-SDR: Cg/Rau9N2HNW4TXiSubYMym8Z2u2SbadQfUZ7V4HOuc8ErfKIsoUJEWwk/5hlXpm6j9zP9I6JL PI3/d9AZN73A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,332,1592895600"; d="scan'208";a="320681749" Received: from dpdk-yinan-ntb1.sh.intel.com ([10.67.119.39]) by fmsmga004.fm.intel.com with ESMTP; 19 Aug 2020 18:22:32 -0700 From: Yinan Wang To: dts@dpdk.org Cc: Yinan Wang Date: Thu, 20 Aug 2020 06:12:46 -0400 Message-Id: <20200820101246.15902-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Subject: [dts] [PATCH v1] test_plans/dpdk_gro_lib_test_plan.rst 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" Add vhost code change before test Signed-off-by: Yinan Wang --- test_plans/dpdk_gro_lib_test_plan.rst | 43 +++++++++++++++++---------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/test_plans/dpdk_gro_lib_test_plan.rst b/test_plans/dpdk_gro_lib_test_plan.rst index 410ae68..1ec8c23 100644 --- a/test_plans/dpdk_gro_lib_test_plan.rst +++ b/test_plans/dpdk_gro_lib_test_plan.rst @@ -84,12 +84,31 @@ Modify the testpmd code as following::                 parse_ethernet(eth_hdr, &info);                 l3_hdr = (char *)eth_hdr + info.l2_len; +Also modify the dpdk code as following:: + + --- a/drivers/net/vhost/rte_eth_vhost.c + +++ b/drivers/net/vhost/rte_eth_vhost.c + @@ -1071,8 +1071,14 @@ eth_dev_info(struct rte_eth_dev *dev, + dev_info->min_rx_bufsize = 0; + dev_info->tx_offload_capa = DEV_TX_OFFLOAD_MULTI_SEGS | + - DEV_TX_OFFLOAD_VLAN_INSERT; + - dev_info->rx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP; + + DEV_TX_OFFLOAD_VLAN_INSERT | + + DEV_TX_OFFLOAD_UDP_CKSUM | + + DEV_TX_OFFLOAD_TCP_CKSUM | + + DEV_TX_OFFLOAD_IPV4_CKSUM | + + DEV_TX_OFFLOAD_TCP_TSO; + + dev_info->rx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP | + + DEV_RX_OFFLOAD_TCP_CKSUM | + + DEV_RX_OFFLOAD_UDP_CKSUM | + + DEV_RX_OFFLOAD_IPV4_CKSUM | + + DEV_RX_OFFLOAD_TCP_LRO; + } + Test flow ========= -:: - - NIC2(In kernel) -> NIC1(DPDK) -> testpmd(csum fwd) -> Vhost -> Virtio-net +NIC2(In kernel) -> NIC1(DPDK) -> testpmd(csum fwd) -> Vhost -> Virtio-net Test Case1: DPDK GRO lightmode test with tcp/ipv4 traffic ========================================================= @@ -121,9 +140,7 @@ Test Case1: DPDK GRO lightmode test with tcp/ipv4 traffic testpmd>port start 1 testpmd>start -3. Set up vm with virto device and using kernel virtio-net driver: - - :: +3. Set up vm with virto device and using kernel virtio-net driver:: taskset -c 13 \ qemu-system-x86_64 -name us-vhost-vm1 \ @@ -176,9 +193,7 @@ Test Case2: DPDK GRO heavymode test with tcp/ipv4 traffic testpmd>port start 1 testpmd>start -3. Set up vm with virto device and using kernel virtio-net driver: - - :: +3. Set up vm with virto device and using kernel virtio-net driver:: taskset -c 13 \ qemu-system-x86_64 -name us-vhost-vm1 \ @@ -231,9 +246,7 @@ Test Case3: DPDK GRO heavymode_flush4 test with tcp/ipv4 traffic testpmd>port start 1 testpmd>start -3. Set up vm with virto device and using kernel virtio-net driver: - - :: +3. Set up vm with virto device and using kernel virtio-net driver:: taskset -c 13 \ qemu-system-x86_64 -name us-vhost-vm1 \ @@ -308,9 +321,7 @@ Vxlan topology testpmd>port start 1 testpmd>start -3. Set up vm with virto device and using kernel virtio-net driver: - - :: +3. Set up vm with virto device and using kernel virtio-net driver:: taskset -c 13 \ qemu-system-x86_64 -name us-vhost-vm1 \ @@ -335,4 +346,4 @@ Vxlan topology 5. Start iperf test, run iperf server at vm side and iperf client at host side, check throughput in log:: Host side : ip netns exec t2 iperf -c 50.1.1.2 -i 2 -t 60 -f g -m - VM side: iperf -s -f g \ No newline at end of file + VM side: iperf -s -f g