libcrc32c: Add crc32c_impl function
authorNikolay Borisov <nborisov@suse.com>
Mon, 8 Jan 2018 09:45:04 +0000 (11:45 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:38 +0000 (15:09 +0200)
commitdf91f56adce1fc131e05368a0ad0ea72afd9a79a
tree2406ccfaa0fb50877c45d2cdca364a1f3c2f48c0
parent3e72ee8874f42ddbe72a090044f7c03740158183
libcrc32c: Add crc32c_impl function

This function returns a string with the currently in-use implementation
of the crc32c algorithm, i.e crc32c-generic (for unoptimised, generic
implementation) or crc32c-intel for the sse optimised version. This
will be used by btrfs.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
[ use crypto_shash_driver_name as suggested by Herbert ]
Signed-off-by: David Sterba <dsterba@suse.com>
include/linux/crc32c.h
lib/libcrc32c.c