summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.h
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2022-03-03 21:13:09 +0100
committerJens Axboe <axboe@kernel.dk>2022-03-07 20:48:35 +0100
commitcbc0a40e17da361a2ada8d669413ccfbd2028f2d (patch)
tree121a5f6ee13d4e8b8e4d328cd1494c9ccdba59c9 /crypto/testmgr.h
parentlinux/kernel: introduce lower_48_bits function (diff)
downloadlinux-cbc0a40e17da361a2ada8d669413ccfbd2028f2d.tar.xz
linux-cbc0a40e17da361a2ada8d669413ccfbd2028f2d.zip
lib: add rocksoft model crc64
The NVM Express specification extended data integrity fields to 64 bits using the Rocksoft parameters. Add the poly to the crc64 table generation, and provide a generic library routine implementing the algorithm. The Rocksoft 64-bit CRC model parameters are as follows: Poly: 0xAD93D23594C93659 Initial value: 0xFFFFFFFFFFFFFFFF Reflected Input: True Reflected Output: True Xor Final: 0xFFFFFFFFFFFFFFFF Since this model used reflected bits, the implementation generates the reflected table so the result is ordered consistently. Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.de> Cc: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Keith Busch <kbusch@kernel.org> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Link: https://lore.kernel.org/r/20220303201312.3255347-6-kbusch@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'crypto/testmgr.h')
0 files changed, 0 insertions, 0 deletions