diff options
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 4d208c0f9c14..e9d769c04637 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -1,3 +1,4 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
1 | /* | 2 | /* |
2 | * INET An implementation of the TCP/IP protocol suite for the LINUX | 3 | * INET An implementation of the TCP/IP protocol suite for the LINUX |
3 | * operating system. INET is implemented using the BSD Socket | 4 | * operating system. INET is implemented using the BSD Socket |
@@ -30,12 +31,6 @@ | |||
30 | * respective headers and ipv4/v6, etc now | 31 | * respective headers and ipv4/v6, etc now |
31 | * use private slabcaches for its socks | 32 | * use private slabcaches for its socks |
32 | * Pedro Hortas : New flags field for socket options | 33 | * Pedro Hortas : New flags field for socket options |
33 | * | ||
34 | * | ||
35 | * This program is free software; you can redistribute it and/or | ||
36 | * modify it under the terms of the GNU General Public License | ||
37 | * as published by the Free Software Foundation; either version | ||
38 | * 2 of the License, or (at your option) any later version. | ||
39 | */ | 34 | */ |
40 | #ifndef _SOCK_H | 35 | #ifndef _SOCK_H |
41 | #define _SOCK_H | 36 | #define _SOCK_H |
@@ -1473,7 +1468,7 @@ static inline void sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb) | |||
1473 | sock_set_flag(sk, SOCK_QUEUE_SHRUNK); | 1468 | sock_set_flag(sk, SOCK_QUEUE_SHRUNK); |
1474 | sk->sk_wmem_queued -= skb->truesize; | 1469 | sk->sk_wmem_queued -= skb->truesize; |
1475 | sk_mem_uncharge(sk, skb->truesize); | 1470 | sk_mem_uncharge(sk, skb->truesize); |
1476 | if (!sk->sk_tx_skb_cache) { | 1471 | if (!sk->sk_tx_skb_cache && !skb_cloned(skb)) { |
1477 | skb_zcopy_clear(skb, true); | 1472 | skb_zcopy_clear(skb, true); |
1478 | sk->sk_tx_skb_cache = skb; | 1473 | sk->sk_tx_skb_cache = skb; |
1479 | return; | 1474 | return; |