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>
Showing
- crypto/Kconfig 5 additions, 0 deletionscrypto/Kconfig
- crypto/Makefile 1 addition, 0 deletionscrypto/Makefile
- crypto/crc64_rocksoft_generic.c 89 additions, 0 deletionscrypto/crc64_rocksoft_generic.c
- crypto/testmgr.c 7 additions, 0 deletionscrypto/testmgr.c
- crypto/testmgr.h 15 additions, 0 deletionscrypto/testmgr.h
- include/linux/crc64.h 5 additions, 0 deletionsinclude/linux/crc64.h
- lib/Kconfig 9 additions, 0 deletionslib/Kconfig
- lib/Makefile 1 addition, 0 deletionslib/Makefile
- lib/crc64-rocksoft.c 126 additions, 0 deletionslib/crc64-rocksoft.c
Loading
Please register or sign in to comment