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 4457AA04A8; Mon, 24 Jan 2022 08:58:13 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E52A8427BC; Mon, 24 Jan 2022 08:58:12 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 6F21540040 for ; Mon, 24 Jan 2022 08:58:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643011092; x=1674547092; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zF972p9MZVwA77z9mCc/t9zHlgqg9JSzXQB9BkcMVes=; b=S47rrXr+OxsKGG3coBK+zGV0r3TNl2zDJDJCqkXdbPEzLPvdp3RcN8B0 7j3sMVzlseFqlX8MRjev2lv2zc6jYYo2DIPZiFdZEt41yu8HpHmz5IfUq E2dF8ZTjXyA+H1GCBPjnj2hoIDtrWqrI/sLSqISa+6LbCWh75rau+L1YA 8Gj0U9xpBpUKDQxuCyKJ3Gfhw47+PYG+gk06YnDmadhJ1O5w5Gc+sF6EW 6R51CE1koXUnryXPOmjU2bkMAcNZGbaRdbE4XilgdpgTJ6Zax3p03ICZ5 kSnnV7VQpFrG4lmePliq/ZU7/Ek7nZAu79LSonnoHgYUlWQ5oXBp+Dn58 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10236"; a="332344572" X-IronPort-AV: E=Sophos;i="5.88,311,1635231600"; d="scan'208";a="332344572" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2022 23:58:09 -0800 X-IronPort-AV: E=Sophos;i="5.88,311,1635231600"; d="scan'208";a="476630435" Received: from unknown (HELO localhost.localdomain) ([10.239.251.93]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2022 23:58:08 -0800 From: Zhimin Huang To: dts@dpdk.org, yuan.peng@intel.com Cc: Zhimin Huang Subject: [dts][PATCH V3 3/4] test_plans/cvl_advanced_rss_test_plan:modify testplan Date: Tue, 25 Jan 2022 00:26:57 +0800 Message-Id: <20220124162658.21937-4-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220124162658.21937-1-zhiminx.huang@intel.com> References: <20220124162658.21937-1-zhiminx.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 1.modify about tx checksum test steps 2.add mark to support fdir rule. Signed-off-by: Zhimin Huang --- test_plans/cvl_advanced_rss_test_plan.rst | 34 ++++++++++++++--------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/test_plans/cvl_advanced_rss_test_plan.rst b/test_plans/cvl_advanced_rss_test_plan.rst index 83ebf66d..4e119422 100644 --- a/test_plans/cvl_advanced_rss_test_plan.rst +++ b/test_plans/cvl_advanced_rss_test_plan.rst @@ -2376,8 +2376,8 @@ Test case: Checksum for different payload length 8. Send packets of step 2. Check the IPV4/UDP/TCP/SCTP packets with different payload length have different hash value. -Test case: Set HW csum, flow rule doesn’t impact RX checksum and TX checksum -============================================================================ +Test case: Set HW csum, flow rule does not impact RX checksum and TX checksum +============================================================================= 1. launch testpmd without "--disable-rss":: ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c f -n 6 -- -i --rxq=16 --txq=16 @@ -2394,9 +2394,14 @@ Test case: Set HW csum, flow rule doesn’t impact RX checksum and TX checksum set verbose 1 start -3. Capture the tx packet at tester port:: +3. Capture the tx packet at tester port and check checksum values same as expect pkts:: - tcpdump -i enp216s0f0 -Q in -e -n -v -x + take a IPV4 for example: + p = Ether(dst="00:11:22:33:44:55", src="52:00:00:00:00:00")/IP(src="192.168.0.1")/("X"*48) + p.show2() + expect pkts checksum value: chksum= 0x3b0f + + tcpdump -i ens7 'ether src 40:a6:b7:0b:76:28 and ether[12:2] != 0x88cc' -Q in -w /tmp/tester/sniff_ens7.pcap -c 7 4. Send packets:: @@ -2408,7 +2413,10 @@ Test case: Set HW csum, flow rule doesn’t impact RX checksum and TX checksum p6=Ether(dst="00:11:22:33:44:55", src="52:00:00:00:00:00")/IPv6()/UDP(sport=22, chksum=0xe38)/("X"*48) p7=Ether(dst="00:11:22:33:44:55", src="52:00:00:00:00:00")/IPv6()/SCTP(sport=22, chksum=0xf)/("X"*48) - Check rx checksum good or bad, check if the tx checksum correct. + take a IPV4 for example: + get sniff_ens7.pcap checksum value: 0x3b0f + + check the tx checksum correct. 5. Create rss rules with chsum as inputset:: @@ -2420,7 +2428,7 @@ Test case: Set HW csum, flow rule doesn’t impact RX checksum and TX checksum flow create 0 ingress pattern eth / ipv6 / udp / end actions rss types l4-chksum end queues end / end flow create 0 ingress pattern eth / ipv6 / sctp / end actions rss types l4-chksum end queues end / end -6. Send the same packets, check the hash value changed, check rx and tx checksum, get the same result. +6. repeat 3-4 steps, send the same packets, check the hash value changed, check rx and tx checksum, get the same result. Test case: Combined case with fdir queue group ============================================== @@ -2433,12 +2441,12 @@ Test case: Combined case with fdir queue group 2. Create fdir rules to queue group:: - flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 / tcp / end actions rss queues 4 5 end / end - flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 / udp / end actions rss queues 6 7 end / end - flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 / sctp / end actions rss queues 8 9 end / end - flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 / tcp / end actions rss queues 10 11 end / end - flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 / udp / end actions rss queues 12 13 end / end - flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 / sctp / end actions rss queues 14 15 end / end + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 / tcp / end actions rss queues 4 5 end / mark / end + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 / udp / end actions rss queues 6 7 end / mark / end + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 / sctp / end actions rss queues 8 9 end / mark / end + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 / tcp / end actions rss queues 10 11 end / mark / end + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 / udp / end actions rss queues 12 13 end / mark / end + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv6 / sctp / end actions rss queues 14 15 end / mark / end 3. Send packets:: @@ -2450,7 +2458,7 @@ Test case: Combined case with fdir queue group p6=Ether(dst="00:11:22:33:44:55", src="52:00:00:00:00:00")/IPv6()/UDP(sport=22, chksum=0xe38)/("X"*48) p7=Ether(dst="00:11:22:33:44:55", src="52:00:00:00:00:00")/IPv6(src="ABAB:910A:2222:5498:8475:1111:3900:1010")/SCTP(sport=22, chksum=0xf)/("X"*48) - Check p2-p7 are distributed to specified queue group, + Check p2-p7 are distributed to specified queue group and mark id, p1 is distributed by RSS hash value. 4. Create rss rule with inputset checksum:: -- 2.17.1