]> git.baikalelectronics.ru Git - kernel.git/commit
net: tls: fix async vs NIC crypto offload
authorJakub Kicinski <kuba@kernel.org>
Mon, 25 Apr 2022 23:33:09 +0000 (16:33 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 27 Apr 2022 00:08:49 +0000 (17:08 -0700)
commit456faf405894a18a3d3b3b4b7343dd0d013163fb
tree707615dbb8a4b712214f7b4676f6b3c8cf7bfbe5
parentdafeac9cc1116b628c8f842c789a3fa473a338a9
net: tls: fix async vs NIC crypto offload

When NIC takes care of crypto (or the record has already
been decrypted) we forget to update darg->async. ->async
is supposed to mean whether record is async capable on
input and whether record has been queued for async crypto
on output.

Reported-by: Gal Pressman <gal@nvidia.com>
Fixes: 6d606a0d5569 ("tls: rx: use async as an in-out argument")
Tested-by: Gal Pressman <gal@nvidia.com>
Link: https://lore.kernel.org/r/20220425233309.344858-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls_sw.c