]> 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)
commitc335a80c5cc0c5546b4dc9b304f3dab58e6f0e33
tree9f77b5e0c719e20bb7c9dd9faacf1be71b76045d
parent13500033de7685a3c14393eba088d42b40a37b34
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]