aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorTim Chen2012-09-27 17:44:24 -0500
committerHerbert Xu2012-10-15 09:18:25 -0500
commite3899e4df02720fcc8bc22320ce32a7c5594a585 (patch)
tree0b97de102922da2a402689a48d2429bdc8ae1eb8 /crypto
parent6a8ce1ef3940e0cab5ff5f11e1cff5301f83fef6 (diff)
downloadam43-linux-kernel-e3899e4df02720fcc8bc22320ce32a7c5594a585.tar.gz
am43-linux-kernel-e3899e4df02720fcc8bc22320ce32a7c5594a585.tar.xz
am43-linux-kernel-e3899e4df02720fcc8bc22320ce32a7c5594a585.zip
crypto: tcrypt - Added speed test in tcrypt for crc32c
This patch adds a test case in tcrypt to perform speed test for crc32c checksum calculation. Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/tcrypt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index e87fa60f583..7a3c4500f06 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1479,6 +1479,10 @@ static int do_test(int m)
1479 test_hash_speed("ghash-generic", sec, hash_speed_template_16); 1479 test_hash_speed("ghash-generic", sec, hash_speed_template_16);
1480 if (mode > 300 && mode < 400) break; 1480 if (mode > 300 && mode < 400) break;
1481 1481
1482 case 319:
1483 test_hash_speed("crc32c", sec, generic_hash_speed_template);
1484 if (mode > 300 && mode < 400) break;
1485
1482 case 399: 1486 case 399:
1483 break; 1487 break;
1484 1488