On Mon, 20 Dec 2021 15:03:43 -0800 Jakub Kicinski wrote: > On Tue, 7 Dec 2021 21:29:07 -0800 Jakub Kicinski wrote: > > On Wed, 8 Dec 2021 15:40:37 +1100 Herbert Xu wrote: > > > There is no such thing as an alignment requirement. If an algorithm > > > specifies an alignment and you pass it a request which is unaligned, > > > the Crypto API will automatically align the data for you. > > > > > > So what is the actual problem here? > > > > By align you mean copy right? I'm trying to avoid the copy. > > Hm, I'm benchmarking things now and it appears to be a regression > introduced somewhere around 5.11 / 5.12. I don't see the memcpy > eating 20% of performance on 5.10. Bisection time. 83c83e658863 ("crypto: aesni - refactor scatterlist processing") is what introduced the regression.