crypto: add rocksoft 64b crc guard tag framework
authorKeith Busch <kbusch@kernel.org>
Thu, 3 Mar 2022 20:13:10 +0000 (12:13 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 7 Mar 2022 19:48:35 +0000 (12:48 -0700)
commitf3813f4b287e480b1fcd62ca798d8556644b8278
tree9f77b5e0c719e20bb7c9dd9faacf1be71b76045d
parentcbc0a40e17da361a2ada8d669413ccfbd2028f2d
crypto: add rocksoft 64b crc guard tag framework

Hardware specific features may be able to calculate a crc64, so provide
a framework for drivers to register their implementation. If nothing is
registered, fallback to the generic table lookup implementation. The
implementation is modeled after the crct10dif equivalent.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20220303201312.3255347-7-kbusch@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
crypto/Kconfig
crypto/Makefile
crypto/crc64_rocksoft_generic.c [new file with mode: 0644]
crypto/testmgr.c
crypto/testmgr.h
include/linux/crc64.h
lib/Kconfig
lib/Makefile
lib/crc64-rocksoft.c [new file with mode: 0644]