From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D7CE9A034F; Tue, 30 Mar 2021 03:54:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B210F140F25; Tue, 30 Mar 2021 03:54:59 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id E8615406B4 for ; Tue, 30 Mar 2021 03:54:56 +0200 (CEST) IronPort-SDR: 4zNBbr2XiHejcwjHAPzALO/2lwc2IjxBdXCYbh9QvS8S7sAwPUpKMCjpIYMtoxxzZYfr/nV286 W/T/g5A/6oQw== X-IronPort-AV: E=McAfee;i="6000,8403,9938"; a="179206600" X-IronPort-AV: E=Sophos;i="5.81,289,1610438400"; d="scan'208";a="179206600" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2021 18:54:55 -0700 IronPort-SDR: uUIYgRlAQo1+6qriam8RP8riZI6Mc1j5HCzn9XanM4yxq5xHPaart+bBzKRbjwV4HrxwrgQC63 OQsp/MPS1MdQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,289,1610438400"; d="scan'208";a="393420013" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga002.jf.intel.com with ESMTP; 29 Mar 2021 18:54:55 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 29 Mar 2021 18:53:57 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 30 Mar 2021 09:53:55 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2106.013; Tue, 30 Mar 2021 09:53:55 +0800 From: "Tu, Lijuan" To: "Xie, WeiX" , "dts@dpdk.org" CC: "Xie, WeiX" Thread-Topic: [dts] [PATCH V1] tests/ddp_mpls: compatible with iavf and i40evf for vf Thread-Index: AQHXIVRCXOcT2GiM5ky+UqBl2SRYcaqby+NQ Date: Tue, 30 Mar 2021 01:53:55 +0000 Message-ID: <4c10f7eb6a0a4815a40ebe443f4ed840@intel.com> References: <20210325171644.25055-1-weix.xie@intel.com> In-Reply-To: <20210325171644.25055-1-weix.xie@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/ddp_mpls: compatible with iavf and i40evf for vf X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" > -----Original Message----- > From: dts On Behalf Of xiewei > Sent: 2021=1B$BG/=1B(B3=1B$B7n=1B(B26=1B$BF|=1B(B 1:17 > To: dts@dpdk.org > Cc: Xie, WeiX > Subject: [dts] [PATCH V1] tests/ddp_mpls: compatible with iavf and i40evf= for vf >=20 > iavf has rss hash rx offload capability by default, but i40evf not have. > So the hash value and rx queue number will be random when receive wrong l= abel > MPLS packets. > If want to wrong label packets received by default queue 0, just launch t= est-pmd > with parameter "--disable-rss". >=20 > Signed-off-by: xiewei > --- > tests/TestSuite_ddp_mpls.py | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_ddp_mpls.py b/tests/TestSuite_ddp_mpls.py in= dex > 53fd4a76..f0c28386 100644 > --- a/tests/TestSuite_ddp_mpls.py > +++ b/tests/TestSuite_ddp_mpls.py > @@ -39,6 +39,7 @@ from test_case import TestCase from pmd_output import > PmdOutput from settings import get_nic_name import random > +import re >=20 > VM_CORES_MASK =3D 'all' > PF_MAX_QUEUE =3D 64 > @@ -131,7 +132,12 @@ class Testddp_mpls(TestCase): > self.vm0_testpmd.start_testpmd( > VM_CORES_MASK,"--port-topology=3Dchained --txq=3D%s --rxq=3D= %s" > % (VF_MAX_QUEUE, VF_MAX_QUEUE)) > - > + > + output =3D self.vm0_testpmd.execute_cmd('show port info 0') > + vf_driver =3D re.findall("Driver\s*name:\s*(\w+)", output) > + if vf_driver[0] =3D=3D "net_iavf": > + self.vm0_testpmd.execute_cmd('quit', '# ') > + self.vm0_testpmd.start_testpmd(VM_CORES_MASK, > + "--port-topology=3Dchained --txq=3D%s --rxq=3D%s --disable-rss" % > + (VF_MAX_QUEUE, VF_MAX_QUEUE)) I think re-launch testpmd is a waste of time, prefer to start testpmd with = 'disable-rss` directly. >=20 > def destroy_vm_env(self): >=20 > -- > 2.17.1