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 8B3FFA0542; Fri, 28 Oct 2022 07:15:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6133E400D5; Fri, 28 Oct 2022 07:15:32 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id A0B9940041 for ; Fri, 28 Oct 2022 07:15:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666934130; x=1698470130; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=5Q7qHzq9TvWfpjMbxgDPNdPzrGO9UZaKqxSyAp/wnPk=; b=gO/ZojDGswdTOWpO5Gpu5G5Byq1RNC66ID5vzLBnkGEgZyMjCzK8CnQp hjhLDwqKGWkbWKWJovd5WEVfKsRpXiby74iFHe1XcSnZJxMfnhTMv6jrQ dAEuA+OSBONo1wzyEwXIz4m1a7x7TgnClqpgPhDAfDsT51ieJ8l+yicns DETBSXMskIX2x9hMbbizZBf+0+8/edIIpSFt1gInMuKxcYVzLSvGgthOu TXplTPn05Ce62Rej63MGJluP44Zi9Ze7Uiqoc/exYJ/VI0fONR6n3Fx1+ nv8/2LWMuAPk4/1jB7oC4Af9DeZcTiIMxetuM1SQujcBMiPSg4qbYhyuK A==; X-IronPort-AV: E=McAfee;i="6500,9779,10513"; a="307139982" X-IronPort-AV: E=Sophos;i="5.95,220,1661842800"; d="scan'208";a="307139982" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2022 22:15:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10513"; a="632659588" X-IronPort-AV: E=Sophos;i="5.95,220,1661842800"; d="scan'208";a="632659588" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga002.jf.intel.com with ESMTP; 27 Oct 2022 22:15:21 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 27 Oct 2022 22:15:21 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Thu, 27 Oct 2022 22:15:21 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.47) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Thu, 27 Oct 2022 22:15:21 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L/HeO626q+IIUL/bW2I3rqnc2sV7y0pWZd3noZv00MXDRi+DPAP+CEs0tQJ/aXHz0Xy8GhemFjRusvPGNJMoyL40cJ8lPYBDcWrYebRKFiFyo5VSZ7Qt4Qf9t1nvIVqiPSnZvX+U6PneuLkvoOYJPJcF8lcrdqbpBA43mmcbCwZ8aZ9uFVK72q0yrdHSD2wUrFQdKFmod5w5hqPuUgSSK6a8gfekCyMkTgCLuf8hOmtyiQMo5ypkivrdqoDmdklkOAnRmUExgT7L/raS1gw2hkZ81sSliE5NqonHoumShwit1s1V1xQJ2q73PomnYW5ZPt/DPHt1bageULkTi+18Pw== 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=IosLJh2saCWXNmZbnvLHejd32nhpKKqq0eNIUQtudj0=; b=d7BlQ09xPvQ5HB9mGyKlJp64vT5nQlgKMdRu7OfS119Lig3LqMmrsxZamv1F4GD0kQ2PY3XUHfybOFrEIaZb+oO3ZNLYr6XRBGpoFC9zC5kt04zJrJH19Gjv/Zp0Er2g9OrXbGuGcvvv0TUBcAO0uQ/lHnF9dmvncY8raMg0Tp8dlCbIAWMOaH+K+Aq/+g5A7uFiU5GRbW7UdSvCDBgUs6xIBLODKWxwLYl2Qfp24QlIJcjj7N6oyXSy9Enu9ICOyP2SyrRj8cEqA5SBgpAjRlRRQJ/U3wRy+nhmmLu1TUmpr+zMIDaIaLKE2BoAZqNqezIxWKk+D7dbiMoXof/WpQ== 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 Received: from BN0PR11MB5712.namprd11.prod.outlook.com (2603:10b6:408:160::17) by SJ0PR11MB5006.namprd11.prod.outlook.com (2603:10b6:a03:2db::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Fri, 28 Oct 2022 05:15:14 +0000 Received: from BN0PR11MB5712.namprd11.prod.outlook.com ([fe80::8938:3719:8c0f:ff97]) by BN0PR11MB5712.namprd11.prod.outlook.com ([fe80::8938:3719:8c0f:ff97%6]) with mapi id 15.20.5769.015; Fri, 28 Oct 2022 05:15:14 +0000 From: "Huang, ZhiminX" To: "Li, WeiyuanX" , "dts@dpdk.org" CC: "Li, WeiyuanX" Subject: RE: [dts][PATCH V1] tests/kernelpf_iavf: optimize script multicast case cancel trust mode Thread-Topic: [dts][PATCH V1] tests/kernelpf_iavf: optimize script multicast case cancel trust mode Thread-Index: AQHY4paqLdpXkJYnjUefW3sDrloMN64jNREg Date: Fri, 28 Oct 2022 05:15:14 +0000 Message-ID: References: <20221018020938.30275-1-weiyuanx.li@intel.com> In-Reply-To: <20221018020938.30275-1-weiyuanx.li@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN0PR11MB5712:EE_|SJ0PR11MB5006:EE_ x-ms-office365-filtering-correlation-id: 80f87eb5-b24e-4e9f-392c-08dab8a36558 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: eEcJTfHA5acfW+6VBpIQhLCKLOo7gfdfNu4UG3kYQEpB9yjymH/sI4fGuRmSEzCzHuLcN3BLKKtIUBEy8w30/Sgue8UzuI3KwN6swjedYYjz1pEWSJ0IqYZCMFLP3Y8lgATduOUGRa6plkEYAuEIqKgvT+A3EyY8siXIXasbmIEZHIwtEaf7qkvv71nxcqX4VLdPHkPXcKszp4Uwji+OmMa9m+pS5k7AGPhseS7gsrIVTIYx0EFr3llGUF+3UadQHmjXplofBN5bK50i0W4/QItpiPorpL8P071PuuAOe911Ob5FKO8phUJ0XhqBr/SeO0vxhDnPDHNX6Zjm7dZSUm07dilQaBttGOXKFF6lEnaBRHWPWqpx+Ra9wZY6ZQgE0EqWK6ncF79RRaPOlk0P0M893i8fMggI2cc3zyC8LG81GlXICJpKsEvfI6XBRaxkaSzOuj9VZg7X2TmAAmNpq5yIjwyXRll03eSeow0kOdVrYtWzf2WdOyEd3GyCb+f9mpvHPzPlyBeAuc8BQU4DklB+obJ0LgG4dKvbWl63Byg/7bqydXXucBIj6c5DWF604rDSk1ajPqCoS3cRL2m/1I8ju7dQSpvX/tc206f8TZTivVlieJRfs8e6EYyJUQXg+VM7R2R+ikxDxVJ3Xvwt8bV8ey2+1COGjKCmY5mH6FeGhDhXoxoOzyU9m9mIo72846BPJZEOx3IJpt+edWhLRxa7bE9is+kCHOGtzNcBiW6zUjaXYyQMcpsnGaw/OZiPFd5Az/SxyQxkf1vzTq5Ztg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN0PR11MB5712.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(136003)(366004)(39860400002)(376002)(396003)(346002)(451199015)(86362001)(122000001)(82960400001)(38070700005)(33656002)(38100700002)(186003)(55016003)(2906002)(478600001)(53546011)(7696005)(9686003)(6506007)(83380400001)(107886003)(26005)(41300700001)(71200400001)(110136005)(8676002)(66446008)(64756008)(66946007)(316002)(66556008)(76116006)(52536014)(4326008)(5660300002)(66476007)(8936002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FifG7EjoUgmL/pz5E3v7d6+1t7zTIKW93xPCfKcIC7joe1ysDGSeL6SfEc82?= =?us-ascii?Q?g7wwBo2W2b9a8M4S1ND2wyoeUNrLlFE9xK/i/mb5Ofr87DdyP/mlQMSH1tXw?= =?us-ascii?Q?V/8sfrLQc5Yy6mfa6Z2crtWDHFncBrt7OhnLLbI8Kd3LuS9Ggj1viJKsElEa?= =?us-ascii?Q?7tYZwd+ppR4JStLjq0j+j96PQH18eUR3s0HbNauN7kqfseNYsD+dDbR5H2t1?= =?us-ascii?Q?POuapMoF49TcBNaiQMwKX6/Gzn5a9cP3RFadv/bdmJZ6mOi5gvUNSe8KVdWX?= =?us-ascii?Q?1j9vzqvo7MFgxx7g6DqSzCGEDdcby51GTxPNnfzbs0nTreMT8Y9RJEYAt4tG?= =?us-ascii?Q?JGn39gCSehi/E0/4eYWO0jbImcNTlayxqmKmMCxcy1wJ1qdY0BRcPjRL6K2P?= =?us-ascii?Q?CBh1OQ3GIltfqD02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-ascii?Q?jYvzyG0YYDuKrS/DFQewdyzaL1rACiP/GTg0025dqBXo8LekhxPpqTtbRRKd?= =?us-ascii?Q?jy10RyzjJufviReDgDY3+8VktFGbDVwD/tzhRlJhQ4e3R0lnrlaRQINB+8/a?= =?us-ascii?Q?xVEksGGX4vv81omejsQlp+91VuJnW45HpWMjyrHsa7b7h+aUahEkTvXfrEd+?= =?us-ascii?Q?WHPGpgfhk02tPH6wcsDpqijS0XOYDVbEKBQX+vGiteFNp2C8Ne0h5VfgVDPw?= =?us-ascii?Q?EOrWb7q2TQWalN9aBXnRoPkabAiIBApawoLAngzM?= 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: BN0PR11MB5712.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 80f87eb5-b24e-4e9f-392c-08dab8a36558 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Oct 2022 05:15:14.5182 (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: Dm68AnwXGjFcqZIMFAvn5MU0vI8Mm+ILAW7umFEmG75lb6YolBaqcc+kG14Gfgc/3a+bNE5WJq+UsGz1qPqzWw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5006 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Weiyuan Li > Sent: Tuesday, October 18, 2022 10:10 AM > To: dts@dpdk.org > Cc: Li, WeiyuanX > Subject: [dts][PATCH V1] tests/kernelpf_iavf: optimize script multicast c= ase > cancel trust mode >=20 > Case vf_multicast cancel trust model and use 'mcast_addr' add multicast > address to the testpmd. >=20 > Signed-off-by: Weiyuan Li > --- > tests/TestSuite_kernelpf_iavf.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_= iavf.py > index 73435339..494204a2 100644 > --- a/tests/TestSuite_kernelpf_iavf.py > +++ b/tests/TestSuite_kernelpf_iavf.py > @@ -334,13 +334,13 @@ class TestKernelpfIavf(TestCase): > self.send_random_pkt(self.wrong_mac, count=3D1) > out =3D self.vm_dut.get_session_output() > self.verify(self.wrong_mac in out, "vf receive pkt fail with wro= ng > mac") > + self.dut.send_expect("ip link set dev %s vf 0 trust off" % > + self.host_intf, "# ") >=20 > def test_vf_multicast(self): > """ > enable kernel trust mode > """ > multicast_mac =3D "01:80:C2:00:00:08" > - self.dut.send_expect("ip link set dev %s vf 0 trust on" % > self.host_intf, "# ") > self.launch_testpmd(dcf_flag=3Dself.dcf_mode) > self.vm_testpmd.execute_cmd("set fwd mac") > self.vm_testpmd.execute_cmd("set promisc all off") @@ -355,6 > +355,7 @@ class TestKernelpfIavf(TestCase): > self.verify(multicast_mac not in out, "vf receive pkt with multi= cast > mac") >=20 > self.vm_testpmd.execute_cmd("set allmulti all on") > + self.vm_testpmd.execute_cmd(f"mcast_addr add 0 > + {multicast_mac}") > self.send_random_pkt(self.vf_mac, count=3D1) > out =3D self.vm_dut.get_session_output() > self.verify(self.vf_mac in out, "vf receive pkt fail with curren= t mac") > -- > 2.27.0 If you want to replace 'trust on vf' to 'mcast_addr add' in testcase, Please update the testplan synchronously.