]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: algif - Mark sgl end at the end of data
authorTadeusz Struk <tadeusz.struk@intel.com>
Mon, 8 Dec 2014 20:03:42 +0000 (12:03 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 22 Dec 2014 12:02:41 +0000 (23:02 +1100)
commitd08c126d6fc2901415fc26fccd2e432ea8ba2b10
tree5cfb69e0ac66a1edcfe7eb10cb1b6d7a131a9c8a
parent881b1086f44345f05bdd30a8b8c7f85b54966d94
crypto: algif - Mark sgl end at the end of data

algif_skcipher sends 127 sgl buffers for encryption regardless of how
many buffers acctually have data to process, where the few first with
valid len and the rest with zero len. This is not very eficient.
This patch marks the last one with data as the last one to process.

Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algif_skcipher.c