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 1B4F0A0C47; Tue, 6 Jul 2021 07:41:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E0E7540688; Tue, 6 Jul 2021 07:41:25 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 6734D4067E for ; Tue, 6 Jul 2021 07:41:23 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10036"; a="270179149" X-IronPort-AV: E=Sophos;i="5.83,327,1616482800"; d="scan'208";a="270179149" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2021 22:41:22 -0700 X-IronPort-AV: E=Sophos;i="5.83,327,1616482800"; d="scan'208";a="460558265" Received: from unknown (HELO localhost.localdomain) ([10.240.183.115]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2021 22:41:20 -0700 From: Qin Sun To: dts@dpdk.org Cc: Qin Sun Date: Tue, 6 Jul 2021 13:38:43 +0800 Message-Id: <20210706053843.6254-1-qinx.sun@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] tests/cvl_dcf_flow_priority: modify PPP proto field to byte type 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 Sender: "dts" modify PPP proto field to byte type to adapt scapy2.4.4, replace 'insmod xxx' with 'modprobe ice' to reduce configure file Signed-off-by: Qin Sun --- tests/TestSuite_cvl_dcf_flow_priority.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) mode change 100644 => 100755 tests/TestSuite_cvl_dcf_flow_priority.py diff --git a/tests/TestSuite_cvl_dcf_flow_priority.py b/tests/TestSuite_cvl_dcf_flow_priority.py old mode 100644 new mode 100755 index 532d993..1e9c1f5 --- a/tests/TestSuite_cvl_dcf_flow_priority.py +++ b/tests/TestSuite_cvl_dcf_flow_priority.py @@ -1155,11 +1155,8 @@ class CVLDCFFlowPriorityTest(TestCase): """ Run before each test case. """ - self.suite_config = rfc.get_suite_config(self) - ice_driver_file_location = self.suite_config["ice_driver_file_location"] self.dut.send_expect("rmmod ice","#",30) - self.dut.send_expect("insmod %s" % ice_driver_file_location, "# ", 60) - time.sleep(10) + self.dut.send_expect("modprobe ice","#",30) def create_testpmd_command(self): """ @@ -1733,7 +1730,7 @@ class CVLDCFFlowPriorityTest(TestCase): self.dut.send_expect("flow destroy 0 rule 1", "testpmd> ", 15) matched_dic["expect_results"]["expect_pkts"]=0 self.send_and_check_packets(matched_dic) - matched_dic = {"scapy_str":['Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(vlan=1,type=0x8100)/Dot1Q(vlan=0x2,type=0x8864)/PPPoE(sessionid=0x1)/PPP(proto=0x21)/IP()/UDP(dport=23)/("X"*480)'], + matched_dic = {"scapy_str":['Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(vlan=1,type=0x8100)/Dot1Q(vlan=0x2,type=0x8864)/PPPoE(sessionid=1)/PPP(b\'\\x00\\x21\')/IP()/UDP(dport=23)/("X"*480)'], "check_func":{"func":rfc.check_vf_rx_packets_number, "param":{"expect_port":2, "expect_queue":"null"}}, "expect_results":{"expect_pkts":1}} -- 2.25.1