aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/tls.h')
-rw-r--r--include/net/tls.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/tls.h b/include/net/tls.h
index a5a938583295..5934246b2c6f 100644
--- a/include/net/tls.h
+++ b/include/net/tls.h
@@ -307,6 +307,7 @@ int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
307int tls_device_sendpage(struct sock *sk, struct page *page, 307int tls_device_sendpage(struct sock *sk, struct page *page,
308 int offset, size_t size, int flags); 308 int offset, size_t size, int flags);
309void tls_device_sk_destruct(struct sock *sk); 309void tls_device_sk_destruct(struct sock *sk);
310void tls_device_free_resources_tx(struct sock *sk);
310void tls_device_init(void); 311void tls_device_init(void);
311void tls_device_cleanup(void); 312void tls_device_cleanup(void);
312int tls_tx_records(struct sock *sk, int flags); 313int tls_tx_records(struct sock *sk, int flags);
@@ -330,6 +331,7 @@ int tls_push_sg(struct sock *sk, struct tls_context *ctx,
330 int flags); 331 int flags);
331int tls_push_partial_record(struct sock *sk, struct tls_context *ctx, 332int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
332 int flags); 333 int flags);
334bool tls_free_partial_record(struct sock *sk, struct tls_context *ctx);
333 335
334static inline struct tls_msg *tls_msg(struct sk_buff *skb) 336static inline struct tls_msg *tls_msg(struct sk_buff *skb)
335{ 337{
@@ -379,7 +381,7 @@ tls_validate_xmit_skb(struct sock *sk, struct net_device *dev,
379static inline bool tls_is_sk_tx_device_offloaded(struct sock *sk) 381static inline bool tls_is_sk_tx_device_offloaded(struct sock *sk)
380{ 382{
381#ifdef CONFIG_SOCK_VALIDATE_XMIT 383#ifdef CONFIG_SOCK_VALIDATE_XMIT
382 return sk_fullsock(sk) & 384 return sk_fullsock(sk) &&
383 (smp_load_acquire(&sk->sk_validate_xmit_skb) == 385 (smp_load_acquire(&sk->sk_validate_xmit_skb) ==
384 &tls_validate_xmit_skb); 386 &tls_validate_xmit_skb);
385#else 387#else