]> 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)
commita94805f1b089fe82080d0e66f19331a00e194f98
treecf60bf9c6a1cb3ca03e7bd18307a3862053b571a
parentd9fd78854cf7417441322a0c94dcf797af363df9
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