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 B9226A0032; Fri, 24 Jun 2022 09:35:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B2C1340A87; Fri, 24 Jun 2022 09:35:52 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 08CB540A82 for ; Fri, 24 Jun 2022 09:35:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656056151; x=1687592151; h=from:to:cc:subject:date:message-id; bh=d+pr0s+tTyM4L6wlVt7UpO+s2M352u2KMSvVJqFKns8=; b=ZqvC7UzKmcltGLjKMwoPIk/bgpwTcN3sqrqR7CZzh/KfnFOjoW6w5qno HID1ueQVZ8iMhiSNkwRh2yF2/uL9gwonLXCnJcqS9WPt0FCKI65UxHfzc EZxA3P41fO9gOA4dX+YvsUFazOEpEsLnzfdXw+W4A0R202T1EMwvc++Zm qtb2ENxmLm+URP7x+Nk4PhJqNoSv4IlRRiS8139JYkpZyHIVptKQJKw+a 296K27isQGwmcKh8s5v92LG9shKxDJD16QLxFjF0RXLNSqvWH75a91Se5 uCLbg+IUIHVFyzMiP2WDh3s81u1RwMPp2XceO2sigvqUuuG7D0O9KOBR1 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10387"; a="342633337" X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="342633337" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 00:35:33 -0700 X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="645153413" Received: from unknown (HELO localhost.localdomain) ([10.239.252.94]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 00:35:32 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/multiprocess: modify script to suport i40e driver Date: Fri, 24 Jun 2022 15:59:53 +0000 Message-Id: <20220624155953.6335-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.17.1 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.add IPv6_RAW type packet. 2.i40e driver only rss for IP and IPv6 packets by default, modify the case to support i40e driver. Signed-off-by: Jiale Song --- framework/packet.py | 1 + test_plans/multiprocess_test_plan.rst | 1 + tests/TestSuite_multiprocess.py | 15 +++++++++++---- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/framework/packet.py b/framework/packet.py index cd478bef..f56bf178 100644 --- a/framework/packet.py +++ b/framework/packet.py @@ -420,6 +420,7 @@ class Packet(object): "ARP": {"layers": ["ether", "arp"], "cfgload": False}, "LLDP": {"layers": ["ether", "lldp"], "cfgload": False}, "IP_RAW": {"layers": ["ether", "ipv4", "raw"], "cfgload": True}, + "IPv6_RAW": {"layers": ["ether", "ipv6", "raw"], "cfgload": True}, "TCP": {"layers": ["ether", "ipv4", "tcp", "raw"], "cfgload": True}, "UDP": {"layers": ["ether", "ipv4", "udp", "raw"], "cfgload": True}, "VLAN_UDP": { diff --git a/test_plans/multiprocess_test_plan.rst b/test_plans/multiprocess_test_plan.rst index 872ea10a..e9b81c8e 100644 --- a/test_plans/multiprocess_test_plan.rst +++ b/test_plans/multiprocess_test_plan.rst @@ -229,6 +229,7 @@ summarize all received packets and check whether it is bigger than or equal to t 2. send some packets,the number of packets is a random value between 20 and 256, packet type including IPV6/4,TCP/UDP, refer to Random_Packet + Note::I40e only rss for IP and IPv6 packets by default 3. stop all process and check output:: diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py index b666835a..7f164c70 100644 --- a/tests/TestSuite_multiprocess.py +++ b/tests/TestSuite_multiprocess.py @@ -164,10 +164,17 @@ class TestMultiprocess(TestCase): def random_packet(self, pkt_num): pkt = Packet() - pkt.generate_random_pkts( - pktnum=pkt_num, - dstmac="00:11:22:33:44:55", - ) + if self.kdriver == "i40e": + pkt.generate_random_pkts( + pktnum=pkt_num, + dstmac="00:11:22:33:44:55", + random_type=["IP_RAW","IPv6_RAW"] + ) + else: + pkt.generate_random_pkts( + pktnum=pkt_num, + dstmac="00:11:22:33:44:55", + ) pkt.send_pkt(crb=self.tester, tx_port=self.tester_ifaces[0], count=1) def specify_packet(self, que_num): -- 2.25.1