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 339B5A0C45; Mon, 25 Oct 2021 04:00:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2547A407FF; Mon, 25 Oct 2021 04:00:01 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 178E54003E for ; Mon, 25 Oct 2021 03:59:58 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10147"; a="210332444" X-IronPort-AV: E=Sophos;i="5.87,179,1631602800"; d="scan'208";a="210332444" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2021 18:59:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,179,1631602800"; d="scan'208";a="446430329" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga003.jf.intel.com with ESMTP; 24 Oct 2021 18:59:56 -0700 Received: from orsmsx604.amr.corp.intel.com (10.22.229.17) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Sun, 24 Oct 2021 18:59:56 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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.2242.12 via Frontend Transport; Sun, 24 Oct 2021 18:59:56 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.172) 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.2242.12; Sun, 24 Oct 2021 18:59:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mccRsLKZoDurqfzoeoFJgVvM/j2FMxritD7GGLvcxqJFyLiiNjNszT8XmYDX22rsAfaHl3QKLGARLxf8WgsIfFt3+eMWBFsFISdW1vpUrkj22PygEuJvRbpZgUHB9KthUWkByZtIyKgcaufE1Rd6B2P/9S2utxQkqRcL8Vm8X80kbunSTcmPuWXAw1Aex58ZJd0a0auPBhSd0JNIKBl+FqNpJk1z4CAagdl6PR8XiCuwlx4FwlmZK28pA/hfN+OO6xt6yt/3fOONTBqL0DzelbIWQWR42pdAFVTvHq14rHVans6SJ+7LcU6RKzMhdtJdE1ltv224ahtewJcKyhqqTg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aSrgzRIvmy5/cpoo+xB6OZbxhciBYwiw2iOFpfrzNFQ=; b=NqFFs2H8z9v7jYX3KFbqMraJFQGvIE68K4wFTNbiLy0aV+3d17mCU+WnzrhejrYJZ3wIpHeqFlsAB+S/+KY0GM4dvGKW823GsT0+mUUg3962YXVKV7i7ib5t9dMQeiylfj1xKYJ1u8GJiwXcn4CeANIDHV3+LCXbqBZ18CpZV4OWTS/agn0w80y8HEWa7tJ5JjdrNbLO+VxwlJP1ptqxfqFhbdXJ0THIf257cxyc+kIuBGooQOTzXDNt9bLXTPyjrNKnUTPUfMxOUmPXhMX8Xpr7VB60/gJ+Qs462gmV4WrgAG8jvy91inxp5rNder4qSqgClKf7bRiYdRglNJ+C+w== 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=aSrgzRIvmy5/cpoo+xB6OZbxhciBYwiw2iOFpfrzNFQ=; b=uz/3aQNGi51jBkLjV56sOy9vte6zR5GztTc+3PIxLh4r2eKLZt+2imXLw2HdOkBJfeybbdrTay6+tq5iw/kq+5n/IZGsTTdj4lVhgPQRsX2UUYbCwxkDh8Ml1tt5LEVJHv3daV4P3+T2jq5dTrNSv7er2z05FckXCvVunygYz+c= Received: from SJ0PR11MB5599.namprd11.prod.outlook.com (2603:10b6:a03:3af::21) by SJ0PR11MB5616.namprd11.prod.outlook.com (2603:10b6:a03:3aa::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Mon, 25 Oct 2021 01:59:54 +0000 Received: from SJ0PR11MB5599.namprd11.prod.outlook.com ([fe80::10d:e8b2:6de3:942c]) by SJ0PR11MB5599.namprd11.prod.outlook.com ([fe80::10d:e8b2:6de3:942c%9]) with mapi id 15.20.4628.020; Mon, 25 Oct 2021 01:59:54 +0000 From: "Lin, Xueqin" To: "Xia, YanX" , "dts@dpdk.org" CC: "Xia, YanX" Thread-Topic: [dts] [PATCH V2 2/2] tests/kernelpf_iavf: modify dts because case design is unreasonable Thread-Index: AQHXxxpn7Kkov5HYk0aPAQ8F2IaUlavi+ZlQ Date: Mon, 25 Oct 2021 01:59:54 +0000 Message-ID: References: <20211022155933.62573-1-yanx.xia@intel.com> <20211022155933.62573-3-yanx.xia@intel.com> In-Reply-To: <20211022155933.62573-3-yanx.xia@intel.com> Accept-Language: en-GB, 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-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 286f4534-b9fc-47cc-8a2a-08d9975b23d1 x-ms-traffictypediagnostic: SJ0PR11MB5616: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:206; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QHgWZq/Y4QNQJW3aUI/uP+NSY5ry1SIxS/QHWKnWZeGUxPRZtQXPZTZTHGgTVqco0gkak12y49HWhRus52q/mnUM61KGf9xDtxCQ+pmaWg3mgqagwos1XkGw2mBrylKlpg3KtoXdYSvbtTgEF4jmxuSOD1/wY0kXajRQ/mHvt1ZV6fxJbKY1594d+FUjTv5DsOoITxhBV5RzjF9ot+EMZaipCbK39aGHyWl1JsJvkvZaNfOzHZ+zwTlHEOO+pDg0zjiisxdZLBFEiBQ5nELtA6PcTuBo0kG3sAm6keFZZ2CWwklilTzt6HL+KgtqsrJ0lElti00SakQ/m5p/tGN4D8CHRojhArgbWfu6aM9P0iguX9f8RIBiAxIoujloVYnS7jNOTf/S4xzuPxq3a/iH1j04J5xME+bNySJWOzlpzzKhmD87XwQQt5G+1tK11VbG5Oy9PGaNOyQjeXLtCCwGs3lWkI2zQ4hkgOTI1O6L3fFxbIdYvu79Z9I9cIWUGnAaQxR2p29xa+DLJ2V0gq7e/AfIhNmy8YplbYcnIs04wGrhASrXhPlWtemnV2dGNoShLqr6wYZ49pN10paURcjBtwMahVrHl/LIa8NhN6WB7cxT4kBXhnBZuCLRWxScfLfkz5btn9W4sIrWYFLeDRWhdywMCDrIULHL3CvLPR+QVypx3uG+lPZej231Q1hbG+mB9NDVRb+ZGWUeF7tzLJPNOw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR11MB5599.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(66946007)(82960400001)(66446008)(6506007)(38070700005)(53546011)(55016002)(4326008)(76116006)(110136005)(26005)(86362001)(64756008)(66476007)(5660300002)(52536014)(8676002)(122000001)(9686003)(508600001)(38100700002)(33656002)(7696005)(316002)(186003)(2906002)(8936002)(83380400001)(71200400001)(66556008)(107886003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?iU92ujYWPwEjDAi/Sq30v9KGpjivgxh4igF1YMN9YdpM7hbuj2d9k7lkCDNE?= =?us-ascii?Q?y2bMkRLFkccFh8VDnpB5QsVRgJ2ZbeiAOcpSxjx9+4OTq5fKEkNeF9EYlceT?= =?us-ascii?Q?1YDmMCSaSB5yURJjXjxjQ0tffvv/VYoywrJPZ9ze7jh6rGn9YBCHiHXYFxuf?= =?us-ascii?Q?+j6UkWOwAhp4lEtnoaw8s6J/HMPz86lb9fpXq6/7RUuWjKdSCH9M3wI5Sjhi?= =?us-ascii?Q?2IWS3c6hENnm8STgb8z19eaCpIqmEzWZudpSxIlCeaWZZcV6W4P2YptTzT4m?= =?us-ascii?Q?opDphaAZuw0rjaoaGdkOPK+DaA9QG4bZTIINvn2UAp73OEyTHRnVtAVbagiT?= =?us-ascii?Q?cBZ/YgmwxuTZTO0LVwjdMx6L0ItWBlMyB9RRM6/323SK86nK4VgnCi/Q9hUZ?= =?us-ascii?Q?jS7lMaVI1GwoQMIzlidLzsmtFH2jUjvrouxItw9bx+jJdJgTAoq6uA/lN71H?= =?us-ascii?Q?Z6NUXO+xa/z+T72jqRsho3N7CgmlyWWumIATK8TCEwlRRHtiUfRLGijmeUyi?= =?us-ascii?Q?O0yrrg8pZ83hk35PmujoTMrLSYoPOMQtcSQaawe25dS+1lnQ6pExlyotHdp5?= =?us-ascii?Q?ZdObCZpxNPa3H/l7VprCD30LalSzS+p66zcT1UWpOjyONlskmWlVf5zIoooR?= =?us-ascii?Q?XWz07jNeCkFYUG4m303dTbn8+JadCoRQxVgePld5WNWKixDJOPZS7M/rr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sIxK8x6lEjutOHSaI?= =?us-ascii?Q?trlzMvYo+4vuKMvLcL8JfbU=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: SJ0PR11MB5599.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 286f4534-b9fc-47cc-8a2a-08d9975b23d1 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2021 01:59:54.7273 (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: hbB0cd2xmqS/wmx2D2GTANNYKtYYF87oO1Wom5sRlEf8Tx2Pk8WlT4+g2fJQa9YMV6jSAdHMhBxHIPDOEVXRZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5616 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V2 2/2] tests/kernelpf_iavf: modify dts because case design is unreasonable 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 Yan Xia > Sent: Saturday, October 23, 2021 12:00 AM > To: dts@dpdk.org > Cc: Xia, YanX > Subject: [dts] [PATCH V2 2/2] tests/kernelpf_iavf: modify dts because cas= e > design is unreasonable >=20 > validate strip function need to enable vlan filter and received the packe= ts, in > addition, strip function has nothing to do with driver version. >=20 > Signed-off-by: Yan Xia Acked-by: Xueqin Lin > --- > tests/TestSuite_kernelpf_iavf.py | 20 +++++++++++--------- > 1 file changed, 11 insertions(+), 9 deletions(-) >=20 > diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_= iavf.py > index 6a858fc5..ff1f83a6 100644 > --- a/tests/TestSuite_kernelpf_iavf.py > +++ b/tests/TestSuite_kernelpf_iavf.py > @@ -529,29 +529,31 @@ class TestKernelpfIavf(TestCase): > random_vlan =3D random.randint(1, MAX_VLAN) > self.vm_testpmd.start_testpmd("all") > self.vm_testpmd.execute_cmd("port stop all") > - self.vm_testpmd.execute_cmd("vlan set filter off 0") > + self.vm_testpmd.execute_cmd("vlan set filter on 0") > + self.vm_testpmd.execute_cmd("rx_vlan add %s 0" % random_vlan) > self.vm_testpmd.execute_cmd("vlan set strip off 0") > - self.vm_testpmd.execute_cmd("vlan set strip on 0") > self.vm_testpmd.execute_cmd("port start all") > self.vm_testpmd.execute_cmd("set fwd mac") > self.vm_testpmd.execute_cmd("set verbose 1") > self.vm_testpmd.execute_cmd("start") > + > + #enable strip > + self.vm_testpmd.execute_cmd("vlan set strip on 0") > self.start_tcpdump(self.tester_intf) > self.send_and_getout(vlan=3Drandom_vlan, pkt_type=3D"VLAN_UDP") > tcpdump_out =3D self.get_tcpdump_package() > - receive_pkt =3D re.findall('vlan %s' % random_vlan, tcpdump_out) > - self.verify(len(receive_pkt) =3D=3D 1, 'Failed to received vlan = packet!!!') > + self.verify('> %s' % self.vf_mac in tcpdump_out and '%s >' % sel= f.vf_mac > in tcpdump_out, 'Failed to received packet!!!') > + receive_vlan_pkt =3D re.findall('vlan %s' % random_vlan, tcpdump= _out) > + self.verify(len(receive_vlan_pkt) =3D=3D 1, 'Failed to received > + vlan packet!!!') >=20 > # disable strip > self.vm_testpmd.execute_cmd("vlan set strip off 0") > self.start_tcpdump(self.tester_intf) > self.send_and_getout(vlan=3Drandom_vlan, pkt_type=3D"VLAN_UDP") > tcpdump_out =3D self.get_tcpdump_package() > - receive_pkt =3D re.findall('vlan %s' % random_vlan, tcpdump_out) > - if self.driver_version < "2.13.10" or self.kdriver =3D=3D 'ice': > - self.verify(len(receive_pkt) =3D=3D 2, 'Failed to not receiv= ed vlan packet!!!') > - else: > - self.verify(len(receive_pkt) =3D=3D 1, 'Failed to not receiv= ed vlan packet!!!') > + self.verify('> %s' % self.vf_mac in tcpdump_out and '%s >' % sel= f.vf_mac > in tcpdump_out, 'Failed to received packet!!!') > + receive_vlan_pkt =3D re.findall('vlan %s' % random_vlan, tcpdump= _out) > + self.verify(len(receive_vlan_pkt) =3D=3D 2, 'Failed to not recei= ved > + vlan packet!!!') >=20 > def test_vf_vlan_filter(self): > random_vlan =3D random.randint(2, MAX_VLAN) > -- > 2.33.1