From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8899AA2EDB for ; Fri, 6 Sep 2019 08:12:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 62BDF1F119; Fri, 6 Sep 2019 08:12:25 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 4765D1F0FB for ; Fri, 6 Sep 2019 08:12:23 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Sep 2019 23:12:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,472,1559545200"; d="scan'208";a="199448817" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 05 Sep 2019 23:12:17 -0700 From: Haiyang Zhao To: dts@dpdk.org Cc: xueqin.lin@intel.com, Haiyang Zhao Date: Fri, 6 Sep 2019 14:16:42 +0800 Message-Id: <1567750602-10740-1-git-send-email-haiyangx.zhao@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/vf_rss: do special processing for NIC sageville and sagepond 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" *.NIC with kernel driver ixgbe only enable queue 0 and queue 1 in vf rss as default. *.sageville and sagepond do not support sctp in vf rss. Signed-off-by: Haiyang Zhao --- tests/TestSuite_vf_rss.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/TestSuite_vf_rss.py b/tests/TestSuite_vf_rss.py index c41c932..8220926 100644 --- a/tests/TestSuite_vf_rss.py +++ b/tests/TestSuite_vf_rss.py @@ -157,6 +157,9 @@ class TestVfRss(TestCase): if not reta_entries: # for test_vfpmd_rss, check every queue can receive packet. for i in range(queue): + if self.kdriver == 'ixgbe' and i > 1: + self.logger.info('NIC with kernel driver ixgbe only enable queue 0 and queue 1 as default') + break self.verify('RSS queue={}'.format(hex(i)) in out, 'queue {} did not receive packets'.format(i)) return lines = out.split("\r\n") @@ -362,6 +365,9 @@ class TestVfRss(TestCase): "port config 0 rss reta (%d,%d)" % (i, reta_entries[i]), "testpmd> ") self.vm_dut_0.send_expect("port config all rss %s" % rss_type, "testpmd> ") elif self.kdriver == 'i40e' or self.nic in ['sageville', 'sagepond']: + if self.nic in ['sageville', 'sagepond'] and rss_type == 'sctp': + self.logger.info('sageville and sagepond do not support rsstype sctp') + continue for i in range(64): reta_entries.insert(i, random.randint(0, queue - 1)) self.vm_dut_0.send_expect( @@ -407,6 +413,9 @@ class TestVfRss(TestCase): for iptype, rsstype in iptypes.items(): self.vm_dut_0.send_expect("set verbose 8", "testpmd> ") self.vm_dut_0.send_expect("set fwd rxonly", "testpmd> ") + if self.nic in ['sageville', 'sagepond'] and rsstype == 'sctp': + self.logger.info('sageville and sagepond do not support rsstype sctp') + continue out = self.vm_dut_0.send_expect("port config all rss %s" % rsstype, "testpmd> ") self.verify("Operation not supported" not in out, "Operation not supported") self.vm_dut_0.send_expect( -- 1.8.3.1