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 2D643A2EFC for ; Wed, 18 Sep 2019 12:25:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 23C421C221; Wed, 18 Sep 2019 12:25:31 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 4AFD41C211 for ; Wed, 18 Sep 2019 12:25:29 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Sep 2019 03:25:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,520,1559545200"; d="scan'208";a="177677547" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga007.jf.intel.com with ESMTP; 18 Sep 2019 03:25:28 -0700 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 18 Sep 2019 03:25:27 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 18 Sep 2019 03:25:27 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by shsmsx102.ccr.corp.intel.com ([169.254.2.113]) with mapi id 14.03.0439.000; Wed, 18 Sep 2019 18:25:25 +0800 From: "Tu, Lijuan" To: "Zhao, HaiyangX" , "dts@dpdk.org" CC: "Lin, Xueqin" , "Zhao, HaiyangX" Thread-Topic: [dts] [PATCH V1] tests/vf_rss: do special processing for NIC sageville and sagepond Thread-Index: AQHVZHoba5JheDXcuUOYEQQKw7bJy6cxTcvQ Date: Wed, 18 Sep 2019 10:25:25 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB23D23@SHSMSX101.ccr.corp.intel.com> References: <1567750602-10740-1-git-send-email-haiyangx.zhao@intel.com> In-Reply-To: <1567750602-10740-1-git-send-email-haiyangx.zhao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjY5Y2FmNmUtYmY5OS00YmQ4LTk5YmUtMTlmM2MzMThhYmVmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiaDZjUmlOM2prWkgzdlhqNWNqem41bzUyODVqXC84VUFvZ1ZxanhxbXh6Q3dybEpTRmQ4V0RwTFgxR0RldWhqQUsifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Haiyang Zhao > Sent: Friday, September 6, 2019 2:17 PM > To: dts@dpdk.org > Cc: Lin, Xueqin ; Zhao, HaiyangX > > Subject: [dts] [PATCH V1] tests/vf_rss: do special processing for NIC sag= eville > and sagepond >=20 > *.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. >=20 > Signed-off-by: Haiyang Zhao > --- > tests/TestSuite_vf_rss.py | 9 +++++++++ > 1 file changed, 9 insertions(+) >=20 > 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 =3D=3D '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=3D{}'.format(hex(i)) in out, 'que= ue {} did not > receive packets'.format(i)) > return > lines =3D 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 =3D=3D 'i40e' or self.nic in ['sagevil= le', 'sagepond']: > + if self.nic in ['sageville', 'sagepond'] and rss_typ= e =3D=3D '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 @@ c= lass > 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 =3D= =3D 'sctp': > + self.logger.info('sageville and sagepond do not supp= ort rsstype > sctp') > + continue > out =3D self.vm_dut_0.send_expect("port config all rss %= s" % rsstype, > "testpmd> ") > self.verify("Operation not supported" not in out, "Opera= tion not > supported") > self.vm_dut_0.send_expect( > -- > 1.8.3.1