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 E6397A00BE; Thu, 16 Jun 2022 10:54:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CE59842BCA; Thu, 16 Jun 2022 10:54:42 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 2C3F44281E for ; Thu, 16 Jun 2022 10:54:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655369680; x=1686905680; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=8/mWJQe45NzTa5VuuZVitNZe9uo9IeswyNhAObFzBPM=; b=HGnnFSwnRrCJNHKkJB/3IZ8qsQF/9OLyB81qWfuce+NOIRUHJPdf5L2/ DtrFhLObCvJzafDxwSumSENpABRlhyQQbkF5jdPQ+vO92yAkEWzboJsVE ybkWK5pjv8BhvdSF7BJQ7cVZrZ+o2jKOD3EAc7aX/rZ1akQ6pH69TPQs6 i8KrhZZnF1tvpUs+QwI3J8EDPS5kOrpO96QKkqu00NGkgoZo292zI1gdt HWs/VwrtoZMNxxOeHFJMLdBQPGpjVVnKjhCD5rJ4mH+MwNUjg4dZiUqFB Yx2XwldiYGYIrxcBDhZRaQHDMTatvdLE4wB3zrp2kXfjbiYS1a606rCXf w==; X-IronPort-AV: E=McAfee;i="6400,9594,10379"; a="262222971" X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="262222971" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 01:54:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="589554255" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga007.fm.intel.com with ESMTP; 16 Jun 2022 01:54:38 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) 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.2308.27; Thu, 16 Jun 2022 01:54:38 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 16 Jun 2022 01:54:38 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Thu, 16 Jun 2022 01:54:38 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.40) 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.2308.27; Thu, 16 Jun 2022 01:54:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ekAkQx98Ns8d912DKm7pANPiO9pNlo0qiu96Rjgr5vPkHuHFadpnVvMNGY+um50VfVy4rSnTA+dcioK+rO34kkpBqlf/JqCcHuUKZcaxQ+9uvYsmakUlr5p6hC9pDH5yaj6ovVd+CcVbaotGiQdm+ayxD6DXS4FSFV6UgWT2xcFyg4E4CgvBnzDqoCFJohPPXtOkuvNTqKQiFulV0UwDThQfNlwpgB3IjZH4OOTWU7BDCDbhdxyfGPLVUZlNbx1qK3oLuMACCGm1n8WRit3I6P9FFB4Xg86xyXuBtm7uaf1lFo/X40mL3SbAQoMmdmPrquDyBkViZTBoxVmS0kuyJQ== 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=zjoY1zxXT6trOIRXv2Y8tjfU3Oa53QQdNCUAxTveO1s=; b=Lms3Hy3axJWlVl0fHXi2Mlx4kBYkbsUFISA7SyTxWWvamik1fMrA34zORRbjpV/KnNJaRkBt1ey8G7tBJt+PLS0ndIuJj4kvu345O8bP7XbXosiM7v3rREaPQtr4rb/xQbDN/fcTDLyNzuyXpoj4xf6qveE02r9VZhW35f56X3AYYvPvnF77F0pt0VIsSyT3HOIyFbVYJZu5GUUZpzarPWSGtW795dZcnryGjMvW2UE4gFSnSAhESbfOnuKytJRJ8CwCBcg9OAeA5sRAzerDykybnmb9ukGsd+WAZcpCPSoCS64NizMTndYwR0/gKEwoYOtmsUU1ryjcnmZk876Sfg== 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 MW5PR11MB5809.namprd11.prod.outlook.com (2603:10b6:303:197::6) by CH0PR11MB5537.namprd11.prod.outlook.com (2603:10b6:610:d4::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Thu, 16 Jun 2022 08:54:36 +0000 Received: from MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::6537:6de6:7337:1b87]) by MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::6537:6de6:7337:1b87%7]) with mapi id 15.20.5332.017; Thu, 16 Jun 2022 08:54:35 +0000 From: "Zhang, Roy Fan" To: "Wysocki, JakubX" , "dev@dpdk.org" CC: "Ji, Kai" Subject: RE: [PATCH] crypto/scheduler: fix qp_id in scheduler failover Thread-Topic: [PATCH] crypto/scheduler: fix qp_id in scheduler failover Thread-Index: AQHYgLnP1XU4a+tUx0u7BgJ0FrO4g61Ru9pQ Date: Thu, 16 Jun 2022 08:54:35 +0000 Message-ID: References: <20220615131349.20315-1-jakubx.wysocki@intel.com> In-Reply-To: <20220615131349.20315-1-jakubx.wysocki@intel.com> Accept-Language: zh-Hans-HK, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c2dbb661-7d4b-4313-11ba-08da4f75d6c5 x-ms-traffictypediagnostic: CH0PR11MB5537:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: w317l9gdytSbcWMKi5xM8YoNBB9lO20etaAtJa/zOLRJqhIKEH+ru79l+AaQY7XS14H0DRgzCfDGDX2Qs/LIWCs2TCkj2UMX0EyC/hfHltbRHhv690+zbsIsfj4sx9Yhkjvg2fi51URixjmvnmSiDxCxMYj/HcoCdfSRTXqcW4VpJtuBZT0mb+aaJ/EL8hy3znNYLm8s+wBLebd6Ffj03JcsKFT5dGoHPbCEBHxdndH5b4Fl3p7HJDlCUu3K8PrwW8jqkSXIfv7D7dsHkyQ+jbVtdHaiUYqhtPTkzIoV7Ht1LetxC0ZeddCmnjyKLbWqC0ibXcvMNx+cwAxtViTNkgrAp7gmQ8Pqvhf0U8/OvG6c9mSKtOU6IBOiB1OHBa810+l5V0diyqFnKGzMr8KenJyZScBK7DeJE28CWc/g86FhSNeDC611ynUIWIox+xKsW62yi3FGJStUdIJWclAOLZzL2162Z830te6Evou3giElNS/o0U7VMLXA32k0gz8KfusdHtaamN8gmWoCpOrMi51F9uwG9CrOMzcSfn0yb/tkX9D9CGJAN7x8La0p883ErG5b+3Nbb9p0BGhEkcBXI9svta7cOiL8YtNPyRhiZNVJQoeGuKr7byoy/HMUJvhqUa90JZTijkfca68hqOSf36O8BshkY0RhN/2OHKScMKiDAsslRKXwMMmuSCiiq2f7cL3Rm4fd5QtF7Q2oiPiv9g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW5PR11MB5809.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(366004)(82960400001)(107886003)(110136005)(55016003)(122000001)(316002)(2906002)(5660300002)(52536014)(8936002)(38070700005)(8676002)(76116006)(66446008)(66556008)(64756008)(66946007)(66476007)(4326008)(53546011)(6506007)(7696005)(26005)(83380400001)(9686003)(186003)(71200400001)(38100700002)(508600001)(86362001)(33656002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?cQZ9GCJJskeYDdFkfQuZ/lKrIYjFi9W9Z7XBGq5X/zYJYqJFeuBua6dl?= =?Windows-1252?Q?CBRLJ521qumEOiEyvymaLdFIs5ECw8FzuEO1OtXPlMowERhjS/GhdPfm?= =?Windows-1252?Q?q2XWCtXw1glDYdMyrLXtpiLSoSP9J9T7OA7HtoNqyAZopDz9PcOuo+pv?= =?Windows-1252?Q?jRer5/bekJBnQ8Rn7qoo3MilYA6RpbJN1gxzVVywBe73h2IywrvqJAu+?= =?Windows-1252?Q?CzdAMIcRuoM0DO6hPWegfT/Hku7vIwiwcCtpsgtdv5jfLh9VPGJB/BJw?= =?Windows-1252?Q?v42wQKMt3LZI+CVBwjRpr1QEzBVyEztslCxHDGEbRIt+cuqw/HXghVpM?= =?Windows-1252?Q?r3acZmSe74KPcJFNqud/lJJoeakPadsDswVgMSMzEJMG2ffu86CPwMB/?= =?Windows-1252?Q?mzC/8+6AoQWlv6slDxTKBoui5jTjrllR9O7dhNBH58ZCAvzFrARhUGOw?= =?Windows-1252?Q?HyEDDBpaLgwiHccNCkMu0QYbRr9hJsxSXVe10LTGKQv912QpLEb9+VPN?= =?Windows-1252?Q?McpI83rJmW8js7XBShLUxbVdUVJ7kmE/dbEzBmtlhS1lILstJY5/RSiy?= =?Windows-1252?Q?jAPT0/d31RVJYTtD2oLnT9xdNubJ+LWUTX2Qix2SG5AbyE0lv2uH5p+g?= =?Windows-1252?Q?uD2+2UOfxKEYYSjqaAeF61iJYb1a1o3iYxmXLbEucYo7Jl/xg6Yrsatx?= =?Windows-1252?Q?OACRKBNNu5hmpHI/G9uRsjIQsIvFjkCQHmSde/HV1r3vcd1gE7oYKQ7q?= =?Windows-1252?Q?i2nahy0A/OEGVE319r+5Iu5Chbq2NJKZEgkI+wFmqCdvwl2z73BVKrkN?= =?Windows-1252?Q?Lut/7CVqruaCD60p2KKcQWd9a1pVIw9MjjF/NXjS0k12qS5n8h32mcTB?= =?Windows-1252?Q?MDixruOzJiGD9KgeEw50H7sTpTOyYRaQPFsCSTu3OCp8ne3TM2qFGMzw?= =?Windows-1252?Q?fswsSdDW96jp78292svSfQS0MW6XiN7g17FVd9TiSWJTKPK4MEYNBMDr?= =?Windows-1252?Q?dLmh1v9By1fFGLsYz/UozgBMwdVD8N2C10mKZMaN8QsnoBJPRppvVOMH?= =?Windows-1252?Q?HLpKBs8rSCOBN1clCFnQ1XGqMu6htlOcBKwFH7n0a1ziE7gcvwCbNdYd?= =?Windows-1252?Q?01F1Drpwc7qfZNKFsdCsDHpmFXJk47lMUg6hPVMsTNKnR96nMqeOOSwb?= =?Windows-1252?Q?x+Q96VT0g2t7xsI04NIFa5S0/vYcwMgKyPRPJ/7qbPPE5aTbQNO/n2rK?= =?Windows-1252?Q?DoOBq79lPWWFezmj6ukRgraUN2PQQusMqEi2brKwMt7M8tAjqhAUZUo5?= =?Windows-1252?Q?e1ADITmH8Xbm1y4Mjqj5CdknmzGZul444UyJCs3f6D3/CbDJt9tv3lKD?= =?Windows-1252?Q?sEPq35Cmd22uussO4KhmWVBThhYw2kLvivVh0nrCyjaSHaE6SPVgJdn3?= =?Windows-1252?Q?uEB54t5BLIW5uutK8TkhhvTybJSUaaGCOSd89laRc+PjsE/UCp2+LezH?= =?Windows-1252?Q?MiskYPE6S0+b9ZS6sFwgRJbx8SAOe8P2y/X/ch/Ft+FwR8SUE5bU1Oaj?= =?Windows-1252?Q?Akyz7iig5IFif/PDGw1grIwyPlDrsN6bFtsGtzf/eb5XJTrlZsOqAVUW?= =?Windows-1252?Q?dXJBHYifVHVia1BpZkdhh/19L3DS68MoxdmJJ4Xl/1Bxh48EzliH5tP0?= =?Windows-1252?Q?Dazbr7J3LI7VoysIkFVJrZfEz7oo6+MOXOddudCVlHUu1yoKtgiCu/cC?= =?Windows-1252?Q?YaBsbCsDdLokY/siyezF/vpt0HAdQnxhf1vY63kfZUcyP85GZt7K5O1d?= =?Windows-1252?Q?+jYe4/S2zg46s7NaoI9TFmRq4zFKtlaDIGnct1cbUfWJaeeKkG64wLNP?= =?Windows-1252?Q?xnBXvsusJExFCA=3D=3D?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW5PR11MB5809.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2dbb661-7d4b-4313-11ba-08da4f75d6c5 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2022 08:54:35.8886 (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: GdK8xECR2sl6ltV9tKnXsXpnX8GVUUn0e10ZIOciVQouCy8gUbGMvcI7zjUuhwKxwY+9E4i2IZrSiWFVDqCjZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR11MB5537 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Wysocki, JakubX > Sent: Wednesday, June 15, 2022 2:14 PM > To: dev@dpdk.org > Cc: Ji, Kai ; Zhang, Roy Fan ; > Wysocki, JakubX > Subject: [PATCH] crypto/scheduler: fix qp_id in scheduler failover >=20 > This commit fixes wrong qp_id value in cryptodev scheduler in failover > mode. >=20 > Fixes: 37f075dad1e9 ("crypto/scheduler: add fail-over scheduling mode") > Cc: roy.fan.zhang@intel.com >=20 > Signed-off-by: Jakub Wysocki > --- > drivers/crypto/scheduler/scheduler_failover.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/drivers/crypto/scheduler/scheduler_failover.c > b/drivers/crypto/scheduler/scheduler_failover.c > index 5023577ef8..247aeb2f22 100644 > --- a/drivers/crypto/scheduler/scheduler_failover.c > +++ b/drivers/crypto/scheduler/scheduler_failover.c > @@ -157,6 +157,9 @@ scheduler_start(struct rte_cryptodev *dev) > ((struct scheduler_qp_ctx *) > dev->data->queue_pairs[i])->private_qp_ctx; >=20 > + sched_ctx->workers[PRIMARY_WORKER_IDX].qp_id =3D i; > + sched_ctx->workers[SECONDARY_WORKER_IDX].qp_id =3D i; > + > rte_memcpy(&qp_ctx->primary_worker, > &sched_ctx->workers[PRIMARY_WORKER_IDX], > sizeof(struct scheduler_worker)); > -- > 2.17.1 Thanks Jakub! Acked-by: Fan Zhang