diff options
Diffstat (limited to 'include/net/tls.h')
-rw-r--r-- | include/net/tls.h | 4 |
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); | |||
307 | int tls_device_sendpage(struct sock *sk, struct page *page, | 307 | int 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); |
309 | void tls_device_sk_destruct(struct sock *sk); | 309 | void tls_device_sk_destruct(struct sock *sk); |
310 | void tls_device_free_resources_tx(struct sock *sk); | ||
310 | void tls_device_init(void); | 311 | void tls_device_init(void); |
311 | void tls_device_cleanup(void); | 312 | void tls_device_cleanup(void); |
312 | int tls_tx_records(struct sock *sk, int flags); | 313 | int 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); |
331 | int tls_push_partial_record(struct sock *sk, struct tls_context *ctx, | 332 | int tls_push_partial_record(struct sock *sk, struct tls_context *ctx, |
332 | int flags); | 333 | int flags); |
334 | bool tls_free_partial_record(struct sock *sk, struct tls_context *ctx); | ||
333 | 335 | ||
334 | static inline struct tls_msg *tls_msg(struct sk_buff *skb) | 336 | static 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, | |||
379 | static inline bool tls_is_sk_tx_device_offloaded(struct sock *sk) | 381 | static 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 |