Skip to content

Commit 5cfed7b

Browse files
minipliherbertx
authored andcommitted
Revert "crypto: aesni - disable "by8" AVX CTR optimization"
This reverts commit 7da4b29. Now, that the issue is fixed, we can re-enable the code. Signed-off-by: Mathias Krause <minipli@googlemail.com> Cc: Chandramouli Narayanan <mouli@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 9561dcc commit 5cfed7b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/x86/crypto/aesni-intel_glue.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ static void ctr_crypt_final(struct crypto_aes_ctx *ctx,
481481
crypto_inc(ctrblk, AES_BLOCK_SIZE);
482482
}
483483

484-
#if 0 /* temporary disabled due to failing crypto tests */
484+
#ifdef CONFIG_AS_AVX
485485
static void aesni_ctr_enc_avx_tfm(struct crypto_aes_ctx *ctx, u8 *out,
486486
const u8 *in, unsigned int len, u8 *iv)
487487
{
@@ -1522,7 +1522,7 @@ static int __init aesni_init(void)
15221522
aesni_gcm_dec_tfm = aesni_gcm_dec;
15231523
}
15241524
aesni_ctr_enc_tfm = aesni_ctr_enc;
1525-
#if 0 /* temporary disabled due to failing crypto tests */
1525+
#ifdef CONFIG_AS_AVX
15261526
if (cpu_has_avx) {
15271527
/* optimize performance of ctr mode encryption transform */
15281528
aesni_ctr_enc_tfm = aesni_ctr_enc_avx_tfm;

0 commit comments

Comments
 (0)