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 44B0CA0679 for ; Mon, 29 Apr 2019 07:30:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 242655911; Mon, 29 Apr 2019 07:30:42 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id B914A29AC for ; Mon, 29 Apr 2019 07:30:39 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Apr 2019 22:30:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,408,1549958400"; d="scan'208";a="319852612" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga005.jf.intel.com with ESMTP; 28 Apr 2019 22:30:38 -0700 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 28 Apr 2019 22:30:38 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 28 Apr 2019 22:30:37 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.70]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.33]) with mapi id 14.03.0415.000; Mon, 29 Apr 2019 13:30:36 +0800 From: "Peng, Yuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1] update flow_classify_softnic to reduce runtime Thread-Index: AQHU/apdWCgb1w1NUUmf1ljX9/rX/aZSnfig Date: Mon, 29 Apr 2019 05:30:36 +0000 Message-ID: <67D543A150B29E4CAAE53918F64EDAEA376D6F80@SHSMSX103.ccr.corp.intel.com> References: <1556446370-16506-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1556446370-16506-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Acked-by: Peng, Yuan -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xiao,qimai Sent: Sunday, April 28, 2019 6:13 PM To: dts@dpdk.org Cc: Xiao, QimaiX Subject: [dts] [PATCH V1] update flow_classify_softnic to reduce runtime 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_flo= w_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 =3D r'sendp([Ether(dst=3D"%s", src=3Dget_if_hwa= ddr("%s"))/IP(src=3D"%s.%d", dst=3D"%s", proto=3D17)/UDP(sport=3D100, dport= =3D200)], iface=3D"%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 =3D=3D "ipv6": var =3D src_addr.split(":") string =3D ":" @@ -287,7 +287,7 @@ class TestFlowClassifySoftnic(TestCase): packet =3D r'sendp([Ether(dst=3D"%s", src=3Dget_if_hwa= ddr("%s"))/IPv6(src=3D"%s:%d", dst=3D"%s", nh=3D17)/UDP(sport=3D100, dport= =3D200)], iface=3D"%s")' % ( self.dut_p0_mac, itf, ipaddr, i, dst_addr, itf) self.tester.scapy_append(packet) - self.tester.scapy_execute() + self.tester.scapy_execute() =20 elif src_dst =3D=3D "dst": if ptype =3D=3D "ipv4": @@ -298,7 +298,7 @@ class TestFlowClassifySoftnic(TestCase): packet =3D r'sendp([Ether(dst=3D"%s", src=3Dget_if_hwa= ddr("%s"))/IP(src=3D"%s", dst=3D"%s.%d", proto=3D17)/UDP(sport=3D100, dport= =3D100)], iface=3D"%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 =3D=3D "ipv6": var =3D dst_addr.split(":") string =3D ":" @@ -310,7 +310,7 @@ class TestFlowClassifySoftnic(TestCase): packet =3D r'sendp([Ether(dst=3D"%s", src=3Dget_if_hwa= ddr("%s"))/IPv6(src=3D"%s", dst=3D"%s:%d", nh=3D17)/UDP(sport=3D100, dport= =3D200)], iface=3D"%s")' % ( self.dut_p0_mac, itf, src_addr, ipaddr, i, itf) self.tester.scapy_append(packet) - self.tester.scapy_execute() + self.tester.scapy_execute() =20 def check_packet_queue(self, queues=3D[], out=3D""): """ --=20 2.17.0