Thread (37 messages) 37 messages, 10 authors, 2025-05-21

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

From: Christoph Hellwig <hch@infradead.org>
Date: 2025-05-16 06:06:57
Also in: linux-nvme, linux-rdma, linux-sctp, lkml

On Thu, May 15, 2025 at 10:31:00PM -0700, Eric Biggers wrote:
+static inline __le32 nvme_tcp_hdgst(const void *pdu, size_t len)
+{
+	return cpu_to_le32(~crc32c(NVME_TCP_CRC_SEED, pdu, len));
 }
This drops the unaligned handling.  Now in the NVMe protocol it will
always be properly aligned, but my TCP-foo is not good enough to
remember if the networking code will also guarantee 32-bit alignment
for the start of the packet?

Otherwise this looks great:

Reviewed-by: Christoph Hellwig <hch@lst.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help