summaryrefslogtreecommitdiff
path: root/net/tls/tls.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-07-22 16:50:27 -0700
committerJakub Kicinski <kuba@kernel.org>2022-07-26 14:38:50 -0700
commitb92a13d488de2e87c869a4a6c0393d1f9eebe6dd (patch)
tree86dd8c7affd71e91ffe197787891b414b8a223c6 /net/tls/tls.h
parent4fd310c74432d19e8f58a4291b44db0ddebe7bf3 (diff)
tls: rx: wrap recv_pkt accesses in helpers
To allow for the logic to change later wrap accesses which interrogate the input skb in helper functions. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/tls/tls.h')
-rw-r--r--net/tls/tls.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/tls/tls.h b/net/tls/tls.h
index 3740740504e3..24bec1c5f1e8 100644
--- a/net/tls/tls.h
+++ b/net/tls/tls.h
@@ -142,6 +142,11 @@ static inline struct sk_buff *tls_strp_msg(struct tls_sw_context_rx *ctx)
return ctx->recv_pkt;
}
+static inline bool tls_strp_msg_ready(struct tls_sw_context_rx *ctx)
+{
+ return ctx->recv_pkt;
+}
+
#ifdef CONFIG_TLS_DEVICE
int tls_device_init(void);
void tls_device_cleanup(void);