]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7fa919ccb4237bd717ca984f349c54074594cdc9
tree9f77b5e0c719e20bb7c9dd9faacf1be71b76045d
parent8d3811b0ba6d6371ecb8b276017ba8c33f5cebbb
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]