summaryrefslogtreecommitdiffstats
path: root/net/tls/tls.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-07-23 01:50:27 +0200
committerJakub Kicinski <kuba@kernel.org>2022-07-26 23:38:50 +0200
commitb92a13d488de2e87c869a4a6c0393d1f9eebe6dd (patch)
tree86dd8c7affd71e91ffe197787891b414b8a223c6 /net/tls/tls.h
parentMerge branch 'implement-dev-info-and-dev-flash-for-line-cards' (diff)
downloadlinux-b92a13d488de2e87c869a4a6c0393d1f9eebe6dd.tar.xz
linux-b92a13d488de2e87c869a4a6c0393d1f9eebe6dd.zip
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);