Thread (22 messages) 22 messages, 3 authors, 2025-05-22

Re: [PATCH v2 09/10] nvme-tcp: use crc32c() and skb_copy_and_crc32c_datagram_iter()

From: Hannes Reinecke <hare@suse.de>
Date: 2025-05-21 10:17:36
Also in: linux-nvme, linux-rdma, linux-sctp, lkml

On 5/19/25 19:50, Eric Biggers wrote:
From: Eric Biggers <redacted>

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 <redacted>
---
  drivers/nvme/host/Kconfig |   4 +-
  drivers/nvme/host/tcp.c   | 124 ++++++++++++--------------------------
  2 files changed, 42 insertions(+), 86 deletions(-)
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare@suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help