From: Herbert Xu Subject: Re: [PATCH 1/2] crypto: tcrypt - fix S/G table for test_aead_speed() Date: Tue, 14 Nov 2017 21:45:09 +1100 Message-ID: <20171114104509.GA31248@gondor.apana.org.au> References: <1507630920-9014-1-git-send-email-robert.baronescu@nxp.com> <20171103124157.GA8330@gondor.apana.org.au> <20171109222129.GB20824@gondor.apana.org.au> <20171110074332.GB24384@gondor.apana.org.au> <20171110104145.GA25739@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Robert Baronescu , "linux-crypto@vger.kernel.org" , "davem@davemloft.net" To: Horia =?utf-8?Q?Geant=C4=83?= Return-path: Received: from [128.1.224.119] ([128.1.224.119]:37682 "EHLO ringil.hmeau.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751802AbdKNKpR (ORCPT ); Tue, 14 Nov 2017 05:45:17 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: On Sun, Nov 12, 2017 at 04:26:39PM +0000, Horia Geantă wrote: > > SG table always has 1 entry more than what's needed strictly for input data. > > Let's say buflen = npo * PAGE_SIZE. > SG table generated by the code will have npo + 1 entries: > -sg[0] - (1 entry) reserved for associated data, filled outside > sg_init_aead() > -sg[1]..sg[npo] (npo entries) - input data, entries pointing to > xbuf[0]..xbuf[npo-1] You are right. I will apply the patch. Thanks! -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt