]> git.baikalelectronics.ru Git - kernel.git/commit
tls: rx: async: hold onto the input skb
authorJakub Kicinski <kuba@kernel.org>
Fri, 15 Jul 2022 05:22:33 +0000 (22:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2022 10:24:11 +0000 (11:24 +0100)
commitd671085bb65268ba77d4c86c2a2f8ff476bec34e
treeaa66b80b665d2a52d9149377e2df3de0dfd8d6f1
parent1e5137d70e58607ba0fa2b420468e05056d60080
tls: rx: async: hold onto the input skb

Async crypto currently benefits from the fact that we decrypt
in place. When we allow input and output to be different skbs
we will have to hang onto the input while we move to the next
record. Clone the inputs and keep them on a list.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/Makefile
net/tls/tls.h
net/tls/tls_strp.c [new file with mode: 0644]
net/tls/tls_sw.c