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 3C57DA3295 for ; Wed, 23 Oct 2019 11:40:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3292A1C014; Wed, 23 Oct 2019 11:40:20 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 44CDB1C013 for ; Wed, 23 Oct 2019 11:40:18 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2019 02:40:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,220,1569308400"; d="scan'208";a="397987461" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga005.fm.intel.com with ESMTP; 23 Oct 2019 02:40:16 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 23 Oct 2019 02:40:09 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 23 Oct 2019 02:40:09 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by SHSMSX152.ccr.corp.intel.com ([10.239.6.52]) with mapi id 14.03.0439.000; Wed, 23 Oct 2019 17:40:07 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_queue_region: SYN tcp packet should has flags S Thread-Index: AQHVhXZlUnM0axUYb0uvgzy/6IxMlqdoAL0w Date: Wed, 23 Oct 2019 09:40:07 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB45984@SHSMSX101.ccr.corp.intel.com> References: <1571377029-155913-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1571377029-155913-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWEzMjQxODUtNDFhNS00Y2YzLTg5NjctNDhiZDg4ZmYwOTc2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZTVxSlNMNm14NXF0dnh5aU9BZE9iNkZtKzMzOExiQ0w3TkZQT1Y3c2NDdWV2WXl5ZGJUTWw1Ym1hWWhJd2YzMyJ9 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] tests/TestSuite_queue_region: SYN tcp packet should has flags S 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Friday, October 18, 2019 1:37 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1] tests/TestSuite_queue_region: SYN tcp packet > should has flags S >=20 > add flags S to SYN tcp packet and remove Raw from it >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_queue_region.py | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_queue_region.py > b/tests/TestSuite_queue_region.py index eea873e..7d01dfb 100644 > --- a/tests/TestSuite_queue_region.py > +++ b/tests/TestSuite_queue_region.py > @@ -122,6 +122,8 @@ class TestQueue_region(TestCase): > pkt =3D Packet(pkt_type=3D'TCP') > pkt.config_layer('ether', {'dst': mac, 'src': self.tester_ma= c}) > pkt.config_layer('tcp', {'flags': flags}) > + if flags =3D=3D 'S': > + pkt.pktgen.pkt.__delitem__('Raw') > elif (pkt_type =3D=3D "sctp"): > pkt =3D Packet(pkt_type=3D'SCTP') > pkt.config_layer('ether', {'dst': mac, 'src': self.tester_ma= c}) @@ -135,6 > +137,9 @@ class TestQueue_region(TestCase): > pkt.config_layer('ether', {'dst': mac, 'src': self.tester_ma= c}) > elif (pkt_type =3D=3D "ipv6_tcp"): > pkt =3D Packet(pkt_type=3D'IPv6_TCP') > + pkt.config_layer('tcp',{'flags':flags}) > + if flags =3D=3D 'S': > + pkt.pktgen.pkt.__delitem__('Raw') > pkt.config_layer('ether', {'dst': mac, 'src': self.tester_ma= c}) > elif (pkt_type =3D=3D "ipv6_sctp"): > pkt =3D Packet(pkt_type=3D'IPv6_SCTP') @@ -262,7 +267,7 @@ c= lass > TestQueue_region(TestCase): > # not assign ipv4-tcp SYN packet to any queue region, the packet= to > queue region 0. > if(self.nic in ["fortpark_TLV"]): > queue_region =3D ["1"] > - queue_ipv6tcp =3D self.send_and_check(queue_region, > mac=3Dself.pf_mac, pkt_type=3D"ipv6_tcp") > + queue_ipv6tcp =3D self.send_and_check(queue_region, > + mac=3Dself.pf_mac, pkt_type=3D"ipv6_tcp", flags=3D"S") > else: > queue_region =3D ["8", "9"] > queue_ipv6tcp =3D self.send_and_check(queue_region, > mac=3Dself.pf_mac, pkt_type=3D"ipv6_tcp") > -- > 1.8.3.1