From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 3403BA0679 for ; Sun, 28 Apr 2019 12:08:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F3883397D; Sun, 28 Apr 2019 12:08:29 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 9825129AC for ; Sun, 28 Apr 2019 12:08:28 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Apr 2019 03:08:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,405,1549958400"; d="scan'208";a="165620917" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 28 Apr 2019 03:08:26 -0700 From: "xiao,qimai" To: dts@dpdk.org Cc: "xiao,qimai" Date: Sun, 28 Apr 2019 18:12:50 +0800 Message-Id: <1556446370-16506-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] update flow_classify_softnic to reduce runtime 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" optimize function of send package with scapy Signed-off-by: xiao,qimai --- tests/TestSuite_flow_classify_softnic.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_flow_classify_softnic.py b/tests/TestSuite_flow_classify_softnic.py index c98e8d0..9b339ca 100644 --- a/tests/TestSuite_flow_classify_softnic.py +++ b/tests/TestSuite_flow_classify_softnic.py @@ -275,7 +275,7 @@ class TestFlowClassifySoftnic(TestCase): packet = r'sendp([Ether(dst="%s", src=get_if_hwaddr("%s"))/IP(src="%s.%d", dst="%s", proto=17)/UDP(sport=100, dport=200)], iface="%s")' % ( self.dut_p0_mac, itf, ipaddr, i, dst_addr, itf) self.tester.scapy_append(packet) - self.tester.scapy_execute() + self.tester.scapy_execute() elif ptype == "ipv6": var = src_addr.split(":") string = ":" @@ -287,7 +287,7 @@ class TestFlowClassifySoftnic(TestCase): packet = r'sendp([Ether(dst="%s", src=get_if_hwaddr("%s"))/IPv6(src="%s:%d", dst="%s", nh=17)/UDP(sport=100, dport=200)], iface="%s")' % ( self.dut_p0_mac, itf, ipaddr, i, dst_addr, itf) self.tester.scapy_append(packet) - self.tester.scapy_execute() + self.tester.scapy_execute() elif src_dst == "dst": if ptype == "ipv4": @@ -298,7 +298,7 @@ class TestFlowClassifySoftnic(TestCase): packet = r'sendp([Ether(dst="%s", src=get_if_hwaddr("%s"))/IP(src="%s", dst="%s.%d", proto=17)/UDP(sport=100, dport=100)], iface="%s")' % ( self.dut_p0_mac, itf, src_addr, ipaddr, i, itf) self.tester.scapy_append(packet) - self.tester.scapy_execute() + self.tester.scapy_execute() elif ptype == "ipv6": var = dst_addr.split(":") string = ":" @@ -310,7 +310,7 @@ class TestFlowClassifySoftnic(TestCase): packet = r'sendp([Ether(dst="%s", src=get_if_hwaddr("%s"))/IPv6(src="%s", dst="%s:%d", nh=17)/UDP(sport=100, dport=200)], iface="%s")' % ( self.dut_p0_mac, itf, src_addr, ipaddr, i, itf) self.tester.scapy_append(packet) - self.tester.scapy_execute() + self.tester.scapy_execute() def check_packet_queue(self, queues=[], out=""): """ -- 2.17.0