X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=options.c;h=d777efc7efe8293320ed3ff2f529f31047af21a2;hb=f3e8440f75f98ced28cdd19ba785718e734cf7c5;hp=bd8141a83f34d8a012742991dbd1422fb20c54d6;hpb=9e684a4976b7934f5ce011ea281dfef3352e5738;p=fio.git diff --git a/options.c b/options.c index bd8141a8..d777efc7 100644 --- a/options.c +++ b/options.c @@ -245,12 +245,9 @@ static int str_verify_cb(void *data, const char *mem) { struct thread_data *td = data; - if (td->o.verify != VERIFY_CRC32C_INTEL) - return 0; - - if (!crc32c_intel_works()) { - log_info("fio: System does not support hw accelerated crc32c. Falling back to sw crc32c.\n"); - td->o.verify = VERIFY_CRC32C; + if (td->o.verify == VERIFY_CRC32C_INTEL || + td->o.verify == VERIFY_CRC32C) { + crc32c_intel_probe(); } return 0; @@ -1482,12 +1479,12 @@ static struct fio_option options[FIO_MAX_OPTS] = { .help = "Use crc32 checksums for verification", }, { .ival = "crc32c-intel", - .oval = VERIFY_CRC32C_INTEL, - .help = "Use hw crc32c checksums for verification", + .oval = VERIFY_CRC32C, + .help = "Use crc32c checksums for verification (hw assisted, if available)", }, { .ival = "crc32c", .oval = VERIFY_CRC32C, - .help = "Use crc32c checksums for verification", + .help = "Use crc32c checksums for verification (hw assisted, if available)", }, { .ival = "crc16", .oval = VERIFY_CRC16,