nvmet-tcp: switch to using the crc32c library
authorEric Biggers <ebiggers@google.com>
Wed, 26 Feb 2025 06:28:40 +0000 (22:28 -0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 20 May 2025 03:34:25 +0000 (05:34 +0200)
commit6b868deaa1c3ad5737e59074985efccf39e7fea2
treeed86e504dca0554b9732fbf12bdce81e40382080
parent5df496e9ef12e85dcc21488069bbf1b0285aca00
nvmet-tcp: switch to using the crc32c library

Now that the crc32c() library function directly takes advantage of
architecture-specific optimizations, it is unnecessary to go through the
crypto API.  Just use crc32c().  This is much simpler, and it improves
performance due to eliminating the crypto API overhead.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/tcp.c