]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: talitos - DMA map key in setkey()
authorLEROY Christophe <christophe.leroy@c-s.fr>
Fri, 6 Oct 2017 13:05:02 +0000 (15:05 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Oct 2017 14:55:34 +0000 (22:55 +0800)
commitfe585178c59dccc4df9169c31f376afd19bfe85b
tree8a6742c1b6d397d8c207733a89649c03bd2605c0
parent64f21e5fa0bea8dd95ca74b8491ffa06cb133c2b
crypto: talitos - DMA map key in setkey()

dma_map_single() is an heavy operation which doesn't need to
be done at each request as the key doesn't change.

Instead of DMA mapping the key at every request, this patch maps it
once in setkey()

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c