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 554CFA04F6; Tue, 7 Jan 2020 08:13:01 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3ED9C1D949; Tue, 7 Jan 2020 08:13:01 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 72E481D918 for ; Tue, 7 Jan 2020 08:13:00 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jan 2020 23:12:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,404,1571727600"; d="scan'208";a="223091078" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 06 Jan 2020 23:12:59 -0800 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 6 Jan 2020 23:12:59 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.30]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.89]) with mapi id 14.03.0439.000; Tue, 7 Jan 2020 15:12:57 +0800 From: "Tu, Lijuan" To: "Zhang, XiX" , "dts@dpdk.org" CC: "Zhang, XiX" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_short_live:add rule filter ipv6 tag Thread-Index: AQHVxRym50KE/D+LKESq+oFuEpsexafeyYXA Date: Tue, 7 Jan 2020 07:12:56 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBA3CE2@SHSMSX101.ccr.corp.intel.com> References: <1578375807-79688-1-git-send-email-xix.zhang@intel.com> In-Reply-To: <1578375807-79688-1-git-send-email-xix.zhang@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-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_short_live:add rule filter ipv6 tag 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 > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xizhan4x > Sent: Tuesday, January 7, 2020 1:43 PM > To: dts@dpdk.org > Cc: Zhang, XiX > Subject: [dts] [PATCH V1] tests/TestSuite_short_live:add rule filter ipv6= tag >=20 > add rule filter ipv6 tag >=20 > Signed-off-by: xizhan4x > --- > tests/TestSuite_short_live.py | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.p= y > index dfccbd8..47a68ee 100644 > --- a/tests/TestSuite_short_live.py > +++ b/tests/TestSuite_short_live.py > @@ -102,16 +102,16 @@ class TestShortLiveApp(TestCase): > if (txPort =3D=3D rxPort): > count =3D 2 >=20 > - inst =3D self.tester.tcpdump_sniff_packets(rxitf, count=3Dcount) > + filter_list =3D [{'layer': 'ether', 'config': {'type': 'not IPv6= '}}] > + inst =3D self.tester.tcpdump_sniff_packets(rxitf, > + count=3Dcount,filters=3Dfilter_list) >=20 > pktlen =3D pktSize - 14 > padding =3D pktlen - 20 > self.tester.scapy_append('sendp([Ether(src=3D"%s", > dst=3D"%s")/IP()/Raw(load=3D"P"*%s)], iface=3D"%s", count=3D4)' % (smac, = dmac, > padding, txitf)) >=20 > self.tester.scapy_execute() > - time.sleep(3) >=20 > - pkts =3D self.tester.load_tcpdump_sniff_packets(inst) > + pkts =3D self.tester.load_tcpdump_sniff_packets(inst,timeout=3D2= ) > out =3D str(pkts[0].show) > self.logger.info('SCAPY Result:\n' + out + '\n\n\n') > if received: > -- > 2.17.2