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 ECFBCA0A02; Thu, 25 Mar 2021 08:54:41 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D9B5B40693; Thu, 25 Mar 2021 08:54:41 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id A338C4067B for ; Thu, 25 Mar 2021 08:54:40 +0100 (CET) IronPort-SDR: oj6bYEratR/0szgZ8nkBkRLhJmsgmKbDePPrxWTX2SSEuxc2sHNOaaC3IZVzzWziAMjS6WbNK8 ufE15qY5hl0g== X-IronPort-AV: E=McAfee;i="6000,8403,9933"; a="254867156" X-IronPort-AV: E=Sophos;i="5.81,277,1610438400"; d="scan'208";a="254867156" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2021 00:54:38 -0700 IronPort-SDR: cOX54d0b5anuP7yxEggcjBAMN3KqRDDTDNud0byou9iYJUDAigkr/d3VamxAMXHxVgzKdlCZT9 jrY5G4QluDHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,277,1610438400"; d="scan'208";a="443291303" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by FMSMGA003.fm.intel.com with ESMTP; 25 Mar 2021 00:54:38 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 25 Mar 2021 00:54:38 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Thu, 25 Mar 2021 00:54:37 -0700 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (104.47.45.50) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Thu, 25 Mar 2021 00:54:36 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NX2rGdulHUPauioIRNN3Rso4P1hxFZ2HBaPMb5S26Exrxs4PVVKaEOfXRYf4yQH/A3lNHIouRemD80cydygMR9Zc3NoqwNwYW2OLKOAdlQUoqRsHmqRI5b3KuoAgRCfUZkBYMV+q24aJFjbeVHyc1OuPmnsObb/HL+c0euaATWSVP+sAwn8qdITreHrvCxcr/AIRXRLuJwbV3+993RpRuFxLPh48eb65KN1KxgSLfXo3UPr4NFfT1q4PEhDWTaDz+PbckfpUAbXJH5MjIHjSjWYBzBoDKPIyB+IwhWdW1ga7qIkMcZMwlfuyaKfXqqUn4LoVUD3BKTkyMnjvUWFitA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wS/VP3XS/IbLuhKFbFw4aPIpOjkKK2oD+yz89AgRhtI=; b=Hy43un8aPmthpFRpmmfWhdJ2PoQKFpssmGxrq2MBIaEDJCICTDlw1rCXeFcitXgXkr0e/Gb4SmF7jbJX3hX/poGrX8xrSnS0FuQe791SjtmcH3HWoqY+SbhkxtgJHkteAqX+oi6FFTFmlB1bVX1FhBqEKb2MBtR3EK+x7ZtW/4SIwsQeCZgDX0E63cqLwq3vm8AmOW6Qd42HQPpxw53V0fTskG8/OcYufWWXK7mSJjUvimEnHoJ7wyerlT8ywFj4ltJyOS+QzFgLkox5N4KR6WkWQRL6bTndGwtw2WpqLuVivwMrQK/axaF0d/U0aCJLbji4ybW8JDrJlH7ARDO4lg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wS/VP3XS/IbLuhKFbFw4aPIpOjkKK2oD+yz89AgRhtI=; b=Ve7cnVF+7gA1lugpA53OYrhakR0iZDjFRAuav1XBtZYrfGtW4hb13Hi4SUQdCPBlD9e0r60lfHHPy4eaNmlR87OG0qMEGuzzXh06RCxEbKo/0rCCwU0Mkmtk0Mf0j8r00Snt2HBK8D2V1iqzINIP0ZOaQrfrzvLkpsjX3pW2dy8= Received: from SN6PR11MB2894.namprd11.prod.outlook.com (2603:10b6:805:d7::18) by SN6PR11MB3168.namprd11.prod.outlook.com (2603:10b6:805:c4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Thu, 25 Mar 2021 07:54:33 +0000 Received: from SN6PR11MB2894.namprd11.prod.outlook.com ([fe80::1c10:cbaf:db59:8cf5]) by SN6PR11MB2894.namprd11.prod.outlook.com ([fe80::1c10:cbaf:db59:8cf5%4]) with mapi id 15.20.3977.029; Thu, 25 Mar 2021 07:54:32 +0000 From: "Zhao, HaiyangX" To: "Xie, WeiX" , "dts@dpdk.org" CC: "Xie, WeiX" Thread-Topic: [dts] [PATCH V1 2/2] tests/vf_vlan: adapt to CVL nic Thread-Index: AQHXIUlV+bX9wVKU8UKM2ntmhwdwGKqUUogg Date: Thu, 25 Mar 2021 07:54:32 +0000 Message-ID: References: <20210325155751.24219-1-weix.xie@intel.com> <20210325155751.24219-3-weix.xie@intel.com> In-Reply-To: <20210325155751.24219-3-weix.xie@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.52] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a9cc9178-1bd9-4e3d-19a9-08d8ef633a26 x-ms-traffictypediagnostic: SN6PR11MB3168: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tOn5A95uZfgqy/dhF9hOyrU5ibWo07aeinxR5qXEtZjqVBnlls/ohPJ51kmnNCpZyf3dHUxjY+l7Pk6zz1TI0DF00CD+UUZpNyZgSGq14hqb9LHNVvenZHKkKc8xpFayshiSOJPsnx1uZuzp7NrVye0+WPUkv9k0LI6AQW5dsKeF2fWQrKdHJ0vSqmhUHSuQMPrBYfBqAyOfKck32/y6lHMciUQiHkas2reNRonXQyFOeEBzKeEuBXL9iyFMOPwcygbM7PELsDmBTrhgg5bVTdrYuefw7tQCp5YoIHkyF/3QsvyPTY+ojQx61i1CoMKwx6lBERsuk508iP2nvItKaUvG/EfecZkOyi4vU8xmHtWToSUrbNYbcrw4WqkAnxaN2qo+iKfdRiZdM7ah2kj0Gk35VQ0A8xHgdsLxTb3RiEr4Be8M3a1IeaGTgn9CgXEsIbHaPCorWMFA5mQSGW/nhrQJHDzjDq39ro93OUnRMNN/bSMN0ixTx/MpBSjLMcSyOJiDM4Fg/awtWdrbobbU7PsJsm6A4+S1GWQjBCkrtKh9fC/NUtz4FRaWB6xPFnkUuVyq6RbhMgzkRtRstxN81fBsvybmFt4NtNla5hs+O7OvAH/V7X4HlqNW2veKSNQxc7G6yKPr3PCit1/nu4RBXBDc4PkIvTkEISvS7D8egJ0= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2894.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(376002)(366004)(136003)(346002)(396003)(64756008)(8936002)(66946007)(110136005)(107886003)(55016002)(86362001)(66476007)(71200400001)(9686003)(66556008)(83380400001)(38100700001)(66446008)(53546011)(76116006)(6506007)(316002)(2906002)(186003)(7696005)(4326008)(8676002)(5660300002)(26005)(478600001)(33656002)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?5tSWWMsDxBsmZZZpRGik3sGENU9T67uzMcuW8H2CeXqcQQwM08c4PfnhScnb?= =?us-ascii?Q?efjmqw603/7H/7kLterr0lYqTEw3AY4PLiVmNzdkvPS4OlSXWd5Hy8NReGvG?= =?us-ascii?Q?5S+Xiin0hMzT5TwZFx/YLdX2QZzeJmneGzZOFarTU7RD4Ox9f/8ph6ejyBhR?= =?us-ascii?Q?oeFNISoogqsPhREnnwGYQtpdukznYjMX6zlrmS+dd5Go1rhMe2txV5v9aDyD?= =?us-ascii?Q?b2puny9I0f9JCJC/9czTmHZzXcA5hy0uSuFmwd5r36JxPdGzuVuBsPfMKOC4?= =?us-ascii?Q?8AiyGVf9OyjrfyyQkUap1ePa16gUbbxqnBCGZHwxMeivPVDaJKEQ5A0IkZIZ?= =?us-ascii?Q?dE4fUbdhat9X79ob7sdzErsDpYMrC9it3mjB21hwWkQzQln+0OMRw/DcDemT?= =?us-ascii?Q?NkN11rIeeZpmoFYRhtz2UUPnLHynPaTlS+ZkRlYxkLJ2UirhnvB375Kji+Wh?= =?us-ascii?Q?A0HnCtWq2r30ZOnNPy4j+IfAcgmBF+MLbiKMuJZVIop7DMrtUYMNBFv05ld5?= =?us-ascii?Q?8alCv5Dgh0ffyB51W70A2cV4M9FMjZ8181Mzh1wcd7SmA+2Mi0e30YX6LJX/?= =?us-ascii?Q?Nb3w2+HwXk7fbOGXksTy1Vu62Szti/iFgXKBQ/ZUBgz1IlWCPkGgWx9UNkiS?= =?us-ascii?Q?4tfj9QQCpLUr4q7hsUEFENpUz5+6aajfGMHgvHx+/z57oQGDxBCNImKg1+wx?= =?us-ascii?Q?5R+nPJ1KXufLF2JTYQMOlPRXK2KZA9YuRu7h8uoEI/LjsVHriwO3ey6nZsK/?= =?us-ascii?Q?3BZwJePi9uzRiVWtgp3kEWT0C0yuehur0mYecb5AnYqIg5CnklQ4LmXc0sQI?= =?us-ascii?Q?vyDZu2agzGvYvqahgMlEmYPy51t+lOo4KjAy5Q+/9SnVbMVUiEK6lifVZ4rL?= =?us-ascii?Q?t6J9Ose/y27UWf5ho+p44NZMSfq34KtJQetMa65ZFrBPD61hntjoYDLfiUyM?= =?us-ascii?Q?VYrs+yDMR7wUqBrbpKpGKxDrHiPR2wNID5aJyMmhisfOIUrjBQMJO4mYBiIK?= =?us-ascii?Q?kEa+71fXIaUeCXPtYO6CR2skFSHJImrL0iXogKVSow/N8JnF5g8N+rbZDYLG?= =?us-ascii?Q?bI+hmeP79mX5fQ61lOLV5rLTEcpK67lcTQ5+YHQ1UkrVzGWJfOXFLbBx5kjZ?= =?us-ascii?Q?QqntpSLdCzdSX6aRgKf/xoYN7Z5HZ+UVSsWybt/HzafWvdy+eKw9d/WjZMR5?= =?us-ascii?Q?XvgzDWXTeC3q97KWEE/IrjccdYVWH44o3Fzd0plVGSplNIP7Jcdg/8O7LXq/?= =?us-ascii?Q?tCFMKueuhfPJ09y1MfLOMrCvqUlqkFQwzJTYko55MvNTj+C0+VD2sAqYYp3x?= =?us-ascii?Q?YE8=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2894.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9cc9178-1bd9-4e3d-19a9-08d8ef633a26 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2021 07:54:32.7802 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7gyVzIw+KqGHLbiyopZ3HAra+MC5506O18REyWj8m5MrPcU811FlkNGxMfM8sDcYDxPoDw344FzPK47Cz+z8zw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3168 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V1 2/2] tests/vf_vlan: adapt to CVL nic 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: Thursday, March 25, 2021 23:58 > To: dts@dpdk.org > Cc: Xie, WeiX > Subject: [dts] [PATCH V1 2/2] tests/vf_vlan: adapt to CVL nic >=20 > adapt to ice driver update for vlan issue on AVF/DCF. > vf_vlan_rx: while vlan set filter on, the pkts with random vlan id 1-4095= shall > not be received. > add_pvid_vf: while ip link set pf_intf vf 0 vlan 0, the pkts with random = vlan id > 1-4095 shall not be received. >=20 > Signed-off-by: xiewei > --- > tests/TestSuite_vf_vlan.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py inde= x > 28650143..0cc2ba89 100644 > --- a/tests/TestSuite_vf_vlan.py > +++ b/tests/TestSuite_vf_vlan.py > @@ -276,7 +276,7 @@ class TestVfVlan(TestCase): > self.vm0_testpmd.execute_cmd("start") >=20 > out =3D self.send_and_getout(vlan=3Drandom_vlan, pkt_type=3D"VLA= N_UDP") > - if self.driver_version < "2.13.10" or self.kdriver =3D=3D 'ice': > + if self.kdriver =3D=3D 'i40e' and self.driver_version < "2.13.10= ": Hi, wei, Now you can just use self.nic_obj.driver_version to do the kernel driver ve= rsion judgement, And the code of getting kernel driver version in suite could be removed. > self.verify("received" in out, "Failed to received vlan pack= et!!!") > else: > self.verify( > @@ -398,7 +398,7 @@ class TestVfVlan(TestCase): >=20 > # send packet with vlan > out =3D self.send_and_getout(vlan=3Drandom_vlan, pkt_type=3D"VLA= N_UDP") > - if self.driver_version < "2.13.10" or self.kdriver =3D=3D 'ice': > + if self.kdriver =3D=3D 'i40e' and self.driver_version < "2.13.10= ": > self.verify( > "received 1 packets" in out, "Received mismatched vlan p= acket while > vlan filter on") > else: > -- > 2.17.1