]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme-tcp: use crc32c() and skb_copy_and_crc32c_datagram_iter()
authorEric Biggers <ebiggers@google.com>
Mon, 19 May 2025 17:50:11 +0000 (10:50 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 May 2025 22:40:17 +0000 (15:40 -0700)
commit427fff9aff295e2c117ed26237d1f4e3d87750a3
tree7be67d3c0bd16fe4347580b2c3d154b68ca4d002
parentea6342d98928e243f2024fb97a9b4d42ee55dfba
nvme-tcp: use crc32c() and skb_copy_and_crc32c_datagram_iter()

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

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://patch.msgid.link/20250519175012.36581-10-ebiggers@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/nvme/host/Kconfig
drivers/nvme/host/tcp.c