diff options
author | Paolo Abeni <pabeni@redhat.com> | 2023-05-17 12:16:14 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-05-18 20:06:31 -0700 |
commit | 711bdd5141d81ab21dbe0a533024d594210d5ba4 (patch) | |
tree | 8af2f5df290e8796698fe9b978a9b8717647dd27 /include/net/inet_common.h | |
parent | bf9233f913eb17d784ffbfff4ff55bc0772f3063 (diff) | |
download | linux-stable-711bdd5141d81ab21dbe0a533024d594210d5ba4.tar.gz linux-stable-711bdd5141d81ab21dbe0a533024d594210d5ba4.tar.bz2 linux-stable-711bdd5141d81ab21dbe0a533024d594210d5ba4.zip |
inet: factor out locked section of inet_accept() in a new helper
No functional changes intended. The new helper will be used
by the MPTCP protocol in the next patch to avoid duplicating
a few LoC.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/inet_common.h')
-rw-r--r-- | include/net/inet_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/inet_common.h b/include/net/inet_common.h index cec453c18f1d..77f4b0ef5b92 100644 --- a/include/net/inet_common.h +++ b/include/net/inet_common.h @@ -31,6 +31,8 @@ int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags); int inet_accept(struct socket *sock, struct socket *newsock, int flags, bool kern); +void __inet_accept(struct socket *sock, struct socket *newsock, + struct sock *newsk); int inet_send_prepare(struct sock *sk); int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size); ssize_t inet_sendpage(struct socket *sock, struct page *page, int offset, |