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)
commit7da18bcc5e4cfd14ea520367546c5697e64ae592
tree80bf60eb2dd41dfe1baba806726854edd108dfc6
parentfc8da80f990696a50ea76628daca6e63331b18b7
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