tls: rx: async: adjust record geometry immediately
authorJakub Kicinski <kuba@kernel.org>
Fri, 15 Jul 2022 05:22:32 +0000 (22:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2022 10:24:11 +0000 (11:24 +0100)
commit6ececdc5136900bc99ef04c60c9daeab86dbeb85
treecf60bf9c6a1cb3ca03e7bd18307a3862053b571a
parent6bd116c8c6544476e6daeb48187a3ce334d28db6
tls: rx: async: adjust record geometry immediately

Async crypto TLS Rx currently waits for crypto to be done
in order to strip the TLS header and tailer. Simplify
the code by moving the pointers immediately, since only
TLS 1.2 is supported here there is no message padding.

This simplifies the decryption into a new skb in the next
patch as we don't have to worry about input vs output
skb in the decrypt_done() handler any more.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c