From patchwork Tue Aug 30 02:47:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 115633 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 06437A04FD; Tue, 30 Aug 2022 04:47:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD139427F7; Tue, 30 Aug 2022 04:47:41 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id CB29140F17 for ; Tue, 30 Aug 2022 04:47:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661827660; x=1693363660; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FdQge3NQ3tGmg6oz88OEMFY6GbemMuNk9HWbJJQqbO4=; b=A4iLNJbSQCP7t8dntz2VZDlwT8MJdNTuCdmtDSHquT4692o9GIhu4ERa Ik83xJI4qAHyBB51IURlkU+l4KmkRWa3JZQS25XlP51/+od+QrHA4tVrF x9ZoZZgIgnJ5jvUz+erWg9EEpmxy0jR5bH0RDbcuSRl+YhOY2cFtmMsud kv6+XrxzA/E1tQ+SmkFcHR86BUh4CeUKYQBuLyXYePpFQz4v8eCXAsBJW IkClKp2eb6qqFjtISuKenkVCz3ZIQZy49REfb7ibvpiDkcU60b57j5Uvf MdhKxnMxPa1/JPnZYXoEJH0LR7nkqTADK7WvMPOW8JXVcC63j7ojWxxF5 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10454"; a="359024441" X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="359024441" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2022 19:47:31 -0700 X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="641181893" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2022 19:47:30 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li , Jiale Song Subject: [dts][PATCH V3 02/10] test_plans/vf_offload: update dts code for dpdk csum change Date: Tue, 30 Aug 2022 10:47:32 +0800 Message-Id: <20220830024740.26250-2-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220830024740.26250-1-weiyuanx.li@intel.com> References: <20220830024740.26250-1-weiyuanx.li@intel.com> MIME-Version: 1.0 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 dpdk commit 9b4ea7ae77fa(app/testpmd: revert MAC update in checksum forwarding) modify the script adapt to this chagne. 1. Modify VF case to enable promisc. 2. Modify PF case to send packet dst mac is random. Signed-off-by: Weiyuan Li Signed-off-by: Weiyuan Li Tested-by: Jiale Song < songx.jiale@intel.com> --- Tested-by: Jiale Song < songx.jiale@intel.com> v2: -Enable promisc mode in testpmd v3: -Test plan csum add enable promisc mode test_plans/vf_offload_test_plan.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test_plans/vf_offload_test_plan.rst b/test_plans/vf_offload_test_plan.rst index 522fc017..ba490e06 100644 --- a/test_plans/vf_offload_test_plan.rst +++ b/test_plans/vf_offload_test_plan.rst @@ -17,6 +17,11 @@ to the device under test:: modprobe vfio-pci usertools/dpdk-devbind.py --bind=vfio-pci device_bus_id +IP link set VF trust on and spoofchk off on DUT:: + + ip link set $PF_INTF vf 0 trust on + ip link set $PF_INTF vf 0 spoofchk off + Assuming that ports ``0`` and ``1`` are connected to a traffic generator, enable hardware rx checksum offload with "--enable-rx-cksum", launch the ``testpmd`` with the following arguments:: @@ -71,6 +76,7 @@ Enable the IPv4/UDP/TCP/SCTP HW checksum offload on port 0:: testpmd> csum set udp hw 0 testpmd> csum set sctp hw 0 testpmd> port start all + testpmd> set promisc 0 on testpmd> start csum packet forwarding - CRC stripping disabled - packets/burst=32 nb forwarding cores=1 - nb forwarding ports=10 @@ -110,6 +116,7 @@ Enable the IPv4/UDP/TCP/SCTP SW checksum offload on port 0:: testpmd> csum set udp sw 0 testpmd> csum set sctp sw 0 testpmd> port start all + testpmd> set promisc 0 on testpmd> start csum packet forwarding - CRC stripping disabled - packets/burst=32 nb forwarding cores=1 - nb forwarding ports=10 @@ -154,6 +161,7 @@ and checksum on rx port. The test commands is below:: testpmd> csum set udp hw 0 testpmd> csum set sctp hw 0 testpmd> port start all + testpmd> set promisc 0 on testpmd> set fwd csum # Enable TSO on tx port @@ -185,6 +193,7 @@ Launch the userland ``testpmd`` application on DUT as follows:: testpmd> csum set tcp hw 0 testpmd> csum set udp hw 0 testpmd> csum set sctp hw 0 + testpmd> set promisc 0 on testpmd> port start all # Enable TSO on tx port