From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 24C67A04C9; Tue, 15 Sep 2020 13:41:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1BB7C1C0D2; Tue, 15 Sep 2020 13:41:21 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 85D1E1BE8E for ; Tue, 15 Sep 2020 13:41:19 +0200 (CEST) IronPort-SDR: cKvu2xtKYkjE43L0WfjiBt21PRD4QvYhpeSF6Ui8/YGdvGP/AqSUiz+HQMKZZ3qR+bFWrqQR5/ ZGPIjQaU9Glw== X-IronPort-AV: E=McAfee;i="6000,8403,9744"; a="223423701" X-IronPort-AV: E=Sophos;i="5.76,429,1592895600"; d="scan'208";a="223423701" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2020 04:41:19 -0700 IronPort-SDR: Y/SLIJt6WdsOQMPHLjkjfMB8Rxly7LxRz90vCp6Op8HTo2/ySJwxfjjGJaavktsuGR9OBWw+x2 DD9L02NtfIOg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,429,1592895600"; d="scan'208";a="379710582" Received: from unknown (HELO dpdk-zhaohy-t.localdomain) ([10.240.183.68]) by orsmga001.jf.intel.com with ESMTP; 15 Sep 2020 04:41:17 -0700 From: Haiyang Zhao To: dts@dpdk.org Cc: Haiyang Zhao Date: Tue, 15 Sep 2020 19:24:39 +0800 Message-Id: <1600169086-340540-11-git-send-email-haiyangx.zhao@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1600169086-340540-1-git-send-email-haiyangx.zhao@intel.com> References: <1600169086-340540-1-git-send-email-haiyangx.zhao@intel.com> Subject: [dts] [PATCH V1 10/17] test_plans/dpdk_gro_lib_test_plan: fix build warnings and errors 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" *.fix build warnings and errors Signed-off-by: Haiyang Zhao --- test_plans/dpdk_gro_lib_test_plan.rst | 57 ++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/test_plans/dpdk_gro_lib_test_plan.rst b/test_plans/dpdk_gro_lib_test_plan.rst index ea0244c..60a0123 100644 --- a/test_plans/dpdk_gro_lib_test_plan.rst +++ b/test_plans/dpdk_gro_lib_test_plan.rst @@ -89,27 +89,27 @@ Modify the testpmd code as following:: Modify the dpdk code as following:: -diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c -index b38a4b6b1..573250dbe 100644 ---- 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; - } + diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c + index b38a4b6b1..573250dbe 100644 + --- 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 ========= @@ -148,7 +148,7 @@ Test Case1: DPDK GRO lightmode test with tcp/ipv4 traffic 3. Set up vm with virto device and using kernel virtio-net driver:: - taskset -c 13 qemu-system-x86_64 -name us-vhost-vm1 \ + taskset -c 13 qemu-system-x86_64 -name us-vhost-vm1 \ -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on \ -numa node,memdev=mem \ -mem-prealloc -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,macaddr=00:00:00:08:e8:aa,addr=1f -net user,hostfwd=tcp:127.0.0.1:6001-:22 \ @@ -200,7 +200,7 @@ Test Case2: DPDK GRO heavymode test with tcp/ipv4 traffic 3. Set up vm with virto device and using kernel virtio-net driver:: - taskset -c 13 qemu-system-x86_64 -name us-vhost-vm1 \ + taskset -c 13 qemu-system-x86_64 -name us-vhost-vm1 \ -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on \ -numa node,memdev=mem \ -mem-prealloc -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,macaddr=00:00:00:08:e8:aa,addr=1f -net user,hostfwd=tcp:127.0.0.1:6001-:22 \ @@ -252,7 +252,7 @@ Test Case3: DPDK GRO heavymode_flush4 test with tcp/ipv4 traffic 3. Set up vm with virto device and using kernel virtio-net driver:: - taskset -c 13 qemu-system-x86_64 -name us-vhost-vm1 \ + taskset -c 13 qemu-system-x86_64 -name us-vhost-vm1 \ -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on \ -numa node,memdev=mem \ -mem-prealloc -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,macaddr=00:00:00:08:e8:aa,addr=1f -net user,hostfwd=tcp:127.0.0.1:6001-:22 \ @@ -278,10 +278,11 @@ Test Case4: DPDK GRO test with vxlan traffic Vxlan topology -------------- VM Host + 50.1.1.2 50.1.1.1 - | | + \| | 1.1.2.3 1.1.2.4 - |------------Testpmd------------| + \|------------Testpmd------------| 1. Connect two nic port directly, put nic2 into another namesapce and create Host VxLAN port:: @@ -322,7 +323,7 @@ Vxlan topology 3. Set up vm with virto device and using kernel virtio-net driver:: - taskset -c 13 qemu-system-x86_64 -name us-vhost-vm1 \ + taskset -c 13 qemu-system-x86_64 -name us-vhost-vm1 \ -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on \ -numa node,memdev=mem \ -mem-prealloc -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,macaddr=00:00:00:08:e8:aa,addr=1f -net user,hostfwd=tcp:127.0.0.1:6001-:22 \ @@ -383,7 +384,7 @@ NIC2(In kernel) -> NIC1(DPDK) -> testpmd(csum fwd) -> Vhost -> Virtio-net 3. Set up vm with virto device and using kernel virtio-net driver:: - taskset -c 31 /home/qemu-install/qemu-3.0/bin/qemu-system-x86_64 -name us-vhost-vm1 \ + taskset -c 31 /home/qemu-install/qemu-3.0/bin/qemu-system-x86_64 -name us-vhost-vm1 \ -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on \ -numa node,memdev=mem \ -mem-prealloc -monitor unix:/tmp/vm2_monitor.sock,server,nowait -netdev user,id=yinan,hostfwd=tcp:127.0.0.1:6005-:22 -device e1000,netdev=yinan \ -- 1.8.3.1