]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: crct10dif - Simple correctness and speed test for CRCT10DIF hash
authorTim Chen <tim.c.chen@linux.intel.com>
Wed, 1 May 2013 19:52:51 +0000 (12:52 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 May 2013 09:55:27 +0000 (17:55 +0800)
commit21da8a6efc6e2beac19512d7e1ecd171fb795c04
tree5e6e2de1c4890abaa4581362ac971cd1a4e4541b
parentd97d4ca20bec97f6211bba291a14bbde74a0c2ad
crypto: crct10dif - Simple correctness and speed test for CRCT10DIF hash

These are simple tests to do sanity check of CRC T10 DIF hash.  The
correctness of the transform can be checked with the command
modprobe tcrypt mode=47
The speed of the transform can be evaluated with the command
modprobe tcrypt mode=320

Set the cpu frequency to constant and turn turbo off when running the
speed test so the frequency governor will not tweak the frequency and
affects the measurements.

Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c
crypto/testmgr.c
crypto/testmgr.h