Re: [PATCH v8 0/7] Optimize dm-verity and fsverity using multibuffer hashing

From: Jakub Kicinski
Date: Mon Feb 17 2025 - 12:41:48 EST


On Sun, 16 Feb 2025 10:27:02 +0800 Herbert Xu wrote:
> On Sat, Feb 15, 2025 at 09:04:12AM -0800, Jakub Kicinski wrote:
> > Can confirm, FWIW. I don't know as much about IPsec, but for TLS
> > lightweight SW-only crypto would be ideal.
>
> Please note that while CPU-only crypto is the best for networking,
> it actually operates in asynchronous mode on x86. This is because
> RX occurs in softirq context, which may not be able to use SIMD on
> x86.

Yes, that's true for tunnels and for IPsec.
TLS does crypto in sendmsg/recvmsg, process context.