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 A0E87A0545; Mon, 20 Jun 2022 11:12:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 77B5D40F19; Mon, 20 Jun 2022 11:12:27 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 20CC040150 for ; Mon, 20 Jun 2022 11:12:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655716346; x=1687252346; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=ve6AIJYML333gtKChGz5HhXrh+fCZH01EaDa3kK/czs=; b=dQqDSe4zwYqxHMHT8CHO9UZIxI8o2GWNyNLib3S+10s8hujKULV278bv feT6JtlMCtlhzflu9hq8LU8yLXrkrWuk6EIyVFZJ6In4c9mQBA3Gf/qAc XtMnccLtgpKSGOGrQIZhbhemzl6fZfZPkThbHmuKdecUWyEmZ2svYJrZH yTbPgr9Yeh4pTo/si9vH1tVTW8ajkE7yh4XFrnIbRB+wUbtJelWOIbzm8 fDfOASIG5pNLwE4bSt2R5GOfGE3qGPmFjWdee5Wudcg3Vg1QmiUeTQsQ+ Vf/v+AP2vKsWUoWkCQ3f3wp4bQ8YYB9K51gZP3XjnCoQXOXqWBiSLyFT2 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10380"; a="259668648" X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="259668648" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2022 02:12:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="689358331" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga002.fm.intel.com with ESMTP; 20 Jun 2022 02:12:25 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) 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.2308.27; Mon, 20 Jun 2022 02:12:24 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) 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; Mon, 20 Jun 2022 02:12:24 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.42) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Mon, 20 Jun 2022 02:12:24 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e9iJ/8ZSnvkD8iO6rTiW3XzcpQoOMgxm8ofTChsuI6WpZa7QiXNymNRgr09SyvVXNd9XOlbsSv1uGlxJ2Nik0flE2g/ciF9+Tg54iyStD+vP3n6reXEPMZ3RGXrHN/2H4lNRfiSHMShXS3sLmMSnyudHWzfRbpLLWWNSJk8czC1ueHCMkVEX0fS+hb//vI0qdhEF63S0zT3o6SbD83/QvX10/IE6e3pdZAA1XZMkjvKjK/WFQTU6uC3V9zYr1k+YLRp9SKbqTrlA2xIr2BJNllr5Nzb8IGXt+7hCIub7QWLZQjZH8KlEAjNvIAe9/hxWwBblP0kTluG/8FkETwtOWw== 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=rq1J987k4PL/f9f+/psz7mdn1B11P/cbjzOHSxp+oSU=; b=m2aJnltyGl1SFWpVlbmu8P0dkigaBoG17GfaY3MmCf4MWSXVjmAYha/4pQUY9rz5VnVJJ983Y2al7D/zM0SbVt7al3/6iFRdDUT8F8a4A0fVD9OC9LES0Tw5ck2KxiGBFSbqQmOwiSrwjkTZ7j5pa05hlvWTbxVCvWFdc6pz2GLahJpOF0SKDsYmpSRERm5OI6T2ZhbFiHfFARVjae98n6cb4FtDR01LhtNbwGWn8B3eM8CvDWNB0j0riquWYX2bvRhF3I75GPdhsVtzFVI8Qyrk9yY5SIG0mxpwUG0J1q/yr9d5/CzedFi1U0dwfnYb6XDzCazMWpit8ySRfBaW1g== 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 PH7PR11MB5817.namprd11.prod.outlook.com (2603:10b6:510:13a::14) by DM6PR11MB4170.namprd11.prod.outlook.com (2603:10b6:5:19a::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.13; Mon, 20 Jun 2022 09:12:22 +0000 Received: from PH7PR11MB5817.namprd11.prod.outlook.com ([fe80::6024:7f58:ffc6:64ce]) by PH7PR11MB5817.namprd11.prod.outlook.com ([fe80::6024:7f58:ffc6:64ce%2]) with mapi id 15.20.5332.020; Mon, 20 Jun 2022 09:12:22 +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+tUx0u7BgJ0FrO4g61YCexw Date: Mon, 20 Jun 2022 09:12:22 +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: 95474753-9811-4643-ce7f-08da529cfc3e x-ms-traffictypediagnostic: DM6PR11MB4170: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: CxvJxhALfyYf0I564LQMlmAjqAlDRppp70Jq3VkRzqx7iGB//vKmK+vGoLH/8JjkcEH4KOHrmw3opDSOuS/UZ+7do/FAKdk/LEmz2uNpicaefY+//vr4Vgr3rJDYkDNnUadOXnIVLbIgE+NUUqGH6jePqexj2lJT8/SLjZuPUXmhBuIpRXp49dXcFuRN1iIpnkbERpYcl1NYD+Ii0t6MhoQ5RX2yObG/0a6p1sKSb5edPyvxL2a76jY0/PUkkzDxQkZx+l6G4k403EEklOs5EDQKKC4koOuvxsWLYnSp8VzVlYZiNV/AJ2PlguqBwQMZ2kppIUh87bbpNBIzwVzAkZmQpwnXQKa4kH4MfqK64r1m57rASd9wlPVDGq0NDvxd5094xndGDzPuRaeoHRNFDONFdL1M8UEQak9FY4JEI3bqxVr+z7jkBtglaxQqCoIRTxCdlVboDghlTjzCK1Z6cqnXk+GfS7wpFi7Tbs7nu8uUpjvGFJ1xKHJ13A+pn4P6B1aCsiwgKuMbf/KjlLYFIfXlM8qlTRb4RTpFLuR6ADI18owiqwT8fD0Qd5I+1gaIQXKPe4+yOTnWxXSo6F2HnuTcV8TJ2gXau5P0ZPPniS2fISW/uof6WTrru/VRhozRSLY9ho7bDvhKlpMVjh9/+kvBe5v1zVYNwRmaFNNqS+xsAkPw63V4XnOzM0u2ntBZe2Nk0btIyrAMG0kkmolAPQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR11MB5817.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(366004)(5660300002)(33656002)(107886003)(38100700002)(6506007)(316002)(2906002)(7696005)(122000001)(9686003)(26005)(86362001)(53546011)(38070700005)(55016003)(66556008)(83380400001)(76116006)(8676002)(4326008)(66476007)(66446008)(66946007)(64756008)(71200400001)(498600001)(52536014)(8936002)(186003)(110136005)(82960400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?XdewVbs93pPXD+3yCgiRZV0tv59wQo9i5yZcQUDktn7nAb3Fe7EHgRbr?= =?Windows-1252?Q?tTEKRBLeno1GzFQmuR1J0CkYgo/i3PfqlwGyBdFwDHdgJ4wE1FdRPtyq?= =?Windows-1252?Q?Ilnu5IdO7dPba+0loMOnjQQT93MEETCW+qF2FpZNAhb9E2XYZjkwpaae?= =?Windows-1252?Q?Eqc0U22YcZD1wnccNCVzeI2jDSNdMlX3Ie69zUZJfcVIObVXwNVZVl45?= =?Windows-1252?Q?O2LjsZeUwAJPwW/HbMrPo5at4a//S3edTM9psLyRxQ72Iwipf1P1U1q3?= =?Windows-1252?Q?grFTKocB7v1WCJ5fGRxM2F9Fs/dozouBXS9uWKijh5iGoPRxKoHhQqGH?= =?Windows-1252?Q?5Km+Zo2tcKnMvAg9Sx4ETaa6BSVu4c1VUhakyTUYHUIZGvVbt6oUdxUG?= =?Windows-1252?Q?sk6C1Itf6eMJkCeYULodZSJJokuID1mLMyfV6qCe0ox8WjJAnlqeQMUW?= =?Windows-1252?Q?trJ9hJGPU/nfsMfp2mT+q61TRXKsbRngPnCcxoSg0djWHnkw7wTd5EX7?= =?Windows-1252?Q?YawqT/jZJixWOmTLhs+sfePxd1gLBjfgi7+zPcdwWlgbeB4rBBoQeeSE?= =?Windows-1252?Q?tn5zVH4lwxcZoJzKFC5GC1f6up8PH7l3pPsN7QDyc7mXUh2bC/7Hu1GI?= =?Windows-1252?Q?ZXHZhz9yaHTrSwxDxVfizAlSZqlfmuaiCKSJtWnnMTD26BXrfX7y0Ytt?= =?Windows-1252?Q?9WmQYDyqblZO1h8WZrUfwr7wxKGcb3D/3sgOs2Q5YJRCkZ2HCNBkPryd?= =?Windows-1252?Q?1WiJNLA92zPmPxawoYArPprecYXlE6h5cnJMSmnZchaPiJAXbz5HdyPn?= =?Windows-1252?Q?hXYfhDKo3bUU0udb1B40aQtPaP7D4VwxiMS8mjnbAKpULm5rbFsczcqb?= =?Windows-1252?Q?+M1BGA0x5fqY/mXgYxEIQHyJ8zfLdiVNF2TfgK23edkZ3WRr04iZV+ke?= =?Windows-1252?Q?RNAHBZWUCxaN8Co9ofUBymrEC8tGpkjUg5uUsu3ic4oCvTk+gZSJGJsg?= =?Windows-1252?Q?BNK3iyYWd+j+hDoVwDyx/+ZwzirHQ46y4t/+zhpSFlIFGjke4//RKIrM?= =?Windows-1252?Q?bFfgH8q0AiwQ5r2kkwNuFkUMMWVlp/EDtwc9jtED7csXOS6wjSqcSEa1?= =?Windows-1252?Q?gP7JyZCuuBGJ02lPO4w/1+M+0bGb/M/Mj7scV6UhAndK5ioy5fXAWSeC?= =?Windows-1252?Q?nsU+SwnJnBVC5NyeXEdUBeISgRjnDldEuwVtrp8hcPkazuXJOgrT7rkI?= =?Windows-1252?Q?ALNaj88fxANKdAoHgtlY2vVh6c/YkC4mMd2qsH7ekPRxJ+Wocc4JfXGn?= =?Windows-1252?Q?goG3VRvEWaqAC70+h4FMN/O2HiliHiwx0vZ+BJQzs82+4QnNlSoR45s8?= =?Windows-1252?Q?Tu3rwgDs4Zbz+9JlddznqFKnxslAasjyQ90gjYJH3o3UNkmTZ6aKwkc4?= =?Windows-1252?Q?ZHq7vQMF82fc6qpJ0OTahEiaz/BOcX5IY8mkRuIYRt8/oTH6adg/n5RL?= =?Windows-1252?Q?0mGT136PBdtuazCo5edOxSahRf3cJqDJBSESM//0J2FaFw+DumM2HN5H?= =?Windows-1252?Q?NJupb5R9QTuqNd99iu7Yl+LmLLmfmxMPMtSI5w8YrICbKI6gcK4jFqWs?= =?Windows-1252?Q?3iWuQX8TqiIjLsLSFg/jqZ+MnwEoAMZ/Q2iLWDzXX1dUyHEjr77EPx8Y?= =?Windows-1252?Q?NwsRC+lqbcsHjc8i8uSmQPebKZ0Fn/qUVusd/btSruBDmL4Ib/qR8JQr?= =?Windows-1252?Q?oF+SAU07VD7ipoSt8OBbZMO5HqsscP+kfT/rYRKe1PSi9sC3rL68fb3v?= =?Windows-1252?Q?yq4W4fajbBPyVr994j6BydlRJkVPlzKlAUa6DfeO8RASRohqZb85C6oA?= =?Windows-1252?Q?dFS/zuCV/wz7XQ=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: PH7PR11MB5817.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95474753-9811-4643-ce7f-08da529cfc3e X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jun 2022 09:12:22.6071 (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: aIMuPqNxGtxjIo1zJ1ffcVuxZv5wFHo/N4gfoun9nE2p+EMrj99QxmyYwW2lCfdi9mW0+PMvliPUuRswGjOfkw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4170 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 Acked-by: Fan Zhang