aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2021-10-25 15:13:40 -0700
committerDavid S. Miller <davem@davemloft.net>2021-10-26 14:45:11 +0100
commitf8dd3b8d70206a0d427ffb0aada6dcada1cf3720 (patch)
treece9d880b66d0755c1af1b2f8ea3bdfc0ced58cf7 /include/net/sock.h
parentd18785e213866935b4c3dc0c33c3e18801ce0ce8 (diff)
downloadlinux-f8dd3b8d70206a0d427ffb0aada6dcada1cf3720.tar.gz
tcp: rename sk_stream_alloc_skb
sk_stream_alloc_skb() is only used by TCP. Rename it to make this clear, and move its declaration to include/net/tcp.h Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index b76be30674efc8..ff4e62aa62e51a 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -2422,9 +2422,6 @@ static inline void sk_stream_moderate_sndbuf(struct sock *sk)
WRITE_ONCE(sk->sk_sndbuf, max_t(u32, val, SOCK_MIN_SNDBUF));
}
-struct sk_buff *sk_stream_alloc_skb(struct sock *sk, int size, gfp_t gfp,
- bool force_schedule);
-
/**
* sk_page_frag - return an appropriate page_frag
* @sk: socket