History

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.

Keith Busch committed 4 years ago

Commit cbc0a401 parent 7ee88093 files · +70 −11Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/linux/crc64.h+2−0
@@ -8,4 +8,6 @@ · 7 unmodified lines
88 #include <linux/types.h>
99
1010 u64 __pure crc64_be(u64 crc, const void *p, size_t len);
11+u64 __pure crc64_rocksoft_generic(u64 crc, const void *p, size_t len);
12+
1113 #endif /* _LINUX_CRC64_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t