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 B5449A0C45; Wed, 27 Oct 2021 10:12:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A62FF407FF; Wed, 27 Oct 2021 10:12:19 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 6548C4003F for ; Wed, 27 Oct 2021 10:12:17 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10149"; a="227560411" X-IronPort-AV: E=Sophos;i="5.87,186,1631602800"; d="scan'208";a="227560411" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2021 01:12:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,186,1631602800"; d="scan'208";a="723165116" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga006.fm.intel.com with ESMTP; 27 Oct 2021 01:12:16 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 27 Oct 2021 01:12:16 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Wed, 27 Oct 2021 01:12:16 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.100) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Wed, 27 Oct 2021 01:12:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OXRdLFZ2OrdishvwwrSNgNb6hIifFTOIILYNWPORynNj5VlqqzmHv/AZOeTXY2PH+3u3iSxa9/0rLb856V8qI8df1idXwIbBRXCL4/NJIo1Beqd1lNXc3qa5fi5CV3X8G0GBdNMC9LGjNur1kY9LqxwVaQAqCuCECaJgTUk853Ux76a4PPSuDl2diLx0Wm0mKatkOYNkm3Soc/x/cndKfCxY3RIboOj9Fhb8kKrCngus6U+0XVaDMUvvjVC6glZOl03SZhmMXtTftSRUu/ZhzSTO2R083vdcD3yk83Ag/0n3ap0oKvGyg7Jzx6XBSleY+M/Wrs7rmNVrv0TgJ/QfVA== 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=ODF8PdtLpDoFTQUDX2iKg509khImsY1tA7dqW4Fq+k4=; b=SYdyU0qR9N1ElP1cVhGoTZ3G9lvbIjVLtmaRs0lpp58mlH7QYo3XVnz88sOHMVl4BRKXuVnAm12QPJfyyHTyGTPGig1EkY80ZgJzXLdTMewwVvyXpEo2wMjNpAcSIFMX9Un6EEhSKz4cxgtWxXPTc2S6K3673Lnt9khDrpfRa1Lj4K4hxiWALg+4cvfKg9BUBDt3sSYmMYH2L65uFl9E8lhH+KpXOrj/1fYchu2CtTbiFJBsZtbQB1Gja9VjwJn3NIcgddPeYl4BJo/IH27c/pC7hgUG3Oe6F2bAGcluiPCbQraC2vdilxB1msAuglQJU2rO+i5HdqW9ziOgHqIYxw== 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=ODF8PdtLpDoFTQUDX2iKg509khImsY1tA7dqW4Fq+k4=; b=H9pDuPmcB4/j+RLnC5K07gnmwpYpKZrWfZ239kpiHAoZoFR9Jfu+lcPOqbDw+hi0lTPEmJnlDFyjXV3QuV6j4gEDWEsAGTbtIZO0vhfh6hiMSKtYTtyhDn8cgII47MhsVuQrNcMecpt16asRhWWB6eafnAV+ML7ygNUuswy1zrY= Received: from MN2PR11MB3821.namprd11.prod.outlook.com (2603:10b6:208:f7::24) by MN2PR11MB4158.namprd11.prod.outlook.com (2603:10b6:208:155::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14; Wed, 27 Oct 2021 08:11:59 +0000 Received: from MN2PR11MB3821.namprd11.prod.outlook.com ([fe80::304c:39f1:9d95:4ba2]) by MN2PR11MB3821.namprd11.prod.outlook.com ([fe80::304c:39f1:9d95:4ba2%6]) with mapi id 15.20.4628.020; Wed, 27 Oct 2021 08:11:59 +0000 From: "Power, Ciara" To: "Zhang, Roy Fan" , "dev@dpdk.org" CC: "gakhil@marvell.com" , "Zhang, Roy Fan" , "Kusztal, ArkadiuszX" , "Ji, Kai" Thread-Topic: [dpdk-dev] [dpdk-dev v4 7/9] crypto/qat: unified device private data structure Thread-Index: AQHXx2cHI4wrr9iAgUefB0Pkpn5F+6vmhQDw Date: Wed, 27 Oct 2021 08:11:59 +0000 Message-ID: References: <20211014161137.1405168-1-roy.fan.zhang@intel.com> <20211022170354.13503-1-roy.fan.zhang@intel.com> <20211022170354.13503-8-roy.fan.zhang@intel.com> In-Reply-To: <20211022170354.13503-8-roy.fan.zhang@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.200.16 dlp-product: dlpe-windows dlp-reaction: no-action 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: d8c9290f-c75a-4696-1374-08d999217359 x-ms-traffictypediagnostic: MN2PR11MB4158: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2958; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: A1wfsFaZnClWVSWSZ5xHHTurtSipBOcBWYxVnAazYvLxKJWM+c2e/ihjCzzDAezOgFXEVNbUG7FyNXmVi92PcnpVj6uO8PuMeh0XIyT4g9c4Ezb86f/41J8QI/DS+lbi9iLIG5d/L3I5U27pcCMHNMha14oz+VvO3cfC8lk58JQDEJ6C4tnZClUjZSsgaFVPx4Si/jgbGHSobFnUF7Lhb4iVaoX9vucXNb37s39onuQbYHVwDRQCfwjX7zR7X0sY/dedbq/jHFu82HJDYZlL5d1n5h3yJjHsXcrtIwUeEW5dUj0eX344pIylq3u0EeCwsoo8ouYftKLDIQDbvdBu5kpngu84XgjsGiRpqwsjBzpd3b0JwoBKwGGFS7/q9DEHKxQAqYo+fWV1YLmlO6I8LLt6/X9D2is4nnYTYz7C3/dN6/hSSKgdAmmgJQt2GvuvRQiv1hxWvo9eQi5qmCVe6rxVgsVbgGLclt5QY/x5ObehS7wkI/27CZJ21ec1eZBVPDjpOIeQaDQ+wOXdcYK43tk3utZMb306ZWFyNqjoevsQLR9SeIqj55QjREPmXtBba37whXnc/mowFkCnJkMBnfgC7SxOlfqgVznvJ6gTiUnBTafCde+8iX9K2CEgg6fo5Av+/fgtpGyp3Dt747QnaQql7EpjdFogOhYY2+SNxa1PUiBW0g5HB6D7iYHi8LAl0QGDMcSE792rOpkr4FVMgQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB3821.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(186003)(8936002)(316002)(71200400001)(54906003)(2906002)(508600001)(55016002)(110136005)(38100700002)(52536014)(8676002)(82960400001)(122000001)(107886003)(26005)(83380400001)(66946007)(76116006)(66556008)(64756008)(86362001)(66446008)(9686003)(66476007)(38070700005)(5660300002)(6506007)(33656002)(7696005)(4326008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?e/a+rIimjUnicD7PRUR6uPR22+XFvlAMdNxH60mTob0No2yg6JEOy+IE+odu?= =?us-ascii?Q?jzJGweqTHaDHw65m60ox6grk978b1I9zKYJEqGp3ptvraPwJ7KV++kW0Gu/r?= =?us-ascii?Q?9A6EqukfJBj6Tk2L2KGXN8CXhRkp0vcssVJs2hSitUV1e9l5njZM0VlAzD+Y?= =?us-ascii?Q?CeJijw8a8NcSP2ym1vnGf/YlSJlLJj/uTcOFEo3qGc8j4Py/G2jpCw3+SyDy?= =?us-ascii?Q?0a+fJ9+UH7ngyRb4ZFF45CZ599rY4BEKuXMerOQYp4FgCEKzplojhtTnX4F9?= =?us-ascii?Q?yTzRIcj3uESqY/9CQ7A8j41+yGaKX6BxYbscri4h+uMmKMwednXqLIeZ69I4?= =?us-ascii?Q?INP6b9j/ei48f+ICsW1VuVVMi1r8ZGvDKOlecJCkxAm/3edOTcyrQC15x/VU?= =?us-ascii?Q?KDlRH9PkquWkYvNfhWKXL2UzPEBUkWP6uwaByZzWNPp+kE8m1AYYLZ/tQLeX?= =?us-ascii?Q?r9VSX62oPHldWTKE1a9d+SSxOD0dg49zP1LLYDtWkFNRwss6BQ/aSvzFstu8?= =?us-ascii?Q?iZjdwPd9siZpozZeR1JylTBSnxmU8NdT/+846A47/4FC/jw74ldaf2F2BgfR?= =?us-ascii?Q?P+IKc7SfTLa88Pq+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ascii?Q?YcT9OtuTsPmRleOZN/4qIWWLzzVL+fa6aGaL3uuc7Ou28cvEpNlNYb1IfFVA?= =?us-ascii?Q?pM40/SjZygmJNQXG1peWrVU7kzeJN1MPsNdIkq3OAulIM/DA7aLOyzQ27alC?= =?us-ascii?Q?WPqC2BxrbzSb7F0mSopr21U=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: MN2PR11MB3821.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d8c9290f-c75a-4696-1374-08d999217359 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2021 08:11:59.6654 (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: 2AcTg46NgdtIUY1znvQTuFzq++gOya+YjcSnzGqP3ia1Seb7X9UZ/RJrmnVXRR1xUGTQIQfuKgln5JWkW+YakQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4158 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [dpdk-dev v4 7/9] crypto/qat: unified device private data structure 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 Sender: "dev" Hi Fan, >-----Original Message----- >From: dev On Behalf Of Fan Zhang >Sent: Friday 22 October 2021 18:04 >To: dev@dpdk.org >Cc: gakhil@marvell.com; Zhang, Roy Fan ; Kusztal, >ArkadiuszX ; Ji, Kai >Subject: [dpdk-dev] [dpdk-dev v4 7/9] crypto/qat: unified device private d= ata >structure > >This patch unifies the QAT symmetric and asymmetric device private data >structures and functions. > >Signed-off-by: Arek Kusztal >Signed-off-by: Fan Zhang >Signed-off-by: Kai Ji >--- >+ >+void >+qat_cryptodev_info_get(struct rte_cryptodev *dev, >+ struct rte_cryptodev_info *info) >+{ >+ struct qat_cryptodev_private *qat_private =3D dev->data- >>dev_private; >+ struct qat_pci_device *qat_dev =3D qat_private->qat_dev; >+ enum qat_service_type service_type =3D qat_private->service_type; >+ >+ if (info !=3D NULL) { >+ info->max_nb_queue_pairs =3D >+ qat_qps_per_service(qat_dev, service_type); >+ info->feature_flags =3D dev->feature_flags; >+ info->capabilities =3D qat_private->qat_dev_capabilities; >+ info->driver_id =3D qat_sym_driver_id; As this is a shared function between sym and asym, the driver id is being i= ncorrectly set as always qat_sym_driver_id >+ /* No limit of number of sessions */ >+ info->sym.max_nb_sessions =3D 0; >+ } >+} >+ Thanks, Ciara