Received: by 10.192.165.148 with SMTP id m20csp107855imm; Tue, 24 Apr 2018 18:15:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx48XdIJifE/8veLxyNd88A5Oh5uTDfSa2RQgHqWdAeSf9lHDT8QKy4apQ8lE23C+3+ptUFRt X-Received: by 10.98.69.142 with SMTP id n14mr25903470pfi.42.1524618949556; Tue, 24 Apr 2018 18:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524618949; cv=none; d=google.com; s=arc-20160816; b=x+1okfJ6KWPMvKcXzE3dpXDkCI6VfLQd+7wuSuvvxcu9JbK0WVcxsP/Ijlmqg2So8g /HpNfMd1VJNA0CFmn4B+4Yn9Y/0emjSjblRKwkOTUcF/nWAcLdnIvn79czgvO4llY15A cmWkNyr7czW9NBTcz4Iu/ZKTHUD+dtGvC0uwRtc4kU1wghOL8a6fayl7PgbEe8WTsbHc ww4qD6O+7OPJ2SYiBKzaR3NbdlFKl8D5vdLibMIVAk/hMEHaC5rNfE7EsW4K+gluUu8V vpBuZr3etFE9slT1zU21GqQ+QF6/8mELpfd8iPOyx4Ml2N74qs0bv2muaOXB/lQOht4E AbxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=OOUssfPC6fzOVkTxKQvXJevsBw/V3SBH43zWUSsSTHQ=; b=tcMJEtPXGvOUJPabrjv+Gwk9F+ZbvXicSvkiiY/uW4zpqxYVBhRmbOyouXym6tBwVV V6v8KKtRIPQd7pETO93RMSpCh83G1eX7KgcvlSJ/cp/p4l567bouM+T9oeCIxOW+KLhz NYDgYUeQKE/aUJnF77aU10wGIw6hxLCxTLuVrs03mAFarP9q4F7xr3L9VVFP7WSn4jw3 OH4iaJig570SxeEThhEsYPhqrJatauFo3vjfJE6SSXZHzEaBL0y2xW6i5TNNyBUjt7mp ioOqRPxq2TzIpbJ1QcD0v15MMJauxp7BZ3s2M4q2XWBXEGzPrICFXjh1biEA5hBmVsNv l7gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7si12366078pgb.300.2018.04.24.18.15.35; Tue, 24 Apr 2018 18:15:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751165AbeDYBOa convert rfc822-to-8bit (ORCPT + 99 others); Tue, 24 Apr 2018 21:14:30 -0400 Received: from mga17.intel.com ([192.55.52.151]:34101 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbeDYBO2 (ORCPT ); Tue, 24 Apr 2018 21:14:28 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Apr 2018 18:14:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,325,1520924400"; d="scan'208";a="223082490" Received: from orsmsx104.amr.corp.intel.com ([10.22.225.131]) by fmsmga005.fm.intel.com with ESMTP; 24 Apr 2018 18:14:28 -0700 Received: from orsmsx116.amr.corp.intel.com (10.22.240.14) by ORSMSX104.amr.corp.intel.com (10.22.225.131) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 24 Apr 2018 18:14:27 -0700 Received: from orsmsx111.amr.corp.intel.com ([169.254.12.154]) by ORSMSX116.amr.corp.intel.com ([169.254.7.150]) with mapi id 14.03.0319.002; Tue, 24 Apr 2018 18:14:27 -0700 From: "Dey, Megha" To: Herbert Xu CC: "linux-kernel@vger.kernel.org" , "linux-crypto@vger.kernel.org" , "davem@davemloft.net" Subject: RE: [PATCH V8 1/5] crypto: Multi-buffer encryption infrastructure support Thread-Topic: [PATCH V8 1/5] crypto: Multi-buffer encryption infrastructure support Thread-Index: AQHTiaT71VA7Q5Or9ESQdIw+yX/ir6N6FLYAgFlFdnuAMogJgIABiP2AgABwaXCAAKKQgIAI0Phw Date: Wed, 25 Apr 2018 01:14:26 +0000 Message-ID: References: <1515542948-24041-1-git-send-email-megha.dey@linux.intel.com> <1515542948-24041-2-git-send-email-megha.dey@linux.intel.com> <20180118113905.GA19904@gondor.apana.org.au> <1516322661.2526.3.camel@megha-Z97X-UD7-TH> <20180316145351.GA6231@gondor.apana.org.au> <20180418110115.v2w3o5yfv4u3gc4r@gondor.apana.org.au> <20180419032525.6csodbz6lrksyudd@gondor.apana.org.au> In-Reply-To: <20180419032525.6csodbz6lrksyudd@gondor.apana.org.au> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTQyNDQzNTMtNTIwOC00YWM1LWE3ODUtN2EwMWVlYTFjMThjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IlFjdTd6N0s0cE5QZE5rbFVKSW1pRXhYTERhVVJQMFY1V0FYTVBGOEU1dVE9In0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >-----Original Message----- >From: Herbert Xu [mailto:herbert@gondor.apana.org.au] >Sent: Wednesday, April 18, 2018 8:25 PM >To: Dey, Megha >Cc: linux-kernel@vger.kernel.org; linux-crypto@vger.kernel.org; >davem@davemloft.net >Subject: Re: [PATCH V8 1/5] crypto: Multi-buffer encryption infrastructure >support > >On Thu, Apr 19, 2018 at 12:54:16AM +0000, Dey, Megha wrote: >> >> Yeah I think I misunderstood. I think what you mean is to remove mcryptd.c >completely and avoid the extra layer of indirection to call the underlying >algorithm, instead call it directly, correct? >> >> So currently we have 3 algorithms registered for every multibuffer algorithm: >> name : __sha1-mb >> driver : mcryptd(__intel_sha1-mb) >> >> name : sha1 >> driver : sha1_mb >> >> name : __sha1-mb >> driver : __intel_sha1-mb >> >> If we remove mcryptd, then we will have just the 2? > >It should be down to just one, i.e., the current inner algorithm. >It's doing all the scheduling work already so I don't really see why it needs the >wrappers around it. Hi Herbert, Is there any existing implementation of async crypto algorithm that uses the above approach? The ones I could find are either sync, have an outer and inner algorithm or use cryptd. I tried removing the mcryptd layer and the outer algorithm and some plumbing to pass the correct structures, but see crashes.(obviously some errors in the plumbing) I am not sure if we remove mcryptd, how would we queue work, flush partially completed jobs or call completions (currently done by mcryptd) if we simply call the inner algorithm. Are you suggesting these are not required at all? I am not sure how to move forward. > >Cheers, >-- >Email: Herbert Xu Home Page: >http://gondor.apana.org.au/~herbert/ >PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt