From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 0F10B5F33 for ; Tue, 15 Jan 2019 12:06:17 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2019 03:06:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,481,1539673200"; d="scan'208";a="138418784" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 15 Jan 2019 03:06:16 -0800 From: Peng Yuan To: dts@dpdk.org Cc: Peng Yuan Date: Tue, 15 Jan 2019 19:09:55 +0800 Message-Id: <1547550595-2874-1-git-send-email-yuan.peng@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH] tests: Add different queue number 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, 15 Jan 2019 11:06:18 -0000 Add different queue number and iptypes to TestSuite_pmdrssreta.py Signed-off-by: Peng Yuan diff --git a/tests/TestSuite_pmdrssreta.py b/tests/TestSuite_pmdrssreta.py index c3bbba2..1fc4739 100644 --- a/tests/TestSuite_pmdrssreta.py +++ b/tests/TestSuite_pmdrssreta.py @@ -37,7 +37,7 @@ import time import random import re import utils -testQueues = [16] +testQueues = [2, 9, 16] reta_entries = [] reta_lines = [] @@ -173,9 +173,6 @@ class TestPmdrssreta(TestCase): Run at the start of each test suite. """ - #self.verify( - # self.nic in ["niantic", "fortville_eagle", "fortville_spirit", "fortville_spirit_single"], - # "NIC Unsupported: " + str(self.nic)) ports = self.dut.get_ports(self.nic) self.ports_socket = self.dut.get_numa_id(ports[0]) self.verify(len(ports) >= 1, "Not enough ports available") @@ -192,7 +189,13 @@ class TestPmdrssreta(TestCase): dutPorts = self.dut.get_ports(self.nic) localPort = self.tester.get_local_port(dutPorts[0]) itf = self.tester.get_interface(localPort) - iptypes = ['IPV4'] + iptypes = {'IPV4': 'ip', + 'IPV4&UDP': 'udp', + 'IPV4&TCP': 'tcp', + 'IPV6': 'ip', + 'IPV6&UDP': 'udp', + 'IPV6&TCP': 'tcp' + } self.dut.kill_all() @@ -205,12 +208,17 @@ class TestPmdrssreta(TestCase): self.pmdout.start_testpmd( "all", "--mbcache=128 --rxq=%d --txq=%d" % (queue, queue), socket=self.ports_socket) - for iptype in iptypes: + for iptype, rsstype in iptypes.items(): + #for iptype in iptypes: self.dut.send_expect("set verbose 8", "testpmd> ") self.dut.send_expect("set fwd rxonly", "testpmd> ") self.dut.send_expect( "set nbcore %d" % (queue + 1), "testpmd> ") + out = self.dut.send_expect( + "port config all rss %s" % rsstype, "testpmd> ") + self.verify("error" not in out, "Configuration of RSS hash failed: Invalid argument") + # configure the reta with specific mappings. if(self.nic in ["niantic", "redrockcanyou", "atwood", "boulderrapid"]): for i in range(128): -- 2.5.0