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 83A2BA0032; Fri, 24 Jun 2022 07:33:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7EFD640E2D; Fri, 24 Jun 2022 07:33:58 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id A566040A82 for ; Fri, 24 Jun 2022 07:33:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656048836; x=1687584836; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=JUf25Rlu9bzi0cEt9fiokfhbNRUbKasjwmFZHRLW8FM=; b=Y5YODLUHOhVUke7KzfsI5/8x/rFWgCOzFGNoZxs5B1J9tdEr7H2dANet MMVcIiFIaN16v0O3sumftUQUeUTvnI2nWeGi36lkwqs0TshImUaH+ZNyU MXLjJ4qyDBVtwwLH+BZi+NIxrfR0PScloIONRM2ssjFCTl/kvqGfqrq1p cZvh+NKQQfHS9FOzdVqQbUsYzOeJEYcD5Q8XGXguS+R4g9N5+Q83UA5LG 490wzme+dfI3V7FZ4lpFCd64mejCYo509pCS+vhKXJLP8icke96fdFJpt sE35vXjInPe55e7y9N1shhxJsHa1EQdMRSIGiXnoS23AFYSSTKppTCvde A==; X-IronPort-AV: E=McAfee;i="6400,9594,10387"; a="279693325" X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="279693325" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 22:33:55 -0700 X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="645115542" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 22:33:54 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 1/6] test_plans/dpdk_gro_lib_test_plan: delete modify dpdk code by dpdk change Date: Fri, 24 Jun 2022 01:31:20 -0400 Message-Id: <20220624053120.2831964-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=y 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 According to the dpdk commit 1945c64674(app/testpmd: perform SW IP checksum for GRO/GSO packets) and commit 8ba1723783(net/vhost: perform SW checksum in Tx path), no need to modify DPDK code to test. Signed-off-by: Wei Ling --- test_plans/dpdk_gro_lib_test_plan.rst | 46 --------------------------- 1 file changed, 46 deletions(-) diff --git a/test_plans/dpdk_gro_lib_test_plan.rst b/test_plans/dpdk_gro_lib_test_plan.rst index e8c2472f..e36550d2 100644 --- a/test_plans/dpdk_gro_lib_test_plan.rst +++ b/test_plans/dpdk_gro_lib_test_plan.rst @@ -41,47 +41,6 @@ also cover lightmode and heavymode test. Prerequisites ============= -Modify the testpmd code as following:: - - --- a/app/test-pmd/csumonly.c - +++ b/app/test-pmd/csumonly.c - @@ -693,10 +693,12 @@ pkt_burst_checksum_forward(struct fwd_stream *fs) -                  * and inner headers */ -   -                 eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *); - +#if 0 -                 ether_addr_copy(&peer_eth_addrs[fs->peer_addr], -                                 ð_hdr->d_addr); -                 ether_addr_copy(&ports[fs->tx_port].eth_addr, -                                 ð_hdr->s_addr); - +#endif -                 parse_ethernet(eth_hdr, &info); -                 l3_hdr = (char *)eth_hdr + info.l2_len; - -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; - } - Test flow ========= @@ -321,11 +280,6 @@ Vxlan topology Test Case5: DPDK GRO test with 2 queues using tcp/ipv4 traffic ============================================================== -Test flow -========= - -NIC2(In kernel) -> NIC1(DPDK) -> testpmd(csum fwd) -> Vhost -> Virtio-net - 1. Connect two nic port directly, put nic2 into another namesapce and turn on the tso of this nic port by below cmds:: ip netns del ns1 -- 2.25.1