diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-07-23 02:50:27 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-27 00:38:50 +0300 |
commit | b92a13d488de2e87c869a4a6c0393d1f9eebe6dd (patch) | |
tree | 86dd8c7affd71e91ffe197787891b414b8a223c6 /net/tls/tls.h | |
parent | 4fd310c74432d19e8f58a4291b44db0ddebe7bf3 (diff) | |
download | linux-b92a13d488de2e87c869a4a6c0393d1f9eebe6dd.tar.xz |
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.h | 5 |
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); |