[dts] [PATCH V2] add filter lldp in sniff model

xu,huilong huilongx.xu at intel.com
Fri May 12 09:44:21 CEST 2017


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 <huilongx.xu at intel.com>
---
 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



More information about the dts mailing list