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 A68B9924B for ; Thu, 22 Oct 2015 09:42:55 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 22 Oct 2015 00:42:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,181,1444719600"; d="scan'208";a="832385640" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by orsmga002.jf.intel.com with ESMTP; 22 Oct 2015 00:42:53 -0700 Message-ID: <5628940C.3090003@intel.com> Date: Thu, 22 Oct 2015 15:45:16 +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: Michael Qiu , dts@dpdk.org References: <1444719518-32639-1-git-send-email-michael.qiu@intel.com> In-Reply-To: <1444719518-32639-1-git-send-email-michael.qiu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH] pmdrssreta: Add RRC support in TestSuite pmdrssreta 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: Thu, 22 Oct 2015 07:42:56 -0000 Applied. Thx. On 10/13/2015 02:58 PM, Michael Qiu wrote: > RRC support in TestSuite pmdrssreta. > > Signed-off-by: Michael Qiu > --- > tests/TestSuite_pmdrssreta.py | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/tests/TestSuite_pmdrssreta.py b/tests/TestSuite_pmdrssreta.py > index 5e2d1b8..5c62c72 100644 > --- a/tests/TestSuite_pmdrssreta.py > +++ b/tests/TestSuite_pmdrssreta.py > @@ -62,42 +62,42 @@ class TestPmdrssreta(TestCase): > # send packet with different source and dest ip > if tran_type == "IPV4": > for i in range(16): > - packet = r'sendp([Ether(dst="%s")/IP(src="192.168.0.%d", dst="192.168.0.%d")], iface="%s")' % ( > + packet = r'sendp([Ether(dst="%s", src="02:00:00:00:00:00")/IP(src="192.168.0.%d", dst="192.168.0.%d")], iface="%s")' % ( > mac, i + 1, i + 2, itf) > self.tester.scapy_append(packet) > self.tester.scapy_execute() > time.sleep(.5) > elif tran_type == "IPV4&TCP": > for i in range(16): > - packet = r'sendp([Ether(dst="%s")/IP(src="192.168.0.%d", dst="192.168.0.%d")/TCP(sport=1024,dport=1024)], iface="%s")' % ( > + packet = r'sendp([Ether(dst="%s", src="02:00:00:00:00:00")/IP(src="192.168.0.%d", dst="192.168.0.%d")/TCP(sport=1024,dport=1024)], iface="%s")' % ( > mac, i + 1, i + 2, itf) > self.tester.scapy_append(packet) > self.tester.scapy_execute() > time.sleep(.5) > elif tran_type == "IPV4&UDP": > for i in range(16): > - packet = r'sendp([Ether(dst="%s")/IP(src="192.168.0.%d", dst="192.168.0.%d")/UDP(sport=1024,dport=1024)], iface="%s")' % ( > + packet = r'sendp([Ether(dst="%s", src="02:00:00:00:00:00")/IP(src="192.168.0.%d", dst="192.168.0.%d")/UDP(sport=1024,dport=1024)], iface="%s")' % ( > mac, i + 1, i + 2, itf) > self.tester.scapy_append(packet) > self.tester.scapy_execute() > time.sleep(.5) > elif tran_type == "IPV6": > for i in range(16): > - packet = r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d")], iface="%s")' % ( > + packet = r'sendp([Ether(dst="%s", src="02:00:00:00:00:00")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d")], iface="%s")' % ( > mac, i + 1, i + 2, itf) > self.tester.scapy_append(packet) > self.tester.scapy_execute() > time.sleep(.5) > elif tran_type == "IPV6&TCP": > for i in range(16): > - packet = r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d")/TCP(sport=1024,dport=1024)], iface="%s")' % ( > + packet = r'sendp([Ether(dst="%s", src="02:00:00:00:00:00")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d")/TCP(sport=1024,dport=1024)], iface="%s")' % ( > mac, i + 1, i + 2, itf) > self.tester.scapy_append(packet) > self.tester.scapy_execute() > time.sleep(.5) > elif tran_type == "IPV6&UDP": > for i in range(16): > - packet = r'sendp([Ether(dst="%s")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d")/UDP(sport=1024,dport=1024)], iface="%s")' % ( > + packet = r'sendp([Ether(dst="%s", src="02:00:00:00:00:00")/IPv6(src="3ffe:2501:200:1fff::%d", dst="3ffe:2501:200:3::%d")/UDP(sport=1024,dport=1024)], iface="%s")' % ( > mac, i + 1, i + 2, itf) > self.tester.scapy_append(packet) > self.tester.scapy_execute() > @@ -148,7 +148,7 @@ class TestPmdrssreta(TestCase): > i = 0 > for tmp_reta_line in reta_lines: > status = "false" > - if(self.nic == "niantic"): > + if(self.nic in ["niantic", "redrockcanyou"]): > # compute the hash result of five tuple into the 7 LSBs value. > hash_index = int(tmp_reta_line["RSS hash"], 16) % 128 > else: > @@ -212,7 +212,7 @@ class TestPmdrssreta(TestCase): > "set nbcore %d" % (queue + 1), "testpmd> ") > > # configure the reta with specific mappings. > - if(self.nic == "niantic"): > + if(self.nic in ["niantic", "redrockcanyou"]): > for i in range(128): > reta_entries.insert(i, random.randint(0, queue - 1)) > self.dut.send_expect( > @@ -228,7 +228,7 @@ class TestPmdrssreta(TestCase): > self.dut.send_expect("quit", "# ", 30) > > def test_rss_key_size(self): > - nic_rss_key_size = {"fortville_eagle": 52, "fortville_spirit": 52, "fortville_spirit_single": 52, "niantic": 40, "e1000": 40} > + nic_rss_key_size = {"fortville_eagle": 52, "fortville_spirit": 52, "fortville_spirit_single": 52, "niantic": 40, "e1000": 40, "redrockcanyou":40} > self.verify(self.nic in nic_rss_key_size.keys(), "Not supporte rss key on %s" % self.nic) > > dutPorts = self.dut.get_ports(self.nic)