MLK-22039: Revert "MLK-19365: crypto: gcm: Cache aligned auth_data"
authorHoria Geantă <horia.geanta@nxp.com>
Wed, 3 Jul 2019 13:12:03 +0000 (16:12 +0300)
committerHoria Geantă <horia.geanta@nxp.com>
Fri, 5 Jul 2019 15:00:21 +0000 (18:00 +0300)
This reverts commit dd624114c50b1a8cb1bec091e20eaf2539695cde.

Now that the IV update is done by CAAM engine, the cacheline sharing issue
is no longer noticed. Thus this fix is no longer needed.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
crypto/gcm.c

index 70338e0..d96d2dc 100644 (file)
@@ -66,18 +66,7 @@ struct crypto_gcm_ghash_ctx {
 
 struct crypto_gcm_req_priv_ctx {
        u8 iv[16];
-
-       /*
-        * We need to force auth_tag to be on its own cacheline.
-        *
-        * We put it on its cacheline with the macro ____cacheline_aligned.
-        * The next fields must be on another cacheline so we add a dummy field
-        * which is located on another cacheline to enforce that.
-        */
-       u8 auth_tag[16] ____cacheline_aligned;
-
-       u8 dummy_align_auth_tag ____cacheline_aligned;
-
+       u8 auth_tag[16];
        u8 iauth_tag[16];
        struct scatterlist src[3];
        struct scatterlist dst[3];