summaryrefslogtreecommitdiff
path: root/crypto/gcm.c
diff options
context:
space:
mode:
authorRadu Solea <radu.solea@nxp.com>2017-05-23 15:13:50 +0300
committerAnson Huang <Anson.Huang@nxp.com>2017-06-09 22:22:46 +0800
commiteb7b813ddfbe889a3d29ecc374d7b8ec28345f57 (patch)
tree34683d9eeb88547e1eb854366e898deb811fc5c1 /crypto/gcm.c
parent130473bd56058060f40ff932254a397a870db515 (diff)
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>
Diffstat (limited to 'crypto/gcm.c')
-rw-r--r--crypto/gcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/gcm.c b/crypto/gcm.c
index f624ac98c94e..e7e6d267d334 100644
--- a/crypto/gcm.c
+++ b/crypto/gcm.c
@@ -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;