diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-07-15 08:22:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-18 13:24:11 +0300 |
commit | c618db2afe7c31d13ca8cf05b60f17165fbdc282 (patch) | |
tree | aa66b80b665d2a52d9149377e2df3de0dfd8d6f1 /net/tls/tls.h | |
parent | 6ececdc5136900bc99ef04c60c9daeab86dbeb85 (diff) | |
download | linux-c618db2afe7c31d13ca8cf05b60f17165fbdc282.tar.xz |
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>
Diffstat (limited to 'net/tls/tls.h')
-rw-r--r-- | net/tls/tls.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/tls/tls.h b/net/tls/tls.h index 44522b221717..c818dc68955d 100644 --- a/net/tls/tls.h +++ b/net/tls/tls.h @@ -124,6 +124,9 @@ int tls_sw_fallback_init(struct sock *sk, struct tls_offload_context_tx *offload_ctx, struct tls_crypto_info *crypto_info); +int tls_strp_msg_hold(struct sock *sk, struct sk_buff *skb, + struct sk_buff_head *dst); + static inline struct tls_msg *tls_msg(struct sk_buff *skb) { struct sk_skb_cb *scb = (struct sk_skb_cb *)skb->cb; |