From: Tim Chen Date: Thu, 27 Sep 2012 22:44:24 +0000 (-0700) Subject: crypto: tcrypt - Added speed test in tcrypt for crc32c X-Git-Tag: v3.8-rc1~101^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3899e4df02720fcc8bc22320ce32a7c5594a585;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Signed-off-by: Herbert Xu --- diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index e87fa60..7a3c450 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -1479,6 +1479,10 @@ static int do_test(int m) test_hash_speed("ghash-generic", sec, hash_speed_template_16); if (mode > 300 && mode < 400) break; + case 319: + test_hash_speed("crc32c", sec, generic_hash_speed_template); + if (mode > 300 && mode < 400) break; + case 399: break;