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 43E5CA04F6; Tue, 7 Jan 2020 06:37:57 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2C4CA1D90E; Tue, 7 Jan 2020 06:37:57 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B25E11D8FF for ; Tue, 7 Jan 2020 06:37:54 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jan 2020 21:37:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,404,1571727600"; d="scan'208";a="253608423" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 06 Jan 2020 21:37:53 -0800 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Tue, 7 Jan 2020 13:43:27 +0800 Message-Id: <1578375807-79688-1-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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" add rule filter ipv6 tag Signed-off-by: xizhan4x --- tests/TestSuite_short_live.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py 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 == rxPort): count = 2 - inst = self.tester.tcpdump_sniff_packets(rxitf, count=count) + filter_list = [{'layer': 'ether', 'config': {'type': 'not IPv6'}}] + inst = self.tester.tcpdump_sniff_packets(rxitf, count=count,filters=filter_list) pktlen = pktSize - 14 padding = pktlen - 20 self.tester.scapy_append('sendp([Ether(src="%s", dst="%s")/IP()/Raw(load="P"*%s)], iface="%s", count=4)' % (smac, dmac, padding, txitf)) self.tester.scapy_execute() - time.sleep(3) - pkts = self.tester.load_tcpdump_sniff_packets(inst) + pkts = self.tester.load_tcpdump_sniff_packets(inst,timeout=2) out = str(pkts[0].show) self.logger.info('SCAPY Result:\n' + out + '\n\n\n') if received: -- 2.17.2