]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1e5137d70e58607ba0fa2b420468e05056d60080
treecf60bf9c6a1cb3ca03e7bd18307a3862053b571a
parentcb92883a9595784c43ceb9d3f6400340b8ca4a25
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