OSDN Git Service

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)
commit2e13ce0812c624f1ee08ab933ebb89dddffed32c
tree8a6742c1b6d397d8c207733a89649c03bd2605c0
parent9a655608a468535cd15eafff5ef93e2656e6e2fc
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