Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp647315ybc; Tue, 19 Nov 2019 07:06:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwLX6U6iIIDrFK2Uywe0ligzyUs/U2fmGAbP6gZq70j5ITsEf0f53LZ5STFgnJttOq96luG X-Received: by 2002:a67:fe44:: with SMTP id m4mr21492622vsr.156.1574175960347; Tue, 19 Nov 2019 07:06:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574175960; cv=pass; d=google.com; s=arc-20160816; b=gRlnsUI7JukYSdMuvf/oz8a8y5PXUljN6Z5/GSsw+t22DFEN/52/n2VqhOQ3UjOoBc wocyroOTNgFbVS6Q2OcKxERkqBxUElKPqRKy/C5cHpQ7AO9L9bSaYidWNVRxVkoZVAgE VTuxabsdcJALXLPpAoWQO4prCkNM+hMns0i6Jz2zwl3VcZb8vHdrAPUKB1gZvTAUgkm4 mbiV5n4k5BoTM6rwIq6xOdkAIjogNCbG4cTAL8g27kIYMcqJcJWjK4tiax/Ytwnk0pUd na9V1++yP91tIfCOVF/gWuIQ+cT3KSSyhO3Egs6A3I2xAg/UbW26RwTJNQl25WuweuPP hi5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=X/k4jdrsDHtc82q20JIAXTpNLKbFGNMFBc3vbvMQueM=; b=0HAjPuHvlzmsCkUc/eJy4q3G5rFCKLQyJXFwqSSDOWYsLdXzotMDVxFuNvKGwzrYFM xcSb6c+I/UReMN3GcIU+3BiuIqbRZcnuTCDOzpkcMwa19lcQ296LWwJgewXtI1Dh+nTw l63rY8YaEgVnspOUNUX0i2lrRDUD43mSHdPoN8n1FsenSSTDNJY5rK25OevVDWzj3NuO 8Je7igyOjwfDeRmbd6pMfLa4LM10TqJ76bNemLEGBceQ+tXfhZkGbcLG92J8C8MMV0W+ XX1pdL5i78c/h95woRWYL/sLH4KBs80d+sHiKrTIABK3gGKUpv39iNw3nPn/SrQFmOCQ MVKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Pc+UREXu; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3si15871880edj.395.2019.11.19.07.05.31; Tue, 19 Nov 2019 07:06:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Pc+UREXu; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728060AbfKSPFQ (ORCPT + 99 others); Tue, 19 Nov 2019 10:05:16 -0500 Received: from mail-eopbgr20055.outbound.protection.outlook.com ([40.107.2.55]:57060 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727066AbfKSPFQ (ORCPT ); Tue, 19 Nov 2019 10:05:16 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y3J7sl6K6BbWEBa0jVfc+TRXZ9cO0NVO9RP6hcsyN/yi239OxqVlRu3tNcB2Z4PvKo1exIrxiqiFeRlwugxwCvSDHHyV38AtzLyUyH+/TLkK4Hqd5HCHTvw9JqbY9K7VONkTR3NOO9SeS3OS6JyeOqBQhAdjUOvIACx4YWDoN1vz6+d+P3ayeMtAPn5L03ScXzB02Wdyy4EEW/jbLzUypXOfDfSI5HZFnf925VeroL1RgnEyFdDfgyd9IpU7L2ytWcccyPS8/E0ZvyfEZ+Ks0X9ivwSBpROCgzM0YJFMX2/Q07dCBOLfifFoyREY6kkxQAHNmCn/yAgwT4l89585mQ== 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-SenderADCheck; bh=X/k4jdrsDHtc82q20JIAXTpNLKbFGNMFBc3vbvMQueM=; b=Mt04W/NMoWeRpq3/7Snt+b/IOEEpaDiqnyCTOW7IETGPqvqjD08qBySsRcq/t7vKRAq84DhA30y4a+AJh3OdXIkyn/8qWworm+syR5IBxp1LdnGCDP/mEr/Beu8rWzzXH0gwe6un7/Qv/0Ly/7rpCHgvHhZ/ZVz/hQuLlrqWSjQb+JshvQyhrIGIfkrYNO2KUlDbu1Z9o9atTZTCsJflYdST7V/GcFmw9U/NF+9lSuVN7axPZxYfMpnOrZ4M/J/Ij6zd3yoVOhaCfD+aF2fLZAHLpND4wndzwy1NSxZNomB7guehQ9wtwELU+9lyaSq7YIJRLVLWzZjr5mtMj9H49Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X/k4jdrsDHtc82q20JIAXTpNLKbFGNMFBc3vbvMQueM=; b=Pc+UREXu8lqQCsXzNWSxR7ohpM5dU2daF/96S3b7RdqqTH4B3R01doXIiBit3ckBV0x8ruReQ8TDGqlhUeKXBpR/+U2MGxDaUtEavFu/iollH8d8u7wLBEa3SaK2GBFDMEJZKhX7PUjPaEZ/oJUZpJ9ql6uy3QSOVQLzw7YIJIQ= Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com (52.134.3.153) by VI1PR0402MB3920.eurprd04.prod.outlook.com (52.134.17.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.27; Tue, 19 Nov 2019 15:05:12 +0000 Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com ([fe80::89e1:552e:a24d:e72]) by VI1PR0402MB3485.eurprd04.prod.outlook.com ([fe80::89e1:552e:a24d:e72%3]) with mapi id 15.20.2474.015; Tue, 19 Nov 2019 15:05:12 +0000 From: Horia Geanta To: Iuliana Prodan , Herbert Xu , Aymen Sghaier CC: "David S. Miller" , Tom Lendacky , Gary Hook , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH 04/12] crypto: caam - refactor ahash_edesc_alloc Thread-Topic: [PATCH 04/12] crypto: caam - refactor ahash_edesc_alloc Thread-Index: AQHVnZazrPktEYxsFUGlA3OloV904g== Date: Tue, 19 Nov 2019 15:05:12 +0000 Message-ID: References: <1574029845-22796-1-git-send-email-iuliana.prodan@nxp.com> <1574029845-22796-5-git-send-email-iuliana.prodan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=horia.geanta@nxp.com; x-originating-ip: [212.146.100.6] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 0da5732f-9645-4150-9d36-08d76d01e06e x-ms-traffictypediagnostic: VI1PR0402MB3920:|VI1PR0402MB3920: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-forefront-prvs: 022649CC2C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(136003)(376002)(346002)(39860400002)(396003)(189003)(199004)(33656002)(4744005)(102836004)(25786009)(229853002)(7696005)(66446008)(26005)(81166006)(8676002)(52536014)(64756008)(4326008)(86362001)(81156014)(91956017)(14444005)(256004)(76116006)(76176011)(14454004)(8936002)(99286004)(44832011)(486006)(476003)(5660300002)(3846002)(446003)(66556008)(66476007)(71190400001)(71200400001)(6246003)(66946007)(6636002)(6116002)(186003)(2906002)(478600001)(66066001)(6436002)(55016002)(54906003)(110136005)(316002)(74316002)(305945005)(53546011)(6506007)(7736002)(9686003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0402MB3920;H:VI1PR0402MB3485.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zXJ+sCIvzUUmYbl30N97QBu6xZZGT/vjXT+Uer9pa8PyOpMJEmdxzzTErUNg9Jd4qftjKjBM2SRwgCqJ0F8hi7Pve/Wg+qC21lFUf+ndOXpjJ7xGmhZ8AD232tjDnEndlAjKPT67z25SyuIDkMyf6Qtr5JP/vbU++dpFntkskUfng+j+RJhLKB8oez2gqV3moh7B4dOdcwKgslYAaKhv0ek/ol1Teh7bveP7lY5TnCboCsuWgewUUgTkpD8SOiz8aFmE7bG/BeRA4+NsAAXYiO9Ts8QHFtCliWZISNJzMSYyTP8yCbBFJTRa7S1dUAW72VGaq4oPInQ+mqI/g5Td5YnLISZDCfqyiycF3kdHV8mj0AVKuGOmtTFmBb7vHhKuhlEvlcI1YJpyEBbi+nWA+0TmrGHU6po7/nQ6rp780W+Xb69hvrCzxwwNLiLkdOil Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0da5732f-9645-4150-9d36-08d76d01e06e X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Nov 2019 15:05:12.2735 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rpIhjleBcQUpDeUdbqJjUsuheuWUbCDqVwnc//am5/GbKLwzcwGPxY9eXyS/9YfSIfbJHh/ZJZ8d42RmCWZT4w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3920 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 11/18/2019 12:31 AM, Iuliana Prodan wrote:=0A= > Changed parameters for ahash_edesc_alloc function:=0A= > - remove flags since they can be computed in=0A= > ahash_edesc_alloc, the only place they are needed;=0A= > - use ahash_request instead of caam_hash_ctx, which=0A= > can be obtained from request.=0A= > =0A= Technically, the use of ahash_request is to allow for access to=0A= request flags. The change is needed only to be able to refactor=0A= the computation of gfp flags.=0A= =0A= > Signed-off-by: Iuliana Prodan =0A= Reviewed-by: Horia Geant=E3 =0A= =0A= Thanks,=0A= Horia=0A=