From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752769AbbFCFJW (ORCPT ); Wed, 3 Jun 2015 01:09:22 -0400 Received: from helcar.hengli.com.au ([209.40.204.226]:34519 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752529AbbFCFJO (ORCPT ); Wed, 3 Jun 2015 01:09:14 -0400 Date: Wed, 3 Jun 2015 13:09:06 +0800 From: Herbert Xu To: Tom Lendacky Cc: linux-crypto@vger.kernel.org, David Miller , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 0/2] scatterlist: introduce sg_nents_for_len Message-ID: <20150603050906.GC3884@gondor.apana.org.au> References: <20150601161519.729.75909.stgit@tlendack-t1.amdoffice.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150601161519.729.75909.stgit@tlendack-t1.amdoffice.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 01, 2015 at 11:15:19AM -0500, Tom Lendacky wrote: > This series introduces and makes use of a new scatterlist function named > sg_nents_for_len. The purpose of this function is determine the number > of scatterlist entries required to satisify a specified length. The > resulting count can be used as input to the dma_map_sg function to map > only the entries needed. > > This function is needed for cases where a supplied scatterlist has not > marked the last filled sg entry as the end of the scatterlist. In these > cases, the sg_nents function count includes sg entries that may not have > been filled in. When using this value in a dma_map_sg call it can result > in errors/bugs being generated. > > The following patches are included in this series: > - Introduce the sg_nents_for_len function > - Update the ccp driver to use the sg_nents_for_len function > > This patch series is based on cryptodev-2.6. Both applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt