]> git.baikalelectronics.ru Git - kernel.git/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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Apr 2022 16:32:11 +0000 (17:32 +0100)
commitfb7162620d6c0ad8f7e74a535c47fa216cd402c4
tree80bf60eb2dd41dfe1baba806726854edd108dfc6
parent9cfeece346c1c6cb63116cb8951cd58793247155
tls: rx: don't track the async count

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>
net/tls/tls_sw.c