From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 72696567F for ; Fri, 12 May 2017 09:43:10 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP; 12 May 2017 00:43:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,328,1491289200"; d="scan'208";a="85928891" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 12 May 2017 00:43:08 -0700 From: "xu,huilong" To: dts@dpdk.org Cc: "xu,huilong" Date: Fri, 12 May 2017 15:44:21 +0800 Message-Id: <1494575072-44798-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V2] add filter lldp in sniff model 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: , X-List-Received-Date: Fri, 12 May 2017 07:43:10 -0000 fortville nic will auto send lldp packet when use dpdk driver. so should filter lldp packet in nvgre and vxlan checksum offload case Signed-off-by: xu,huilong --- tests/TestSuite_nvgre.py | 2 +- tests/TestSuite_vxlan.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_nvgre.py b/tests/TestSuite_nvgre.py index 015aa9f..6b838b4 100644 --- a/tests/TestSuite_nvgre.py +++ b/tests/TestSuite_nvgre.py @@ -575,7 +575,7 @@ class TestNvgre(TestCase): self.tester.send_expect("rm -rf %s" % config.capture_file, "# ") # save the capture packet into pcap format self.tester.scapy_background() - self.tester.scapy_append('p=sniff(iface="%s",count=1,timeout=5)' % self.tester_rx_iface) + self.tester.scapy_append('p=sniff(iface="%s",filter="ether[12:2]!=0x88cc",count=1,timeout=5)' % self.tester_rx_iface) self.tester.scapy_append('wrpcap(\"%s\", p)' % config.capture_file) self.tester.scapy_foreground() diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index 5fef9d9..411ce22 100644 --- a/tests/TestSuite_vxlan.py +++ b/tests/TestSuite_vxlan.py @@ -446,7 +446,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): # save the capture packet into pcap format self.tester.scapy_background() self.tester.scapy_append( - 'p=sniff(iface="%s",count=1,timeout=5)' % self.recv_iface) + 'p=sniff(iface="%s",filter="ether[12:2]!=0x88cc",count=1,timeout=5)' % self.recv_iface) self.tester.scapy_append( 'wrpcap(\"%s\", p)' % config.capture_file) self.tester.scapy_foreground() -- 1.9.3