crypto: tcrypt - Added speed test in tcrypt for crc32c
authorTim Chen <tim.c.chen@linux.intel.com>
Thu, 27 Sep 2012 22:44:24 +0000 (15:44 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 15 Oct 2012 14:18:25 +0000 (22:18 +0800)
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>
crypto/tcrypt.c

index e87fa60f58311f4d471686009f500087afae9ce5..7a3c4500f06d8ce0aa9e37dc33fe192e05ccc2d3 100644 (file)
@@ -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;