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 51C08A00C3; Thu, 23 Jun 2022 08:42:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4AA8F4069D; Thu, 23 Jun 2022 08:42:30 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 8B8EA4067B for ; Thu, 23 Jun 2022 08:42:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655966548; x=1687502548; h=from:to:cc:subject:date:message-id; bh=EwYuxMeN5hDDjnN4DdB+OB0hGsjrkiE3HUx7dhpuqpE=; b=BScKWJ7LPWDva2LuhMOjqNdn1rwenzg1KfAODAWatllhMWMe7zSMDYV/ QPNulqn/AfOVFn3ynIACiVUKcrIUgF6VVOMry/XSyVx4wDT2kdKSClKxH iFVxma3P5W6fT2SL15d0CN7uJsCL/cAVIX/MqT7C46txmASCqjtATULZ6 THty6uWxPw2KFbHJRhF4pBdwJopHeNqR3ZpVsW5wWZcd/JlV2NdsdAz+b oqVOGkz6VzynQ5OxU8kaIwPSgNj+cBFn7xTdrtpi6w7QlKZ+uiLDIt0iI NJIcILw6b4Zjg+XjA85qUsTmDrFxKbzxsazhdN36J/VlOg1MdwJoJqjMC Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="344631064" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="344631064" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 23:42:27 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="621206514" 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:42:26 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/multiprocess: modify script to suport i40e driver Date: Thu, 23 Jun 2022 15:06:55 +0000 Message-Id: <20220623150655.17244-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.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.25.1