From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 830A0A09E9; Wed, 9 Dec 2020 03:47:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 64158C930; Wed, 9 Dec 2020 03:47:28 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id D15C92B8B for ; Wed, 9 Dec 2020 03:47:25 +0100 (CET) IronPort-SDR: fOa9dwou6kCsBNkXRDkV9uxGy6wLJTaXOlN9poFrFZGsE6duzKIZ9dmcYXXP2NUULBk5hLO//z HtEURuO8HzEQ== X-IronPort-AV: E=McAfee;i="6000,8403,9829"; a="153818761" X-IronPort-AV: E=Sophos;i="5.78,404,1599548400"; d="scan'208";a="153818761" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 18:47:25 -0800 IronPort-SDR: IxYNSi+5CtTJN7x2PFeyNSHtFEYp+QUGYdqcnJ7irHWzrrbe40gkI2xdW2pFbjGPJAyFnpFnk9 NVFjzl5vNwkQ== X-IronPort-AV: E=Sophos;i="5.78,404,1599548400"; d="scan'208";a="363942594" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 18:47:23 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Wed, 9 Dec 2020 10:50:12 +0800 Message-Id: <20201209025012.13017-4-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201209025012.13017-1-junx.w.zhou@intel.com> References: <20201209025012.13017-1-junx.w.zhou@intel.com> Subject: [dts] [PATCH V3 3/3] tests/TestSuite_dynamic_flowtype:change send pkt mode X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" tests/TestSuite_dynamic_flowtype:change send pkt mode Signed-off-by: Zhou Jun --- tests/TestSuite_dynamic_flowtype.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_dynamic_flowtype.py b/tests/TestSuite_dynamic_flowtype.py index 99f28d8a..3f47d590 100644 --- a/tests/TestSuite_dynamic_flowtype.py +++ b/tests/TestSuite_dynamic_flowtype.py @@ -34,6 +34,7 @@ import re import utils from test_case import TestCase from pmd_output import PmdOutput +import packet VM_CORES_MASK = 'all' @@ -202,10 +203,8 @@ class TestDynamicFlowtype(TestCase): """ pkts = self.gtp_packets(flowtype, match_opt) for packet_type in list(pkts.keys()): - self.tester.scapy_append( - 'sendp([%s], iface="%s")' - % (pkts[packet_type], self.tester_intf)) - self.tester.scapy_execute() + pkt = packet.Packet(pkts[packet_type]) + pkt.send_pkt(crb=self.tester, tx_port=self.tester_intf) out = self.dut.get_session_output(timeout=2) if match_opt == 'matched': self.verify("PKT_RX_RSS_HASH" in out, -- 2.17.1