From patchwork Wed Nov 16 02:16:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 119883 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 62D16A00C4; Wed, 16 Nov 2022 03:21:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C3DF410D2; Wed, 16 Nov 2022 03:21:36 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 8A94A40DFB for ; Wed, 16 Nov 2022 03:21:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668565294; x=1700101294; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iq3+7djd6iuT5CsmtPmJAcCLRuFjOhfSDaU7jiBVnt0=; b=byCF5oSLSQYzvOGLlXFHvT47w8UnJzhtIUb3RV/EFI7eVrtjo3jMWzit kcvhiLsSQfVbM1SjTy2EGhz7xOKCpu6NI/JNYuJeigZT311Pi2WVA6uYw mBrvmxh8CsFxO+kTgXetNqigT//U9L1tB6im5XrGdR0Sz1sPTcdpGbNKO 9ULnAZKjC0mY59wt5BKHiybJ5Ep2DdCO4lTnwdeqaAq9Sr0nrEkX4ICtr 3E6nzEskZGrI1XrsOV/kpQOtrqJ+hCGgqLAZdc3szKSmOMGPt+KU8g04s +N53ZXdJPbA5e+l+QwLlR1T3BEy4/fS4G/ATIlZAdzAMlk089rRzmk8lA w==; X-IronPort-AV: E=McAfee;i="6500,9779,10532"; a="312431205" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="312431205" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2022 18:21:33 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10532"; a="670313631" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="670313631" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2022 18:21:31 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 1/2] test_plans/dpdk_gro_lib_test_plan: modify testplan by DPDK changed Date: Wed, 16 Nov 2022 10:16:21 +0800 Message-Id: <20221116021621.612168-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 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 As DPDK commit 236bc417(app/testpmd: fix MAC header in checksum forward engine),need to add `csum mac-swap off ` steps in testplan. Signed-off-by: Wei Ling --- test_plans/dpdk_gro_lib_test_plan.rst | 36 +++++++++++++++++---------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/test_plans/dpdk_gro_lib_test_plan.rst b/test_plans/dpdk_gro_lib_test_plan.rst index e36550d2..a48286eb 100644 --- a/test_plans/dpdk_gro_lib_test_plan.rst +++ b/test_plans/dpdk_gro_lib_test_plan.rst @@ -63,6 +63,8 @@ Test Case1: DPDK GRO lightmode test with tcp/ipv4 traffic ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 2-4 -n 4 \ --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i --txd=1024 --rxd=1024 testpmd>set fwd csum + testpmd>csum mac-swap off 0 + testpmd>csum mac-swap off 1 testpmd>stop testpmd>port stop 0 testpmd>port stop 1 @@ -115,6 +117,8 @@ Test Case2: DPDK GRO heavymode test with tcp/ipv4 traffic ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 2-4 -n 4 \ --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i --txd=1024 --rxd=1024 testpmd>set fwd csum + testpmd>csum mac-swap off 0 + testpmd>csum mac-swap off 1 testpmd>stop testpmd>port stop 0 testpmd>port stop 1 @@ -167,6 +171,8 @@ Test Case3: DPDK GRO heavymode_flush4 test with tcp/ipv4 traffic ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 2-4 -n 4 \ --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i --txd=1024 --rxd=1024 testpmd>set fwd csum + testpmd>csum mac-swap off 0 + testpmd>csum mac-swap off 1 testpmd>stop testpmd>port stop 0 testpmd>port stop 1 @@ -235,6 +241,8 @@ Vxlan topology ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 2-4 -n 4 \ --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i --txd=1024 --rxd=1024 testpmd>set fwd csum + testpmd>csum mac-swap off 0 + testpmd>csum mac-swap off 1 testpmd>stop testpmd>port stop 0 testpmd>port stop 1 @@ -293,19 +301,21 @@ Test Case5: DPDK GRO test with 2 queues using tcp/ipv4 traffic ./usertools/dpdk-devbind.py -b vfio-pci xx:xx.x ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29-31 -n 4 \ --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=2' -- -i --txd=1024 --rxd=1024 --txq=2 --rxq=2 --nb-cores=2 - set fwd csum - stop - port stop 0 - port stop 1 - csum set tcp hw 0 - csum set ip hw 0 - csum set tcp hw 1 - csum set ip hw 1 - set port 0 gro on - set gro flush 1 - port start 0 - port start 1 - start + testpmd>set fwd csum + testpmd>csum mac-swap off 0 + testpmd>csum mac-swap off 1 + testpmd>stop + testpmd>port stop 0 + testpmd>port stop 1 + testpmd>csum set tcp hw 0 + testpmd>csum set ip hw 0 + testpmd>csum set tcp hw 1 + testpmd>csum set ip hw 1 + testpmd>set port 0 gro on + testpmd>set gro flush 1 + testpmd>port start 0 + testpmd>port start 1 + testpmd>start 3. Set up vm with virto device and using kernel virtio-net driver:: From patchwork Wed Nov 16 02:16:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 119884 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 864A1A00C4; Wed, 16 Nov 2022 03:21:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 81485410EA; Wed, 16 Nov 2022 03:21:44 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id C90EB40DFB for ; Wed, 16 Nov 2022 03:21:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668565302; x=1700101302; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DEFnZ0QDbawt2bZPbZOeAVeq/g53LEgInrn7WfBbngE=; b=HqZJFLoIL5oFC/Kpkp/Mgl3PaZkvoZHMpj+6L79fAyfEvBUKRwHUzx+v miqbV6U4r3b381R30q4C57+D9EGfGYkL2SQndioye8/ZBMyLk9T+mN6kt qQbyRDEVtg9VNegdQrpGitGeeyZjGL5A43bdzdk5iFRuTuiF813nL/y2u 8buqqO/uijSK0Iu3V/dxB/oP3GWa5hOrCMm5Cp+JlyNro9C3fwCwGPUtH XPLu0BW2q02JJD/f1jCJu1wV3Zod/iDdXYWzX+U7Ch30X6B2L1hcjRy6u gBQUcQcPILUoLrJLAAXViYWwlMkowksSY83vrUr7HToTAo5YdERC8aYlj g==; X-IronPort-AV: E=McAfee;i="6500,9779,10532"; a="312431220" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="312431220" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2022 18:21:41 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10532"; a="670313671" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="670313671" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2022 18:21:40 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 2/2] tests/dpdk_gro_lib: modify testsuite by DPDK changed Date: Wed, 16 Nov 2022 10:16:30 +0800 Message-Id: <20221116021630.612263-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 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 As DPDK commit 236bc417(app/testpmd: fix MAC header in checksum forward engine),need to add `csum mac-swap off ` steps in testsuite. Signed-off-by: Wei Ling --- tests/TestSuite_dpdk_gro_lib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/TestSuite_dpdk_gro_lib.py b/tests/TestSuite_dpdk_gro_lib.py index 0f44d666..1d3f809b 100644 --- a/tests/TestSuite_dpdk_gro_lib.py +++ b/tests/TestSuite_dpdk_gro_lib.py @@ -111,6 +111,8 @@ class TestDPDKGROLib(TestCase): def set_testpmd_params(self, mode=1): # set testpmd params self.vhost_user.send_expect("set fwd csum", "testpmd> ", 120) + self.vhost_user.send_expect("csum mac-swap off 0", "testpmd> ", 120) + self.vhost_user.send_expect("csum mac-swap off 1", "testpmd> ", 120) self.vhost_user.send_expect("stop", "testpmd> ", 120) self.vhost_user.send_expect("port stop 0", "testpmd> ", 120) self.vhost_user.send_expect("port stop 1", "testpmd> ", 120)