[dts] [PATCH V2] add filter lldp packet rule for fortville nic when sniff packet

xu,huilong huilongx.xu at intel.com
Wed Nov 1 03:17:21 CET 2017


fortville nic will auto send lldp packet when dpdk app setup

Signed-off-by: xu,huilong <huilongx.xu at intel.com>
---
 tests/TestSuite_short_live.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py
index d153975..62c43a5 100644
--- a/tests/TestSuite_short_live.py
+++ b/tests/TestSuite_short_live.py
@@ -102,7 +102,7 @@ class TestShortLiveApp(TestCase):
         if (txPort == rxPort):
             count = 2
 
-        self.tester.scapy_append('p=sniff(iface="%s",count=%d,timeout=5)' % (rxitf, count))
+        self.tester.scapy_append('p=sniff(iface="%s", filter="ether[12:2]!=0x88cc", count=%d, timeout=5)' % (rxitf, count))
         self.tester.scapy_append('RESULT=str(p[%d].show)' % (count-1))
 
         self.tester.scapy_foreground()
-- 
1.9.3



More information about the dts mailing list