MLK-14785 CAAM: Fix gcm.c to work correctly with CAAM

CAAM uses DMA to transfer data to and from memory, if
DMA and CPU accessed data share the same cacheline cache
pollution will occur. Marking the result as cacheline aligned
moves it to a separate cache line.

Signed-off-by: Radu Solea <radu.solea@nxp.com>
This commit is contained in:
Radu Solea 2017-05-23 15:13:50 +03:00 committed by Leonard Crestez
parent 3460070095
commit 18f7e6949e

View File

@ -119,7 +119,7 @@ static int crypto_gcm_setkey(struct crypto_aead *aead, const u8 *key,
be128 hash;
u8 iv[16];
struct crypto_gcm_setkey_result result;
struct crypto_gcm_setkey_result result ____cacheline_aligned;
struct scatterlist sg[1];
struct skcipher_request req;