aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2013-10-30 10:50:50 +0000
committerDavid S. Miller <[email protected]>2013-11-04 04:04:56 +0000
commitefba721f636ee016859d86d15748650119402b10 (patch)
tree06b207dedd1f0bd77c6dd499e699e0356b8982b4 /drivers/net/xen-netback/interface.c
parentlib: crc32: add functionality to combine two crc32{, c}s in GF(2) (diff)
downloadkernel-efba721f636ee016859d86d15748650119402b10.tar.gz
kernel-efba721f636ee016859d86d15748650119402b10.zip
lib: crc32: add test cases for crc32{, c}_combine routines
We already have 100 test cases for crcs itself, so split the test buffer with a-prio known checksums, and test crc of two blocks against crc of the whole block for the same results. Output/result with CONFIG_CRC32_SELFTEST=y: [ 2.687095] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64 [ 2.687097] crc32: self tests passed, processed 225944 bytes in 278177 nsec [ 2.687383] crc32c: CRC_LE_BITS = 64 [ 2.687385] crc32c: self tests passed, processed 225944 bytes in 141708 nsec [ 7.336771] crc32_combine: 113072 self tests passed [ 12.050479] crc32c_combine: 113072 self tests passed [ 17.633089] alg: No test for crc32 (crc32-pclmul) Signed-off-by: Daniel Borkmann <[email protected]> Cc: [email protected] Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions