crypto: powerpc - Add CRC-T10DIF acceleration
authorDaniel Axtens <dja@axtens.net>
Wed, 15 Mar 2017 12:37:36 +0000 (23:37 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Mar 2017 14:02:53 +0000 (22:02 +0800)
commitb01df1c16c9a6f7a14f843d3ac6b9eef5a7bb17e
treef086dbb3d07867f4ef0a38095858ee6f75778171
parent08c7dd1bd4b3a59c0d57b3ce4fe5ba1a90123685
crypto: powerpc - Add CRC-T10DIF acceleration

T10DIF is a CRC16 used heavily in NVMe.

It turns out we can accelerate it with a CRC32 library and a few
little tricks.

Provide the accelerator based the refactored CRC32 code.

Cc: Anton Blanchard <anton@samba.org>
Thanks-to: Hong Bo Peng <penghb@cn.ibm.com>
Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/powerpc/crypto/Makefile
arch/powerpc/crypto/crct10dif-vpmsum_asm.S [new file with mode: 0644]
arch/powerpc/crypto/crct10dif-vpmsum_glue.c [new file with mode: 0644]
crypto/Kconfig