test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] tests mac_filter: add set fwd mac to avoid broadcast storm in RRC card
@ 2015-11-16  9:24 Ding Heng
  2015-11-17  2:03 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: Ding Heng @ 2015-11-16  9:24 UTC (permalink / raw)
  To: dts; +Cc: Ding Heng

Signed-off-by: Ding Heng <hengx.ding@intel.com>

diff --git a/tests/TestSuite_mac_filter.py b/tests/TestSuite_mac_filter.py
index 1749c62..1d4e77d 100644
--- a/tests/TestSuite_mac_filter.py
+++ b/tests/TestSuite_mac_filter.py
@@ -58,6 +58,7 @@ class TestWhitelist(TestCase):
         self.pmdout = PmdOutput(self.dut)
         self.pmdout.start_testpmd("Default", "--portmask=%s" % portMask)
         self.dut.send_expect("set verbose 1", "testpmd> ")
+        self.dut.send_expect("set fwd mac", "testpmd> ")
         self.dut.send_expect("start", "testpmd> ")
 
         # get dest address from self.target port
@@ -105,6 +106,7 @@ class TestWhitelist(TestCase):
         pre_rxpkt = dts.regexp(out, "TX-packets: ([0-9]+)")
 
         # send one packet with the portid MAC address
+        self.dut.send_expect("clear port stats all", "testpmd> ")
         self.whitelist_send_packet(portid, self.dest)
         out = self.dut.send_expect("show port stats %d" % txportid, "testpmd> ")
         cur_rxpkt = dts.regexp(out, "TX-packets: ([0-9]+)")
-- 
1.9.3

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-17  2:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-16  9:24 [dts] [PATCH] tests mac_filter: add set fwd mac to avoid broadcast storm in RRC card Ding Heng
2015-11-17  2:03 ` Liu, Yong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).