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 AAFB3A00C3; Thu, 23 Jun 2022 08:55:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9029E4069D; Thu, 23 Jun 2022 08:55:21 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 2F5664067B for ; Thu, 23 Jun 2022 08:55:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655967319; x=1687503319; h=from:to:cc:subject:date:message-id; bh=taBuHna8r5NbwgwfcaydIsZA+gS9CUGpkett2kPzvRs=; b=JSZruZ2JniGwaJjVcB64uf7Otf0U3yjKuGlDB7SS7wvF/JQTjtOPzIkV 1i4WhsfuOUHJLrGZEr4ioSa3iZ2/bK2U3zS+kz+tvQNT2QKzN8Be9xO/3 rrHMhrlsBr9xt+msMt8zsSd7ImLOaKzCPGn28Zomil65Q+MVFqlx4HuSu qBJlSeEkFsWQusqmH/gfViWXXegahSnC7ILjfIShi1sy7Uhcpiuo4p44C vIxik1sTtuvQrVjDvvnCAvkWcKy8zz2zEjOqZXgwDivOyaSvztoyeODf0 B3wOEpgywl0/phnDCjhRatOihaY0wEh3KYaYgcBH5YpLcAsBsiVGKFspT g==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="263676601" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="263676601" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 23:55:18 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="621209050" Received: from unknown (HELO localhost.localdomain) ([10.239.252.94]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 23:55:15 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2] tests/multiprocess: modify script to suport i40e driver Date: Thu, 23 Jun 2022 15:19:44 +0000 Message-Id: <20220623151944.17769-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..ca3d14ed 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.drivername == "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.17.1