From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 8F838567F for ; Tue, 17 Nov 2015 03:02:20 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP; 16 Nov 2015 18:02:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,305,1444719600"; d="scan'208";a="821766239" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by orsmga001.jf.intel.com with ESMTP; 16 Nov 2015 18:02:18 -0800 Message-ID: <564A8AF2.4080409@intel.com> Date: Tue, 17 Nov 2015 10:03:30 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Ding Heng , dts@dpdk.org References: <1447665896-12187-1-git-send-email-hengx.ding@intel.com> In-Reply-To: <1447665896-12187-1-git-send-email-hengx.ding@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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: Tue, 17 Nov 2015 02:02:21 -0000 Applied, Thanks. On 11/16/2015 05:24 PM, Ding Heng wrote: > 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]+)")