]> git.hungrycats.org Git - linux/commit
tls: rx: don't track the async count
authorJakub Kicinski <kuba@kernel.org>
Fri, 8 Apr 2022 18:31:30 +0000 (11:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:38:47 +0000 (14:38 +0000)
commitb61dbb5ef449afe4e3d2d2298ebb5db52b33ef80
treeee9fdb9fde56506e25a9d96cd98e9fe228350000
parent4fd23a600be99c5702b49491899b06ff2f5e51e7
tls: rx: don't track the async count

[ Upstream commit 7da18bcc5e4cfd14ea520367546c5697e64ae592 ]

We track both if the last record was handled by async crypto
and how many records were async. This is not necessary. We
implicitly assume once crypto goes async it will stay that
way, otherwise we'd reorder records. So just track if we're
in async mode, the exact number of records is not necessary.

This change also forces us into "async" mode more consistently
in case crypto ever decided to interleave async and sync.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: f7fa16d49837 ("tls: decrement decrypt_pending if no async completion will be called")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/tls/tls_sw.c