From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 57FE62E83 for ; Mon, 16 Nov 2015 10:25:28 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 16 Nov 2015 01:25:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,301,1444719600"; d="scan'208";a="851864133" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 16 Nov 2015 01:25:03 -0800 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id tAG9P1h5023189; Mon, 16 Nov 2015 17:25:01 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id tAG9OwC2012222; Mon, 16 Nov 2015 17:25:00 +0800 Received: (from hengdinx@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id tAG9OwUE012218; Mon, 16 Nov 2015 17:24:58 +0800 From: Ding Heng To: dts@dpdk.org Date: Mon, 16 Nov 2015 17:24:56 +0800 Message-Id: <1447665896-12187-1-git-send-email-hengx.ding@intel.com> X-Mailer: git-send-email 1.7.4.1 Cc: Ding Heng Subject: [dts] [PATCH] tests mac_filter: add set fwd mac to avoid broadcast storm in RRC card 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: Mon, 16 Nov 2015 09:25:28 -0000 Signed-off-by: Ding Heng 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