From patchwork Fri Aug 26 02:43:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 115441 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 CA009A0552; Fri, 26 Aug 2022 04:43:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C13FE410D0; Fri, 26 Aug 2022 04:43:12 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 53C0A400D6 for ; Fri, 26 Aug 2022 04:43:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661481791; x=1693017791; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WKWhjwRjGa8JGHN8oOXMfUuBV7P3LeajpkynS8zOZp4=; b=McFIOoJSXRPQ1ICXWJmchklCQ7l5WvAerDl7EXCVUc+FF0W2C7af7cC7 5QD0QiDOQjmFciUUEqJ/iugM9lwrI0+3I32TO/63RU/ryH8zDGKod6fwM bOCYk6c7f/9QcYA4R/Q/5zbVWNRX4CQArS+4gYLlE23bOHhTWnpxXfjpP lSMmca/zCYNO5laLHwASl0qczaYH9klYh7Ch4hgiaFBmKWksZ3VzLbP+w 9lB6qwtseZ5gvKpfBTde0Gflx8LpUGc8gWIfIHk0omlqMRZGnojLy0ENN 29sNcolAz0PXFZCkCHJWxqDWOhFjiD8M7d0mHEWwdx4cjxeHp+2577SJT A==; X-IronPort-AV: E=McAfee;i="6500,9779,10450"; a="295187343" X-IronPort-AV: E=Sophos;i="5.93,264,1654585200"; d="scan'208";a="295187343" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2022 19:43:09 -0700 X-IronPort-AV: E=Sophos;i="5.93,264,1654585200"; d="scan'208";a="671275182" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2022 19:43:08 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li , Jiale Song Subject: [dts][PATCH V2 02/10] test_plans/vf_offload: update dts code for dpdk csum change Date: Fri, 26 Aug 2022 10:43:00 +0800 Message-Id: <20220826024308.17447-2-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220826024308.17447-1-weiyuanx.li@intel.com> References: <20220826024308.17447-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 --- Tested-by: Jiale Song < songx.jiale@intel.com> test_plans/vf_offload_test_plan.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test_plans/vf_offload_test_plan.rst b/test_plans/vf_offload_test_plan.rst index 522fc017..d8cf8f1c 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::