aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorTalal Ahmad <talalahmad@google.com>2021-10-29 22:05:41 -0400
committerJakub Kicinski <kuba@kernel.org>2021-11-01 16:33:27 -0700
commit03271f3a3594c0e88f68d8cfbec0ba250b2c538a (patch)
tree0d0df69189414f592c05f81aa5411fef3b80eb4f /include/net/sock.h
parent047304d0bfa5be2ace106974f87eec51e0832cd0 (diff)
downloadlinux-03271f3a3594c0e88f68d8cfbec0ba250b2c538a.tar.gz
tcp: rename sk_wmem_free_skb
sk_wmem_free_skb() is only used by TCP. Rename it to make this clear, and move its declaration to include/net/tcp.h Signed-off-by: Talal Ahmad <talalahmad@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Acked-by: Arjun Roy <arjunroy@google.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index 620de053002d71..b32906e1ab5552 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -1603,13 +1603,6 @@ static inline void sk_mem_uncharge(struct sock *sk, int size)
__sk_mem_reclaim(sk, SK_RECLAIM_CHUNK);
}
-static inline void sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb)
-{
- sk_wmem_queued_add(sk, -skb->truesize);
- sk_mem_uncharge(sk, skb->truesize);
- __kfree_skb(skb);
-}
-
static inline void sock_release_ownership(struct sock *sk)
{
if (sk->sk_lock.owned) {