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 D87E1A00C4; Fri, 23 Dec 2022 02:04:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B36F142BB1; Fri, 23 Dec 2022 02:04:49 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 486C041156 for ; Fri, 23 Dec 2022 02:04:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671757488; x=1703293488; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FfxX/Ifk1r6Zwiqcvp2H+muI6byKuJjG2j2bcuInyg8=; b=GsbUgGoARBiLQb/7s2y6y5PpPDmm5q64KOLu4/hZWt4eY4btp9lIkCxf VDxC1aRbHIAmtcx5mVexUczyADoo7RCt/ppIoUzNzNkc8Fi0mltwFepD6 DxKBZmCsfI8sPFzhgS8DkOZ91Foh6TIMb17udqxHUjM4yQAszBQeUn+86 AXli8wB7qPXCfh8cxfQM9fNhx7bgP52lEo3oUwI035Dj7Y1V+ZS6CMTxx E+TSyCZ31sq3jaHsMxgAloBgwvKNUhwVHr1A+4p7eBWW16a+MA68ccNBK TFyVlydArGpAzqnTs601FjYizUTys7btlRpBEkl40YrS6+LLzoscRqVzu A==; X-IronPort-AV: E=McAfee;i="6500,9779,10569"; a="321453489" X-IronPort-AV: E=Sophos;i="5.96,267,1665471600"; d="scan'208";a="321453489" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2022 17:04:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10569"; a="759186884" X-IronPort-AV: E=Sophos;i="5.96,267,1665471600"; d="scan'208";a="759186884" Received: from dpdk-xuke-lab.sh.intel.com ([10.67.119.8]) by fmsmga002.fm.intel.com with ESMTP; 22 Dec 2022 17:04:44 -0800 From: Ke Xu To: dts@dpdk.org Cc: lijuan.tu@intel.com, qi.fu@intel.com, yuan.peng@intel.com, ke1.xu@intel.com Subject: [DTS][PATCH V2 2/3] test_plans/vf_offload: add packets count, super-long packets and random payload to the case. Date: Fri, 23 Dec 2022 09:02:43 +0800 Message-Id: <20221223010242.282584-3-ke1.xu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221223010242.282584-1-ke1.xu@intel.com> References: <20221223010242.282584-1-ke1.xu@intel.com> MIME-Version: 1.0 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 Long packet and repeating packet sending helps triggering potential failures. For example, in DPDK 20.11 there was an MDD problem when handling long packets with TSO enabled. Signed-off-by: Ke Xu --- test_plans/vf_offload_test_plan.rst | 155 +++++++++++++++------------- 1 file changed, 81 insertions(+), 74 deletions(-) diff --git a/test_plans/vf_offload_test_plan.rst b/test_plans/vf_offload_test_plan.rst index e5804fbf..00548a5a 100644 --- a/test_plans/vf_offload_test_plan.rst +++ b/test_plans/vf_offload_test_plan.rst @@ -316,75 +316,83 @@ on csum and enable tunnel tso as below:: testpmd> tunnel_tso set 800 1 Configure the traffic generator to send the multiple packets for the following -combination: - - +----------------+----------------------------------------+ - | packet type | packet organization | - +================+========================================+ - | | Ether / IPv4 / TCP / payload len 128 | - | +----------------------------------------+ - | | Ether / IPv4 / TCP / payload len 800 | - | +----------------------------------------+ - | | Ether / IPv4 / TCP / payload len 801 | - | +----------------------------------------+ - | | Ether / IPv4 / TCP / payload len 1700 | - | non-tunneling +----------------------------------------+ - | packets for | Ether / IPv4 / TCP / payload len 2500 | - | TSO test +----------------------------------------+ - | | Ether / IPv6 / TCP / payload len 128 | - | +----------------------------------------+ - | | Ether / IPv6 / TCP / payload len 800 | - | +----------------------------------------+ - | | Ether / IPv6 / TCP / payload len 801 | - | +----------------------------------------+ - | | Ether / IPv6 / TCP / payload len 1700 | - | +----------------------------------------+ - | | Ether / IPv6 / TCP / payload len 2500 | - +----------------+----------------------------------------+ - | | Ether / IPv4 / UDP / VXLAN / Ether | - | +----------------------------------------+ - | | Ether / IPv6 / UDP / VXLAN / Ether | - | +----------------------------------------+ - | | Ether / IPv4 / GRE | - | outer and +----------------------------------------+ - | tunneling | Ether / IPv4 / GRE / Ether | - | packets +----------------------------------------+ - | for tso test | Ether / IPv6 / GRE | - | +----------------------------------------+ - | | Ether / IPv6 / GRE / Ether | - | +----------------------------------------+ - | | Ether / IPv4 / NVGRE | - | +----------------------------------------+ - | | Ether / IPv4 / NVGRE / Ether | - | +----------------------------------------+ - | | Ether / IPv6 / NVGRE | - | +----------------------------------------+ - | | Ether / IPv6 / NVGRE / Ether | - | +----------------------------------------+ - | | Ether / IPv4 / UDP / GTPU | - | +----------------------------------------+ - | | Ether / IPv6 / UDP / GTPU | - +----------------+----------------------------------------+ - | | IPv4 / TCP / payload len 128 | - | +----------------------------------------+ - | | IPv4 / TCP / payload len 800 | - | +----------------------------------------+ - | | IPv4 / TCP / payload len 801 | - | +----------------------------------------+ - | | IPv4 / TCP / payload len 1700 | - | +----------------------------------------+ - | inner packets | IPv4 / TCP / payload len 2500 | - | for TSO test +----------------------------------------+ - | | IPv6 / TCP / payload len 128 | - | +----------------------------------------+ - | | IPv6 / TCP / payload len 800 | - | +----------------------------------------+ - | | IPv6 / TCP / payload len 801 | - | +----------------------------------------+ - | | IPv6 / TCP / payload len 1700 | - | +----------------------------------------+ - | | IPv6 / TCP / payload len 2500 | - +----------------+----------------------------------------+ +combination, each combination for several times: + + +----------------+----------------------------------------+---------------+ + | packet type | packet organization | packet count | + +================+========================================+===============+ + | | Ether / IPv4 / TCP / payload len 128 | 10 | + | +----------------------------------------+---------------+ + | | Ether / IPv4 / TCP / payload len 800 | 10 | + | +----------------------------------------+---------------+ + | | Ether / IPv4 / TCP / payload len 801 | 10 | + | +----------------------------------------+---------------+ + | | Ether / IPv4 / TCP / payload len 1700 | 10 | + | +----------------------------------------+---------------+ + | | Ether / IPv4 / TCP / payload len 2500 | 10 | + | non-tunneling +----------------------------------------+---------------+ + | packets for | Ether / IPv4 / TCP / payload len 8500 | 1000 | + | TSO test +----------------------------------------+---------------+ + | | Ether / IPv6 / TCP / payload len 128 | 10 | + | +----------------------------------------+---------------+ + | | Ether / IPv6 / TCP / payload len 800 | 10 | + | +----------------------------------------+---------------+ + | | Ether / IPv6 / TCP / payload len 801 | 10 | + | +----------------------------------------+---------------+ + | | Ether / IPv6 / TCP / payload len 1700 | 10 | + | +----------------------------------------+---------------+ + | | Ether / IPv6 / TCP / payload len 2500 | 10 | + | +----------------------------------------+---------------+ + | | Ether / IPv6 / TCP / payload len 8500 | 1000 | + +----------------+----------------------------------------+---------------+ + | | Ether / IPv4 / UDP / VXLAN / Ether | N/A | + | +----------------------------------------+---------------+ + | | Ether / IPv6 / UDP / VXLAN / Ether | N/A | + | +----------------------------------------+---------------+ + | | Ether / IPv4 / GRE | N/A | + | outer and +----------------------------------------+---------------+ + | tunneling | Ether / IPv4 / GRE / Ether | N/A | + | packets +----------------------------------------+---------------+ + | for tso test | Ether / IPv6 / GRE | N/A | + | +----------------------------------------+---------------+ + | | Ether / IPv6 / GRE / Ether | N/A | + | +----------------------------------------+---------------+ + | | Ether / IPv4 / NVGRE | N/A | + | +----------------------------------------+---------------+ + | | Ether / IPv4 / NVGRE / Ether | N/A | + | +----------------------------------------+---------------+ + | | Ether / IPv6 / NVGRE | N/A | + | +----------------------------------------+---------------+ + | | Ether / IPv6 / NVGRE / Ether | N/A | + | +----------------------------------------+---------------+ + | | Ether / IPv4 / UDP / GTPU | N/A | + | +----------------------------------------+---------------+ + | | Ether / IPv6 / UDP / GTPU | N/A | + +----------------+----------------------------------------+---------------+ + | | IPv4 / TCP / payload len 128 | 10 | + | +----------------------------------------+---------------+ + | | IPv4 / TCP / payload len 800 | 10 | + | +----------------------------------------+---------------+ + | | IPv4 / TCP / payload len 801 | 10 | + | +----------------------------------------+---------------+ + | | IPv4 / TCP / payload len 1700 | 10 | + | +----------------------------------------+---------------+ + | | IPv4 / TCP / payload len 2500 | 10 | + | +----------------------------------------+---------------+ + | inner packets | IPv4 / TCP / payload len 8500 | 1000 | + | for TSO test +----------------------------------------+---------------+ + | | IPv6 / TCP / payload len 128 | 10 | + | +----------------------------------------+---------------+ + | | IPv6 / TCP / payload len 800 | 10 | + | +----------------------------------------+---------------+ + | | IPv6 / TCP / payload len 801 | 10 | + | +----------------------------------------+---------------+ + | | IPv6 / TCP / payload len 1700 | 10 | + | +----------------------------------------+---------------+ + | | IPv6 / TCP / payload len 2500 | 10 | + | +----------------------------------------+---------------+ + | | IPv6 / TCP / payload len 8500 | 1000 | + +----------------+----------------------------------------+---------------+ Notice that VxLAN needs DCF to configure, so testing of VxLAN may need to perform on DCF. @@ -427,12 +435,11 @@ Launch the userland ``testpmd`` application on DUT as follows:: Test IPv4() in scapy:: - sendp([Ether(dst="%s", src="52:00:00:00:00:00")/IP(src="192.168.1.1",dst="192.168.1.2")/TCP(sport=1021,dport=1021)/Raw(load="\x50"*%s)], iface="%s") + sendp([Ether(dst="%s", src="52:00:00:00:00:00")/IP(src="192.168.1.1",dst="192.168.1.2")/TCP(sport=1021,dport=1021)/Raw(load=RandString(size=%s))], iface="%s", count = %s) Test IPv6() in scapy:: - sendp([Ether(dst="%s", src="52:00:00:00:00:00")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=1021,dport=1021)/Raw(load="\x50"*%s)], iface="%s") - + sendp([Ether(dst="%s", src="52:00:00:00:00:00")/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=1021,dport=1021)/Raw(load=RandString(size=%s))], iface="%s", count = %s) Test case: csum fwd engine, use tunnel TSO ========================================== @@ -479,9 +486,9 @@ Launch the userland ``testpmd`` application on DUT as follows:: Test IPv4() in scapy:: for one_outer_packet in outer_packet_list: - sendp([Ether(dst="%s", src="52:00:00:00:00:00")/one_outer_packet/IP(src="192.168.1.1",dst="192.168.1.2")/TCP(sport=1021,dport=1021)/Raw(load="\x50"*%s)], iface="%s") + sendp([Ether(dst="%s", src="52:00:00:00:00:00")/one_outer_packet/IP(src="192.168.1.1",dst="192.168.1.2")/TCP(sport=1021,dport=1021)/Raw(load=RandString(size=%s))], iface="%s", count = %s) Test IPv6() in scapy:: for one_outer_packet in outer_packet_list: - sendp([Ether(dst="%s", src="52:00:00:00:00:00")/one_outer_packet/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=1021,dport=1021)/Raw(load="\x50"*%s)], iface="%s") + sendp([Ether(dst="%s", src="52:00:00:00:00:00")/one_outer_packet/IPv6(src="FE80:0:0:0:200:1FF:FE00:200", dst="3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=1021,dport=1021)/Raw(load=RandString(size=%s))], iface="%s", count = %s) -- 2.25.1