Thread (11 messages) 11 messages, 4 authors, 2023-09-01

Re: [PATCH net-next] macsec: introduce default_async_crypto sysctl

From: Jakub Kicinski <kuba@kernel.org>
Date: 2023-08-22 15:59:54
Also in: linux-doc

On Tue, 22 Aug 2023 17:39:56 +0200 Sabrina Dubroca wrote:
2023-08-18, 18:46:48 -0700, Jakub Kicinski wrote:
quoted
Can we not fix the ordering problem?
Queue the packets locally if they get out of order?  
Actually, looking into the crypto API side, I don't see how they can
get out of order since commit 81760ea6a95a ("crypto: cryptd - Add
helpers to check whether a tfm is queued"):

    [...] ensure that no reordering is introduced because of requests
    queued in cryptd with respect to requests being processed in
    softirq context.

And cryptd_aead_queued() is used by AESNI (via simd_aead_decrypt()) to
decide whether to process the request synchronously or not.

So I really don't get what commit ab046a5d4be4 was trying to fix. I've
never been able to reproduce that issue, I guess commit 81760ea6a95a
explains why.

I'd suggest to revert commit ab046a5d4be4, but it feels wrong to
revert it without really understanding what problem Scott hit and why
81760ea6a95a didn't solve it.

What do you think?
Unless Scott can tell us what he was seeing I think we should revert.
The code looks fine to me as well...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help